May 1

1. If you like having close, maximize and minimize buttons on the right in Nautlius, type :

gconftool-2 -s /apps/metacity/general/button_layout -t string  "menu:minimize,maximize,close"

in your console.

2. If your new Mozilla Thunderbird 3.0 doesn’t read your old e-mails, please change name of .mozilla-thunderbird in your home directory to .thunderbird.

3. If you don’t see your gnome-volume-control-applet, please add Notification applet to your gnome panel.


Sep 24

1. Be sure you have following options checked in your Ubuntu kernel:
File systems -> Miscellaneous filesystems -> UFS file system support (read only) (UFS_FS)
File systems -> Partition Types -> PC BIOS (MSDOS partition tables) support (MSDOS_PARTITION) -> BSD disklabel (FreeBSD partition tables) support (BSD_DISKLABEL)
Default kernel for Ubuntu has already this options.

2. After rebooting type in console:

dmesg | grep bsd

You shoud receive similar output:

[ 2.108529] sda4: <bsd: sda8 sda9>

It means that you have Freebsd installed on sda4 partition, and sda8 and sda9 are so-called “slices”

3. Use command similar to:

mount -t ufs -r -o ufstype=ufs2 /dev/sda8 /media/free

For older versions of Freebsd:

mount -t ufs -r -o ufstype=44bsd /dev/sda8 /media/free

or

mount -t ufs -r -o ufstype=ufs /dev/sda8 /media/free

might be more suitable.


Sep 12

Here is a script for generating random alphanumeric passwords:

#!/bin/bash 
# passwords.sh  
if [ $# != 2 ]; then
	echo "usage: $0 <length of passwords> <number of passwords> "
	exit 1
fi
tr -cd '[:graph:]' < /dev/urandom | fold -w $1 | head -$2

Aug 11

Here is my script for auto-purging of removed packages (the script deletes remaining configuration files of package) in Ubuntu:

#!/bin/sh
for i in `dpkg -l | grep ^rc | cut -f 3 -d ' '`
do
    dpkg -P $i;
done

Read More


Jul 24

I’ve used Amarok for a long time. Unfortunately, interface of Amarok 2 has  been remarkably changed.  I like “old” Amarok’s interface so I’ve found Exaile – Amarok like music player for Gnome written in Python. Read More