Linux

Debian equivalent of RPM based system commands

rpm based deb based
ntsysv/chkconfig sysv-rc-conf
service httpd start invoke-rc.d apache2 start
rpm -q dpkg-query -W
rpm -qf dpkg -S
rpm -ql dpkg -L
rpm -qi dpkg -p
yum info apt-cache show

rpm -qi shows Vendor so you can see who built the package and usually what repository it came from. To see similar info with Debian use 'apt-cache policy package' This will show an http:// url so you can tell what source it came from.

I got a new Red Hat Certificate of Expertise

I passed a certificate of expertise exam on clustering and storage today. I didn't take the class, rather studied with associates and by myself on my own time. This is my first RHCA level exam that I have taken.

Here is the course outline if you're interested in what the class/exam covers:

436 outline

ioquake3 on Debian Lenny/testing

I got this error after installing:

$ ioquake3
./ioquake3.i386: error while loading shared libraries: libopenal.so.0: cannot open shared object file: No such file or directory

Make sure you have libopenal1 package installed and then make a symlink from /usr/lib/libopenal.so.0 to the actual library file.

# ln -s /usr/lib/libopenal.so.1.4.272 /usr/lib/libopenal.so.0

Run ldconfig just to be safe.

# ldconfig

ioquake3 now works.

Direct maps in autofs on Debian Lenny/testing

I am most familiar with RHEL/Fedora and I commonly use autofs with direct maps to mount NFS servers. Direct maps are not well supported in autofs4 but work great with autofs5. In fact on RHEL 4 and Debian Lenny/testing which both ship with autofs4 you have to manually enable direct maps in either /etc/sysconfig/autofs or /etc/default/autofs configuration files.

I'm used to using autofs5 in RHEL 5 and newer Fedora versions but as it turns out autofs5 is not included in Debian Lenny/testing which I'm trying out at home. One of the issues I ran into with autofs4 is that you can't mount the key directly under the root filesystem. You have to make the key under some other directory first. This behavior is described really well in this bug report against autofs4 on Fedora Core 3 https://bugzilla.redhat.com/show_bug.cgi?id=145533

Anyway if you want to get around that issue on Debian Lenny/testing it's easy to just install autofs5 from the unstable branch this way:

# aptitude install autofs5/unstable

That command/syntax is explained on this page, section 6.2.6:

http://www.debian.org/doc/manuals/reference/ch-package.en.html

EDIT 2009-08-09:
You don't have to do this anymore. Debian Lenny stable still seems to include autofs4 by default though. On Debian Lenny which is now stable just do 'aptitude install autofs5'

Syndicate content