Posts

Showing posts from January, 2010

Memory based file system (ramdisk) on FreeBSD

To create a ramdisk for /tmp and detach it on FreeBSD 8 # /sbin/mdmfs -M -S -o async -s size md0 /tmp Don't forget to chmod +w for read/write # chmod +w /tmp Detach it and delete from /dev/md0 # /sbin/mdconfig -d -u 0 There is a shell script for the operation %cat ramdisk.sh #!/bin/sh case "$1" in create) /sbin/mdmfs -M -S -o async -s 18432m md0 /tmp /bin/chmod 777 /tmp echo "18G ramdisk created on md0 and mounted on /tmp" exit 0 ;; destory) /sbin/umount /tmp /sbin/mdconfig -d -u 0 echo "ramdisk umounted from /tmp and destory from md0" ;; *) echo "Usage: `basename $0` {create|destory}" >&2 exit 64 ;; esac Caution ! This is for specificed purpose only! You have to modify the parameters if you want to use it.

Install Pidgin 2.6.4 from source on OpenBSD 4.6

At first, following content is just my experience to install a newer version from source, it may not works as well as you guys used on LINUX. Do following steps: You have to install following packages before you start to compile pidgin! gmake gstreamer gnutls libnss python cyrus-sasl2 tcl/tk farsight Well, a GTK based desktop environment is needed! (I use XFCE4, Gnome is the best!) Download the source from Pidgin's official site Extract the source Run configure with parameters # ./configure --disable-vv --disable-meanwhile --disable-nm --with-gnutls-includes=/usr/local/include --with-gnutls-libs=/usr/local/lib --with-tclconfig=/usr/local/lib/tcl8.5 --with-tkconfig=/usr/local/lib/tk8.4 Compile # gmake Install as root # sudo gmake install If all the procedures are work properly, you can just start pidgin and enjoy it on OpenBSD 4.6 now! :)