Author Archives: admin

Running a script on shutdown

      No Comments on Running a script on shutdown

It’s rather easy to run a command or a script on boot without going through the full Sys V style init stuff. /etc/rc.local is executed after the init scripts on boot, but unlike BSD, Linux doesn’t have a rc.shutdown. So how can we execute a command on shutdown? Usually, /etc/init.d/halt is used for shutting down, which calls /sbin/halt.local (if it… Read more »

Unlocking a luks volume with a USB key

      9 Comments on Unlocking a luks volume with a USB key

A luks encrypted disk partition is great. The only thing that can bug you from time to time is that you have to specify the key before you can use it. Or maybe, if you try to mount the volume with /etc/fstab, you’ll be prompted for the password during boot. Wouldn’t it be great, if you could use a real… Read more »

Using udevadm to gather information about specific device

Usually, udevadm requires the sysfs device path of the device in question. But you can also ask udevadm which device path belongs to a certain device node. This gets really helpful if you combine these two queries. Example: You want to get a list of attributes for a specific device. You do not know the complete device path; all you… Read more »

Disabling GDM greeter sound on Fedora 11 [Update]

Due to a bug in GDM there currently is now way of preventing GDM from playing a sound when you login to your Fedora 11 box. This is especially annoying on notebooks, e.g. when you’re sitting in a meeting or in a (quiet) public place like a library. The only workaround (a bit dirty, granted) is to delete or rename… Read more »

GDM AutoLogin

      No Comments on GDM AutoLogin

To login a certain user automatically at boot time, you have to change the daemon-section of your /etc/gdm/custom.conf: With ‘TimedLogin’ being a valid, non-root user and ‘TimedLoginDelay’ being the login delay in seconds. An overview of available configuration variables can be found on live.gnome.org

CentOS and Attansic L1 Gigabit Ethernet

      1 Comment on CentOS and Attansic L1 Gigabit Ethernet

There are quite a few mainboards with an onBoard Attansic Gigabit Ethernet Chip: The corresponding driver is part of the mainline kernel since 2.6.21 (April 2007), but CentOS 5.x still uses a kernel version (2.6.18) which lacks this feature. Jay Cliburn did quite a few enhancements on the original driver from Xiong Huang of Attansic and he even built an… Read more »

Send a fax transmission confirmation via eMail

Just as you can formward incoming faxes to you eMail account, you can send a transmission confirmation when a facsimile was sent successfully. You can even send a copy of the fax along with it. bin/notify is the command script invoked by the facsimile server to notify a user about the status of an outbound job. It parses etc/FaxNotify so… Read more »

Forwarding incoming faxes via eMail

      1 Comment on Forwarding incoming faxes via eMail

bin/faxrcvd is the command script invoked by the facsimile server whenever a facsimile is received. It parses etc/FaxDispatch so you can customize the script by editing the parameter file. To forward incoming facsimiles to you eMail address change FaxDispatch accordingly: Allowed values for the FILETYPE variable are ps, tif or pdf. Note that non-ASCII filetypes require an encoder (but normally… Read more »

Googlemail and sSMTP on CentOS

      3 Comments on Googlemail and sSMTP on CentOS

sSMTP is a very simple and straightforward alternative to big MTAs like sendmail or Exim. Unfortunately CentOS repositories don’t come with it, so you have to fetch it from Fedora’s EPEL repo. After activating the ‘Extra Packages for Enterprise Linux’ repository, you can install sSMTP: Configuration is rather simple. Just change the following values in your /etc/ssmtp/ssmtp.conf You can test… Read more »