The Lempel-Ziv-Markov chain algorithm is a (at least in the Linux-world) relatively new compression method. It features a very high compression ratio that is generally much higher than bzip21. Unfortunately there a quite a few different implementations. So creating and extracting lzma archives on different Linux distrubutions will vary. While the latest Fedora comes with GNU tar 1.22, which has… Read more »
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 »
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 »
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 »
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 »
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 »
If the Dom0’s kernel is built with pciback as a module (grep CONFIG_XEN_PCIDEV_BACKEND /boot/config-`uname -r`), using the kernel command-line parameter pciback.hide won’t work. There is of course more than solution how you can assign hardware to a domU, but the probably easiest one is to to pass the hide parameter to the pciback module in /etc/modprobe.conf: The xensouce mailing list… Read more »
Per default, CentOS 5.3 saves a domU’s state when the hypervisor is shut down. In principle this a nice behaviour: The domU will restore its state automagically when the hypervisor comes up again and just continue working. But there are some services (e.g. mldonkey) that don’t like to be restored and refuse to work (i.e. keep in a blocked state… Read more »
This is an easy one: You just append zeros at the end of the corresponding image file (here 1GB): You may want to shutdown your domU before changing its image file. After appending the zeros, you can restart the domain and expand its filesystem.
First, we have to delete our current partition and create a bigger one (don’t be afraid, no data will be lost): Type m to get a list of all commands: Let’s print out the partition table and look for the ext3 partition, we want to enlarge (it’s easy here, there is just one partition): Now we delete the old partition… Read more »