Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming > Packaging and Compiling Programs
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Packaging and Compiling Programs
Need help compiling programs or creating .deb packages?

 
Thread Tools Display Modes
Old April 8th, 2005   #1
SolidStClair
First Cup of Ubuntu
 
Join Date: Mar 2005
Beans: 8
Send a message via AIM to SolidStClair
How do I compile a kernel (Linux Newb)

Hi, I am fairly new to Linux and I love Ubuntu. I want to recompile my kernel to get my system running faster, but I have no idea where to begin. Can someone please write out some directions for me? Thanks.

Dell Latitude Cpx H 500 mhz PIII (non-speedstep)
448 MB PC 100 RAM
30 GB HDD
ATI Mobility 8 MB AGP 2x
ESS Maestro 2E
SolidStClair is offline   Reply With Quote
Old April 8th, 2005   #2
az
just this guy, you know.
 
az's Avatar
 
Join Date: Oct 2004
Location: Kingston, On
My beans are hidden!
Re: How do I compile a kernel (Linux Newb)

Open a terminal.

sudo apt-get install build-essential linux-source-2.6 libncurses5-dev kernel-package

cd /usr/src
tar xvjf linux-source*
cd linux-source
cp /boot/config-2.6.10.5-386 .config
sudo make menuconfig

cofigure the heck out of your kernel

sudo make-kpkg --revision-1 --append-to-version=mykerne1 kernel_image kernel_headers

cd ..
sudo dpkg -i linux-image-2.6.10*.deb


Seriously, this probably will not make your system go any faster.
az is offline   Reply With Quote
Old April 8th, 2005   #3
jdong
Ultimate Coffee Grinder
 
jdong's Avatar
 
Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
Re: How do I compile a kernel (Linux Newb)

Quote:
Originally Posted by SolidStClair
I want to recompile my kernel to get my system running faster,
That is quite a misconception.... I have a i386 and athlon-k7 optimized kernel on my system, and am using an AMD64. I cannot measure or feel any difference in speed.
jdong is offline   Reply With Quote
Old April 8th, 2005   #4
shakin
Quad Shot of Ubuntu
 
Join Date: Nov 2004
Beans: 489
Re: How do I compile a kernel (Linux Newb)

Quote:
Originally Posted by jdong
That is quite a misconception.... I have a i386 and athlon-k7 optimized kernel on my system, and am using an AMD64. I cannot measure or feel any difference in speed.
I agree. Compile if you want specific functionality that you can't get by default. Don't let the Gentoo folks fool you into thinking you need to compile anything to gain speed
shakin is offline   Reply With Quote
Old April 8th, 2005   #5
CRCampbell
Spilled the Beans
 
Join Date: Mar 2005
Beans: 14
Re: How do I compile a kernel (Linux Newb)

Down with Gentoo! Heretics and insulters of our great Ubuntu Nation!
CRCampbell is offline   Reply With Quote
Old April 8th, 2005   #6
az
just this guy, you know.
 
az's Avatar
 
Join Date: Oct 2004
Location: Kingston, On
My beans are hidden!
Re: How do I compile a kernel (Linux Newb)

Alrighty.


*Ahem*.

I think Ubuntu attracts many people. Possibly many people tried linux years ago when it was recommended to recompile a kernel after you install. This is no longer the case.

The message to these people is:

1- Welcome back.

2- Stock distribution kernels are pretty much all you will ever need to use. You will not have to recompile your kernel. And also, you can compile kernel modules (drivers) without having to recompile the kernel. Look at the linux-headers package.


------------
On another note, Gentoo rocks, too. Just differently....
az is offline   Reply With Quote
Old April 8th, 2005   #7
jdong
Ultimate Coffee Grinder
 
jdong's Avatar
 
Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
Re: How do I compile a kernel (Linux Newb)

Quote:
Originally Posted by CRCampbell
Down with Gentoo! Heretics and insulters of our great Ubuntu Nation!
Ok... that's a bit too strong....

The problem is that you take quite a large responsibility into your own hand... Every vendor has a team of kernel experts tracking the latest patches flying around lkml for security fixes, stability patches, and bugfixes, which are often not going to be released officially for a relatively long time.

You are best off leaving the job of kernel management to experts. The Ubuntu kernel comes in 386,686, and k7(Athlon) flavors, which should be optimized enough for any purpose.
jdong is offline   Reply With Quote
Old April 10th, 2005   #8
fsman
Gee! These Aren't Roasted!
 
Join Date: Dec 2004
Beans: 145
Re: How do I compile a kernel (Linux Newb)

Quote:
Originally Posted by azz
Alrighty.


*Ahem*.

I think Ubuntu attracts many people. Possibly many people tried linux years ago when it was recommended to recompile a kernel after you install. This is no longer the case.

The message to these people is:

1- Welcome back.

2- Stock distribution kernels are pretty much all you will ever need to use. You will not have to recompile your kernel. And also, you can compile kernel modules (drivers) without having to recompile the kernel. Look at the linux-headers package.


------------
On another note, Gentoo rocks, too. Just differently....
WRT point 2. I'm trying to get the 'Zoran' video driver installed. I'm trying rebuild the entire kernel.
what do I need to do to just build the Zoran module?
fsman is offline   Reply With Quote
Old April 10th, 2005   #9
edubarr
5 Cups of Ubuntu
 
Join Date: Apr 2005
Location: Waterloo - ON, Canada
Beans: 42
Re: How do I compile a kernel (Linux Newb)

Here's a link to a kernel how-to:
http://www.digitalhermit.com/linux/K...ild-HOWTO.html

I build my own kernel and I don't think that's a bad idea. It's configured to my system and everything works in the best way possible. The only thing you really need is a little curiosity and knowledge of what hardware you have on your system.
edubarr is offline   Reply With Quote
Old April 10th, 2005   #10
az
just this guy, you know.
 
az's Avatar
 
Join Date: Oct 2004
Location: Kingston, On
My beans are hidden!
Re: How do I compile a kernel (Linux Newb)

Quote:
Originally Posted by fsman
WRT point 2. I'm trying to get the 'Zoran' video driver installed. I'm trying rebuild the entire kernel.
what do I need to do to just build the Zoran module?

sudo apt-get install build-essential linux-headers-2.6.10-5-386 (if that is the kernel you are using)

Untar the driver source
tar xvzf XXXXX.tar.gx
cd XXXXXX


then read the readme. If there is a debian directory there, try
sudo debian/rules binary
az is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:24 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry