SUSE / openSUSE This Forum is for the discussion of Suse 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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-25-2005, 09:18 PM
|
#1
|
Member
Registered: Feb 2005
Location: Missour, USA
Posts: 83
Rep:
|
Cant install kernel source?
I've got suse 9.1 and i cant download and install the kernel source. I've used YAST and found it, but cant check it. I've also search the net and found an rpm and tried to install it that way, but it doesnt work. I'm tring to set up my wireless nic card and need it for the make command.
Any suggestions?
Keith
|
|
|
02-26-2005, 01:10 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555
Rep:
|
Download the full source for the newest stable kernel from kernel.org. Then use make oldconfig to create the .config file, make changes based on your system and compile. Then you'll be running the newest stable release and have the kernel sources you want.
|
|
|
02-26-2005, 01:46 AM
|
#3
|
Member
Registered: Feb 2005
Location: Missour, USA
Posts: 83
Original Poster
Rep:
|
Ok i will try that, but i've never compiled a kernel before.
Keith
|
|
|
02-26-2005, 02:46 AM
|
#4
|
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555
Rep:
|
after you unpack the new kernel to /usr/src/linux-2.6.9
make clean
make mrproper
make oldconfig
make menuconfig (change anything you need)
make bzImage
make modules
make modules_install
cp ./arch/i386/boot/bzImage /boot/vmlinuz-2.6.9
mkinitrd -k vmlinux-2.6.9 -i initrd-2.6.9
Now edit the /boot/grub/menu.lst
Add this entry, you could leave out the comments or put in your own
### New 2.6.9 kernel ###
title linux-2.6.9
kernel (hd0,2)/boot/vmlinux-2.6.9 root=/dev/hda3
initrd (hd0,2)/boot/initrd-2.6.9
At the time i wrote this, 2.6.9 was the stable, I know 2.6.10 is stable, but there might be another since then.
|
|
|
02-26-2005, 06:28 AM
|
#5
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
musicman_ace:
Do you really think this was a good advice? keith2045 asked for help because he needs the sources of his kernel to compile a module for his wireless device and you tell him to configure and install a completely new kernel...after doing this, the wireless adapter might still not work and who knows what other problems appear.
keith2045:
Could it be that you are running 9.1 Personal edition? This one comes without development tools, but they can easiely installed from a FTP server. Have a look here for a detailed description:
http://www.linuxquestions.org/questi...hreadid=266647
Otherwise download the sources from the SuSE server directly and install them with rpm -ihv <kernel-source-package> or by clicking the file. Be sure to have the sources matching the version number of the running kernel (output of uname -r). You may need to run YOU to update the sources.
|
|
|
02-26-2005, 07:51 AM
|
#6
|
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555
Rep:
|
This is true, but he said he couldn't download it which I assumed meant from within YasT. If for whatever reason he can't get Yast to install the kernel source, then what I posted will get the kernel source for him. He could figure out what version his kernel is and download that source, but why not go to the trouble of getting a newer stable release. 9.1 came with SusE's 2.6.4-default-52 if I remember right. There were latency issues and SusE quickly pushed out 2.6.5-xxxx, so I wouldn't suggest sticking with their original kernel.
|
|
|
02-26-2005, 08:20 AM
|
#7
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919
Rep:
|
Quote:
Originally posted by keith2045
I've got suse 9.1 and i cant download and install the kernel source. I've used YAST and found it, but cant check it. I've also search the net and found an rpm and tried to install it that way, but it doesnt work.
|
This is the SuSE 9.1 source kernel base release: kernel-source-2.6.4-52.i586.rpm
Download that file and then, if you are in KDE, goto where you placed the RPM, right-click on it and select Actions > Install with YaST. That should be all you need to do. If you get an error with the install let us know. There are other ways to do this procedure but that is probably the most intuitive.
|
|
|
02-26-2005, 07:11 PM
|
#8
|
Member
Registered: Feb 2005
Location: Missour, USA
Posts: 83
Original Poster
Rep:
|
I've tried downloading it from suse's ftp server. But when i double click it, it opens YAST, then after a second, it closes with no messages.
I will try downloading the development tools.
Thanks
Keith
|
|
|
02-26-2005, 07:21 PM
|
#9
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919
Rep:
|
Quote:
Originally posted by keith2045
But when i double click it, it opens YAST, then after a second, it closes with no messages.
|
Are you able to install other packages in this manner?
Sounds like you have a problem with YaST.
|
|
|
02-26-2005, 07:26 PM
|
#10
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919
Rep:
|
You could always just open a terminal and su to root, then cd to the location of the kernel-source RPM and issue this command:
rpm -i kernel-source-2.6.4-52.i586.rpm
For example, if you downloaded the file to your desktop:
$ su
Password: <your root password>
# cd /home/<your user name>/Desktop
# rpm -i kernel-source-2.6.4-52.i586.rpm
Edit: BTW, what kernel version are you currently using?
Open a terminal and type in this command:
$ uname -r
What is the output?
Last edited by Xian; 02-26-2005 at 07:29 PM.
|
|
|
02-26-2005, 08:11 PM
|
#11
|
Member
Registered: Feb 2005
Location: Missour, USA
Posts: 83
Original Poster
Rep:
|
It's not YAST, I've installed programs with it and it worked. I've just done what abisko00 said, and it appears to be working. I'm currently downloading and installing the kernel sources.
Thanks for your help.
Keith
|
|
|
All times are GMT -5. The time now is 08:49 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
|
|