Main Menu

friends

Latest articles

Use a local kickstart file with virt-install
10/11/2011 | mad mad mod

A nice way to install a virtual machine with a local kickstart file is the new "--initrd-inject" option for virt-install.   Example: virt-install --name myvm --ram 512 --disk path=/test/myvm.img [ ... ]


very simple mysql connection from php
01/01/2010 | mad mad mod

This article describes how to connect to a mysql database from a php script. It is realy the most simple way of using mysql databases in php, no fancy wrapper classes, no functions and NO security! W [ ... ]


Other Articles
Facebook MySpace Twitter Digg Delicious Stumbleupon Google Bookmarks 

Designed by:
SiteGround web hosting Joomla Templates
How to compile a Linux Kernel E-mail
sysadmin

This article describes how to compile a Linux Kernel (version 2.6.35).

 

Step 1: download the source code

 

open a shell and runthe following command:

# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.tar.bz2

 

Step 2: untar everything to /usr/src

 

# tar -xjvf linux-2.6.35.tar.bz2 -C /usr/src

 

 

Step 3: Install compiler and other dependencies

 

run as root:

# yum install ncurses ncurses-devel gcc

 

 

Step 4: configure the kernel

 

Change to the /usr/src/linux-2.6.35 directory. You can now configure the Linux kernel source with "make menuconfig". There are also other tools to do that ("make xconfig" or "make gconfig"),  but I have never used them.

# cd /usr/src/linux-2.6.35/

# make menuconfig

 

Step 5: compile the kernel

 

compile the kernel:

# make

compile the kernel:

...and the modules:

# make modules

 

Step 6: Install the new kernel and the modules:

 

run as root:

# make modules_install

# make install

 

Step 7: create a new initrd and configure grub.conf:

 

# cd /boot

# mkinitrd -v -f initrd.img-2.6.35 2.6.35

 

now edit your /boot/grub/grub.conf file:

 

# vi /boot/grub/grub.conf

 

and add your new kernel there:

(...)

title plain vanilla 2.6.35
root (hd0,0)
kernel /vmlinuz-2.6.35 ro root=/dev/mapper/rootvg-root_lv  LANG=en_US.UTF-8 rhgb quiet
initrd /initrd.img-2.6.35

 

Now reboot your computer and select the "plain vanilla 2.6.35" Kernel in the grub menu.

 

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

 
mad mad mod, Powered by Joomla! and designed by SiteGround web hosting