LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-31-2005, 08:00 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Fresh install


I just installed Debian (Sarge) on my machine and everything seems to be great so far but now I don't really know exactly what I need to do.

I notice that I am running a old kernel that I was on FC3/4 so I was wondering how I can upgrade to the 2.6 kernel on my new Debian system?

Thanks for any info...
 
Old 05-31-2005, 08:10 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Download the kernel sources and compile the kernel for your machine.
 
Old 05-31-2005, 08:20 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally posted by MS3FGX
Download the kernel sources and compile the kernel for your machine.
I have no idea how to compile anything on Linux. Is there no simple way to install this via APT-GET?
 
Old 06-01-2005, 12:39 AM   #4
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Of course you can get a newer kernel through apt. If you use Synaptic, it's even easier. Use Synaptic's search function for kernel-image and pick one from the returned list. Otherwise, through apt-get directly, use
Code:
apt-get update
apt-cache search kernel-image
apt-get install kernel-image-2.X.Y-extraversion
The first command will update your package list, the second one will return a list of available kernel images and the third one will install your selection (where X,Y and extraversion it's up to you to pick).
Note though, that depending on what repository branch is your sources.list and/or apt.conf pointing to, you might not get the latest kernels. For example, Sarge's newest kernel is 2.6.8 (IIRC), while the unstable branch will always have newer kernels.

On the other hand, compiling the kernel yourself gives you the opportunity of streamlining your kernel, that is a smaller and faster one.
 
Old 06-01-2005, 01:16 AM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I never saw the point in installing a new kernel through any sort of package management system.

The whole point of moving to the latest kernel (aside from the occasional bug) is for the increase in speed.

But getting a generic kernel packaged with hundreds of modules is going to greatly negate any advantage you would get from running the 2.6.x line.
 
Old 06-01-2005, 04:25 AM   #6
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Having to compile anything is a pain, IMO. Luckily, all my hardware is supported by the default Debian kernel images and I can even choose a kernel binary package that has been optimized for my processor (i686). That kernel-images come with lots of modules doesn't make them any slower than self-compiled kernels because only the needed modules are actually loaded. People who compile their own kernels with just the necessary drivers/modules will need to recompile kernel every time they add new hardware. I've got nothing against people compiling stuff from source but, personally, I feel that masochism just isn't my thing.
 
Old 06-01-2005, 11:17 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
That kernel-images come with lots of modules doesn't make them any slower than self-compiled kernels because only the needed modules are actually loaded. People who compile their own kernels with just the necessary drivers/modules will need to recompile kernel every time they add new hardware.
They don't make the kernel any slower (though having them compiled in would be slightly faster than using modules in the first place) but they do take up considerable amount of space.

Why install 200 modules when you are only going to be using 2?

And you don't have to recompile the kernel when you add new hardware. All you have to do is compile the module and put it in the module directory, you wouldn't need to touch the kernel at all. Unless you didn't compile in support for modules, of course.
 
Old 06-02-2005, 05:18 AM   #8
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
My kernel-image takes about 45M disk space -- consider how much extra disk space is taken by the kernel source you keep around to build new modules when needed?

I'd still recommend that a newbie should try first one of the ready-built kernel-images -- unless the kernel-image doesn't support some specific piece of hardware you've got. Compiling your own kernel or additional modules can be a useful skill but a modern GNU/Linux distro should be usable even without such specialized skills, IMO.
 
Old 06-02-2005, 06:04 AM   #9
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Ok, so I am trying to download the latest stable kernel from kernel.org.

I think I downloaded the file but I can't find it on my system. I am logged in as root.

Code:
wget http://www.kernel.org/pub/linux/kern...-2.6.11.11.bz2
--16:52:25--  http://www.kernel.org/pub/linux/kern...-2.6.11.11.bz2
           => `patch-2.6.11.11.bz2'
Resolving www.kernel.org... 204.152.191.5, 204.152.191.37
Connecting to www.kernel.org[204.152.191.5]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20,868 [application/x-bzip2]

100%[====================================>] 20,868        82.38K/s
Quote:
The latest stable version of the Linux kernel is: 2.6.11.11 2005-05-27 05:51 UTC F V VI C Changelog

Last edited by carlosinfl; 06-02-2005 at 06:17 AM.
 
Old 06-02-2005, 06:51 AM   #10
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
I think I downloaded the file but I can't find it on my system.
There are several ways to search files on a GNU/Linux system. I use the "locate" utility for this purpose. "su" to root and run "updatedb" to update the locate database. Then hit Ctrl-d to become normal user again. Now you can search for any file name pattern with "locate" -- for instance, you can search for the file "patch-2.6.11.11.bz2" with the "locate patch-2.6.11.11.bz2" command (although "locate patch-2.6" will probably show the same result). Notice that the "locate" command only searches from the locate database, so you need to update the database (with "updatedb" run as root) every now and then if you want to include newly installed files to your search.

Quote:
I am logged in as root.
Save yourself from unnecessary troubles and always log in as normal user. Then you can use the "su" command to become root temporarily for doing administrative tasks. During X session you can use the "gksu" utility (aptitude install gksu) to launch GUI apps with root privileges (for example, "gksu synaptic").
 
Old 06-02-2005, 07:26 AM   #11
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Only reason I am root now is due to the fact that I am using an SSH connection so anything I do requires root. No need to login as a basic user since I am not in front of a GUI.

That "locate patch-2.6.11.11.bz2" worked fine. It found it no problems and I did update the database.

Code:
debian:~# locate patch-2.6.11.11.bz2
/root/patch-2.6.11.11.bz2
How hard of a process is it to install this kernel after I extract it from the bz2 compression? Is there a site that will show me how or can someone please post the steps?

Last edited by carlosinfl; 06-02-2005 at 07:27 AM.
 
Old 06-02-2005, 01:12 PM   #12
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382

Rep: Reputation: 37
I highly recommend going through macondo's post-install configuration tutorial at the top of this forum. It will explain how to add and set up a lot of extras you might want. I used it for adding firefox, thunderbird, cups (although I still had to add a few libraries and a new HP driver), Java and VIM.
As for me, I watched a friend of mine recompiled Debain a few weeks ago, and following that, there was no noticable speed difference. I installed a ready-built kernel image for my P5-500 system, and it installed so easy. I did the following:

#apt-get update
#apt-cache search kernel-image

I found the image for my Intel P3-500, then typed:

#apt-get install kernel-image-2.6.8

Afterwards I reboot, selected the new kernel, tested X, and then ran debfoster. I selected no when asked if I wanted to keep the old kernel image, and grub was automatically updated. It was extremely easy. Did it make any speed difference? I'm not sure. Either it did speed up a little, or I am imagining that it did. Either way, I am running a ready-built package for my processor. Try it!

 
Old 06-02-2005, 01:57 PM   #13
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I think I am going to wipe this disk and try to install just the core essentials to get Debian up and running. I would prefer to install all the GUI apps manually because too much junk was loaded.

If I do a reinstallation of Debian and select only Apache and Samba with no desktop environment, how hard is it to manually install KDE 3.3.2? Is it as simple as just "apt-get install kde"?
 
Old 06-02-2005, 02:15 PM   #14
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
how hard is it to manually install KDE 3.3.2? Is it as simple as just "apt-get install kde"?
Try this instead: "apt-get install x-window-system kde" (or "apt-get install x-window-system-core kde-core" if you want just the fully working base installation of X Window System and kde without any extras). If you want also kde's GUI login screen, you need to add kdm to the apt-get command.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
On a Fresh install of 10.1, the Nforce drivers refuse to install.. K@rl` Slackware 2 02-25-2005 02:55 AM
fresh install frostedthorns Linux - Newbie 10 06-13-2004 04:33 PM
fresh install (fresh headache) powadha Slackware 2 03-06-2004 01:03 PM
Fresh RH9 install - oops I forgot to install something blaint Linux - Newbie 5 10-25-2003 12:29 PM
should I do a fresh install? yowwww Linux - General 4 06-06-2003 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration