echo "user_password" | pw usermod -V /jails/myjail/etc -h 0 username
Archive for the ‘alp’s notes’ Category
Change user password in script on FreeBSD host
Posted on August 28th, 2011 by "alp" from "alp's notes"
Changing user password in script on FreeBSD host turned out to be very simpe. Use "pw" for this purpose:
Weird boot0 behavior
Posted on April 1st, 2011 by "alp" from "alp's notes"It seems I've found one interesting bug in FreeBSD boot0. The long story is the following. We deploy new systems on IBM blade servers. After some local fixes made by Oleg we made FreeBSD gmultipath work with our EMC Clarion storage. However, we observed strange behavior. Periodically systems refused to boot. We could see only black screen and no usual
Weird boot0 behavior
Posted on April 1st, 2011 by "alp" from "alp's notes"It seems I've found one interesting bug in FreeBSD boot0. The long story is the following. We deploy new systems on IBM blade servers. After some local fixes made by Oleg we made FreeBSD gmultipath work with our EMC Clarion storage. However, we observed strange behavior. Periodically systems refused to boot. We could see only black screen and no usual
FreeBSD, Java plugin and Firefox 3.6
Posted on March 14th, 2011 by "alp" from "alp's notes"
I've just found out, that java plugin is working on FreeBSD with Firefox 3.6 and OpenJDK (openjdk6-b21_3). You just need to compile openjdk port with WEB option and later do
I can't determine the quality of plugin - all my admin applications work strange (don't work seems right expression), but it may be caused by SSH tunneling...
ln -s /usr/local/openjdk6/jre/lib/IcedTeaPlugin.so ~/.mozilla/plugins/
I can't determine the quality of plugin - all my admin applications work strange (don't work seems right expression), but it may be caused by SSH tunneling...
FreeBSD, Java plugin and Firefox 3.6
Posted on March 14th, 2011 by "alp" from "alp's notes"
I've just found out, that java plugin is working on FreeBSD with Firefox 3.6 and OpenJDK (openjdk6-b21_3). You just need to compile openjdk port with WEB option and later do
I can't determine the quality of plugin - all my admin applications work strange (don't work seems right expression), but it may be caused by SSH tunneling...
ln -s /usr/local/openjdk6/jre/lib/IcedTeaPlugin.so ~/.mozilla/plugins/
I can't determine the quality of plugin - all my admin applications work strange (don't work seems right expression), but it may be caused by SSH tunneling...
Read UPDATING, Luck…
Posted on February 28th, 2011 by "alp" from "alp's notes"
I spent weekend updating my desktop system. I've built 8.2, updated Xorg, KDE and different trifles. Finally I reinstalled autoconf,automake,libltdl,libtool, because portmaster couldn't update them (ports moved). Periodically I had to kill grep during port install, because I forgot to update portmaster. These two problems could be solved if I had read "UPDATING"... But the last one was interesting: I
Read UPDATING, Luck…
Posted on February 28th, 2011 by "alp" from "alp's notes"
I spent weekend updating my desktop system. I've built 8.2, updated Xorg, KDE and different trifles. Finally I reinstalled autoconf,automake,libltdl,libtool, because portmaster couldn't update them (ports moved). Periodically I had to kill grep during port install, because I forgot to update portmaster. These two problems could be solved if I had read "UPDATING"... But the last one was interesting: I
Finally wine is fixed…
Posted on February 16th, 2011 by "alp" from "alp's notes"
Finally one irritating wine bug was fixed. Now I've just updated my wine to 1.3.3 (I had this in my port tree) with applied suggested patch. Some windows applications still don't work on my desktop (FreeBSD 8.1, xf86-video-ati-6.13.2, wine-1.3.3). However, they work on Linux and Intel integrated video adapter, but it seems I should blame ati video driver for this.
Finally wine is fixed…
Posted on February 16th, 2011 by "alp" from "alp's notes"
Finally one irritating wine bug was fixed. Now I've just updated my wine to 1.3.3 (I had this in my port tree) with applied suggested patch. Some windows applications still don't work on my desktop (FreeBSD 8.1, xf86-video-ati-6.13.2, wine-1.3.3). However, they work on Linux and Intel integrated video adapter, but it seems I should blame ati video driver for this.
Looking for virtualization solution
Posted on January 21st, 2011 by "alp" from "alp's notes"
Now I'm looking something to replace VMware ESXi... So far I looked at XCP (xen cloud platform). It has issues running OpenIndiana, so it was not a best choice for me. Then I looked at OpenNode. But satisfactory WebUI was available only for latest beta version, and I didn't manage to make it working. Maybe I should look at Aeolus
Looking for virtualization solution
Posted on January 21st, 2011 by "alp" from "alp's notes"
Now I'm looking something to replace VMware ESXi... So far I looked at XCP (xen cloud platform). It has issues running OpenIndiana, so it was not a best choice for me. Then I looked at OpenNode. But satisfactory WebUI was available only for latest beta version, and I didn't manage to make it working. Maybe I should look at Aeolus
repmgr FreeBSD port
Posted on January 14th, 2011 by "alp" from "alp's notes"
I've just managed to create initial prototype of repmgr port for FreeBSD. Port compiles, but repmgrd dumps core for unknown reason... Need to investigate. Shell archive of the port is provided.
Updated: repmgrd works fine with included patch.
Updated: repmgrd works fine with included patch.
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by
repmgr FreeBSD port
Posted on January 14th, 2011 by "alp" from "alp's notes"
I've just managed to create initial prototype of repmgr port for FreeBSD. Port compiles, but repmgrd dumps core for unknown reason... Need to investigate. Shell archive of the port is provided.
Updated: repmgrd works fine with included patch.
Updated: repmgrd works fine with included patch.
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by
Just remember never use ctrl+Ins in server console
Posted on December 20th, 2010 by "alp" from "alp's notes"
I'm quite disturbed. I had found file to delete, had copied its name, entered "rm" and pressed ctrl+ins... What effectively pasted in the contents of one script. So I recieved "rm #!/bin/sh". I'm lucky, it wasn't "rm /bin/sh"... I hate several copy-paste buffers - one general buffer in KDE and separate buffer in Konsole.... Uuuuuu..........
Just remember never use ctrl+Ins in server console
Posted on December 20th, 2010 by "alp" from "alp's notes"
I'm quite disturbed. I had found file to delete, had copied its name, entered "rm" and pressed ctrl+ins... What effectively pasted in the contents of one script. So I recieved "rm #!/bin/sh". I'm lucky, it wasn't "rm /bin/sh"... I hate several copy-paste buffers - one general buffer in KDE and separate buffer in Konsole.... Uuuuuu..........
ZFS snapshots or something new on something old
Posted on October 27th, 2010 by "alp" from "alp's notes"
Everyone knows that snapshots are fascinating feature of ZFS. Automatic snapshots in OpenSolaris used to save my mental health. After migration to FreeBSD I thought "It would be easy. There are a lot of decisions for managing ZFS snapshots in FreeBSD". In fact, theare are too many decisions for managing ZFS snapshots in FreeBSD. It's hard to choose one decision.
ZFS snapshots or something new on something old
Posted on October 27th, 2010 by "alp" from "alp's notes"
Everyone knows that snapshots are fascinating feature of ZFS. Automatic snapshots in OpenSolaris used to save my mental health. After migration to FreeBSD I thought "It would be easy. There are a lot of decisions for managing ZFS snapshots in FreeBSD". In fact, theare are too many decisions for managing ZFS snapshots in FreeBSD. It's hard to choose one decision.
Chromium was added to FreeBSD ports tree
Posted on October 15th, 2010 by "alp" from "alp's notes"
Chromium was added to FreeBSD ports tree. I'm going to try it... Currently I use Konqueror, but it is not always perfect. And Firefox wants too much memory, works quite slow and (the most annoying for me) doesn't look good with KDE :)
Chromium was added to FreeBSD ports tree
Posted on October 15th, 2010 by "alp" from "alp's notes"
Chromium was added to FreeBSD ports tree. I'm going to try it... Currently I use Konqueror, but it is not always perfect. And Firefox wants too much memory, works quite slow and (the most annoying for me) doesn't look good with KDE :)
KDE 4.5.1 – Konqueror is a bit better
Posted on September 22nd, 2010 by "alp" from "alp's notes"
I've just updated my FreeBSD desktop. I haven't noticed big changes in KDE 4.5.1 yet, however, some small updates really matter. Now we have useful adblock-like feature in konqueror - I can block any frame/image I like and use some public adblock lists. However, konqueror can't block Flash objects. I'd like it to block them too...
And as always, Google
And as always, Google