Sunday, November 30, 2008

Add sessions to KDM (KDE 4.1.3)

To manually add sessions to KDM in Archlinux, do the following:


cd /usr/share/apps/kdm/sessions


You will see *.desktop files of many, many window managers and desktop environments. Obviously, unless you have all of these on your system, many of them are "just there." To add a session, simply copy any of the preexisting *.desktop files and modify it to suit your need.


In my case, I copied openbox.desktop to awesome.desktop and replaced "Exec=openbox" with "Exec=awesome."

Saturday, November 29, 2008

Mount flash drive in OpenBSD 4.4

As OpenBSD101 notes, "USB drives usually show up as (emulated) SCSI drives."


But, how do you know which drive? You have two choices. First, you can take a look at the console output. If you insert the drive at the XDM login stage, the console will react, and the output will be preserved following your login. Second, you can type dmesg | grep sd, and it will tell you which sdX device is associated with the flash drive. In my case, it was /dev/sd1. So, as root, I did the following:


mkdir /mnt/flashdrive


mount /dev/sd1i /mnt/flashdrive

Thursday, November 27, 2008

Mount OpenBSD slice in Linux

To mount an OpenBSD root slice in GNU/Linux, first create a folder.


sudo mkdir /mnt/openbsd


Then, run the following command:


sudo mount -r -t ufs -o ufstype=44bsd /dev/hdb5 /mnt/openbsd


The key is to locate the OpenBSD root slice in Linux. To do so, type dmesg | grep bsd in a terminal emulator. This will list the devices that are associated with BSD.


Works for my desktop. I dual boot Xubuntu 6.10 and OpenBSD 4.4.