Archive for the ‘Linux’ Category

Debian: Building a Linux Kernel from Git

March 6, 2011 Comments off

Building within Debian; steps for building a custom kernel directly from Linus’ Git repository.


  • Git: apt-get install git
  • Compiler and build tools:  apt-get install build-essential
  • ncurses library for menuconfig:  apt-get install libncurses5-dev

Download the Kernel Source

Download the linux git repository to your ~/linux-2.6.git directory.

cd ~
git clone git:// linux-2.6.git
cd linux-2.6.git

Check out a particular kernel version

To list the available kernel version tags:

git tag

Check-out a particular kernel version to compile:

git checkout -b AcerAspire_v2.6.35 v2.6.35

Configure the Kernel

Select the desired kernel options:

make menuconfig

The resulting config file is saved to .config.

Note:  Unless you know your hardware very well, creating a .config file from scratch is a very daunting task.  It is much better to start with an existing .config file from your existing kernel version source package or from another platform that is as close as possible to your desired configuration.

Save a copy of the config file in your repository so that you don’t lose it:

cp .config AcerAspire.config
git add AcerAspire.config
git commit -m “Save custom kernel config file.”

Compile the kernel for use with Debian:

make clean
make KDEB_PKGVERSION=custom.1.0  deb-pkg

Install the kernel

cd ..
ls -al *.deb
dpkg -i linux-image-2.6.35*.deb

Reboot to try the new kernel.

Clean up:

Clean out build files:

make clean

Clean out all generated files including the .config file:

make distclean


Categories: Linux

Handling nuisance e-mails at

October 20, 2009 Comments off

Ran across the following amusing entry in the FAQ at

“At we pride ourselves on giving our users the highest quality responses to their e-mails (with the Copious Free Time we have to devote to the task) and your e-mail request will be deleted in the order it was received.

Please stay on the internet until the next available admin is available – your e-mails are important to us.”

Categories: Linux

Linux UUID and Volume Info

October 16, 2009 Comments off

In Linux, to acquire the UUID and volume info for a particular drive.

List the drive devices and their mount points:

> mount

To get the UUID and volume info for a particular drive device:

> sudo blkid /dev/sda1
> sudo vol_id /dev/sda1
Categories: Linux, System Admin