Controlling fanspeeds in Linux on PWM motherboards, Thinkpads and ASUS Eee PC

Introduction
In Windows I controlled the fanspeed on my stationary computer by using a ASUS program that read the temperatures. I wanted the same temperature/fanspeed scaling in Linux, so I decided to setup fancontrol, which is a small script that monitors temperatures and fanspeeds and sets the fan at the minimum required level to insure low noise levels.

The following should work on most Linux distributions and with most modern motherboards. For the record I did this on a Ubuntu 8.04 installation with a setup consisting of a ASUS P5W DH Deluxe Digital Home Series motherboard, Gigabyte Triton GZ-XX1CA-SNS casing and a Core 2 Duo E6600 2.4 GHz with a Noctua NH-U12P CPU cooler, see (Hvilke elementer jeg valgte til min nye computer [tjansson.dk]) for more details.
Continue reading Controlling fanspeeds in Linux on PWM motherboards, Thinkpads and ASUS Eee PC

Using latexmk, vim spell checking and vim latex-suite

I was originally doing my thesis writing with the Latex editor kile but since it doesn’t have in-line spell checking I decided to try vim which I already use for anything beside .tex files. While playing with the spell checking in Vim my friend Rasmus Fonseca told be about latexmk which turned out to be a really nice tool to compile latex document with.

Inline spell checking

To enable the in-line spell checker one should either use following commands in the editor or add them to the .vimrc file:

:set spell

This will highlight all the errors in the file. I am writing my thesis in English but I will also be writing documents in danish. In the .vimrc file I can set the spell checking language:

"""""""""""""""
"" Spellchecking
""""""""""""""
 
if v:version >= 700
    "Sets in-line spellchecking
    set spell
 
    " Set local language 
    setlocal spell spelllang=en_us
    "setlocal spell spelllang=da
endif

Continue reading Using latexmk, vim spell checking and vim latex-suite

PXE install of Ubuntu on a Lenovo Thinkpad X200

Introduction
The easiest way to install Ubuntu on a subnotebook such as the thinkpad X200 is to use Unetbootin and I would have loved it to be so easy. However the Windows Vista Boot Manager would boot on the image and told me that:

File: \ubnldr.mbr
Status: 0xc000000f
Info: The selected entry could not be loaded because the application is missing or corrupt.


So I needed to find another way of installing Ubuntu on my new laptop. The following is not an easy method but in my case it was the only way. In short I will setup a TFTP server Ubuntu machine and configure the DHCP server in DD-WRT router to give this information to the PXE client on my Thinkpad X200 laptop.
Continue reading PXE install of Ubuntu on a Lenovo Thinkpad X200