Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-31-2005, 08:00 PM
|
#1
|
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,860
Rep:
|
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...
|
|
|
|
05-31-2005, 08:10 PM
|
#2
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
Download the kernel sources and compile the kernel for your machine.
|
|
|
|
05-31-2005, 08:20 PM
|
#3
|
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,860
Original Poster
Rep:
|
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?
|
|
|
|
06-01-2005, 12:39 AM
|
#4
|
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
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.
|
|
|
|
06-01-2005, 01:16 AM
|
#5
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
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.
|
|
|
|
06-01-2005, 04:25 AM
|
#6
|
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
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. 
|
|
|
|
06-01-2005, 11:17 PM
|
#7
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
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.
|
|
|
|
06-02-2005, 05:18 AM
|
#8
|
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
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.
|
|
|
|
06-02-2005, 06:04 AM
|
#9
|
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,860
Original Poster
Rep:
|
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.
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.
|
|
|
|
06-02-2005, 06:51 AM
|
#10
|
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
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.
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").
|
|
|
|
06-02-2005, 07:26 AM
|
#11
|
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,860
Original Poster
Rep:
|
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.
|
|
|
|
06-02-2005, 01:12 PM
|
#12
|
|
Member
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian Squeeze / BackTrack 5/ Linux Mint 11
Posts: 359
Rep:
|
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!

|
|
|
|
06-02-2005, 01:57 PM
|
#13
|
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,860
Original Poster
Rep:
|
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"?
|
|
|
|
06-02-2005, 02:15 PM
|
#14
|
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:46 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|