Tag Archives: CentOS

Adjusting your fanspeed with trinity (lm_sensors, pwmconfig and fancontrol)

Modern CPU throttling technology like Intel’s SpeedStep or AMD’s Cool’n’Quiet are quite fancy. They not only reduce the CPU frequency and the core voltage, the mainboard also detects an idling, cool CPU and therefore reduces the fanspeed. But what if the fanspeed is still to high while the CPU is doing nothing? Or maybe the fan doesn’t spin fast enough… Read more »

Mounting xen images

      1 Comment on Mounting xen images

Mounting images that contain only one partition is rather easy. But how to mount image with multiple partitions? kpartx is the solution! You can list all partitions within the image with kpartx can be used to create maps from the block devices And those maps can be mounted as usual

Working with lzma tarballs

      No Comments on Working with lzma tarballs

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 »

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 »

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 »

Assign hardware to DomU with PCIBack as module [Update]

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 »