LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-09-2008, 07:48 PM   #1
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Kernel development ... how to install


It has been a while since I have worked with Suse ... the last time that I needed to install a third party driver that required compiling a kernel module, I needed to install the required files and binaries.

From what I remember ... I just had to install a software package called "Kernel Development" through Yast. This package installed all the required files for me to build a module against the kernel.

Now I have OpenSuse 10.3 ... and there does not appear to be these "packages" anymore (or I am not looking at the right place in the Yast software manager).

I know I can install a number of files to build a development environment, but I thought there would be an easier way.
 
Old 05-10-2008, 01:48 PM   #2
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Original Poster
Rep: Reputation: 43
I will add ... I normally use Gentoo so all the required headers, sources, compilers ... etc, are already there.

Any Suse shortcut to downloading everything I need ?
 
Old 05-11-2008, 12:37 AM   #3
dahveed3
Member
 
Registered: Mar 2007
Posts: 191

Rep: Reputation: 31
They made it easy with Patterns.

If you are using Gnome you have by default a new GTK version of YaST-Software-Software Management applet. Really hard to find ways to do any kind of advanced things as the new GUI hides them or doesn't include the processes.

So change that first thing so everything will be easier. If you use KDE then you already have the traditional GUI.

YaST-System-/etc/system_config_editor

Scroll on the left to (by memory so forgive) where there is YaST-GUI. Change it on the right from auto to Qt. Apply and exit. That's that.

Now in YaST-Software-Software Management change the Search drop-down to Patterns.

In the list of Patterns you'll see a development area. Right click the boxes and choose install for Base Development, C++ Development, and Linux Kernel Development. Might want the Console Tools Pattern somewhere above those amidst the other various Patterns as well. If you'll be compiling a bunch of software you may desire to install some of those other Development Patterns as well, but that's not needed for just installing those videocard binary blobs and WiFi stuff you're likely talking about.

Now you see how easy that is. Don't know what videocard you have, but take a look at the NVidia page at the wiki at opensuse.org. Same for ATI. They now have a one-click installer started from a click on a web page button. It installs the repo needed, the X11 driver, and the Kernel module needed. Reboot and if sax2 can automatically configure it properly you're done, and if not just go into YaST-Hardware-Display and it'll run sax2 for you and you can set the monitor settings and see if it automatically put a check in the activate 3d checkbox for you. It should have done that at least, but the resolution and monitor size can be tweaked in there.

You can download and install NVidia or ATI from their websites, but this way is nice since when xorg or kernels get upgraded all you need to do is reboot and all is usually fine. Sometimes a visit to sax2 is needed again if it needed to redetect the monitor.

If it doesn't activate the driver automatically you can do

su -
init 3
sax2 -r -m 0=nvidia

and set it properly. It's supposed to not need more than sax2 -r these days if the driver is installed, but that loading of the nvidia module manually is just because you had to go and do that and shouldn't have needed to so this will definitely load the thing.

Or if ATI

su -
init 3
aticonfig --initial

They say the newer ATI fglrx drivers don't get configured properly with sax2 so just doing that works fine. I think there's more to do than that, like some xorg.conf editing with ATI as well.

They're doing one-click for almost everything these days, multimedia codecs too:

http://opensuse-community.org offers one-clicks and instructions for that. If you'd rather do it yourself you can check the instructions for 10.2 and just use the 10.3 sources and install the stuff manually with YaST.

Things are getting almost too easy.

If you click on Yast-Software-Community Repositories you can just add the checks for the repositories you want and they'll automatically set them up for you. Just don't re-add them when later doing the one-click stuff. If you see that the installer wants to add repos you already have just unclick them so it won't do that, but only will then install its selected packages from your already configured repositories.

Last edited by dahveed3; 05-11-2008 at 12:41 AM.
 
Old 05-11-2008, 10:15 AM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Original Poster
Rep: Reputation: 43
Quote:
In the list of Patterns you'll see a development area. Right click the boxes and choose install for Base Development, C++ Development, and Linux Kernel Development.
Hmm, I will have to check that again ... I did recall this before and I did use the Patterns in the Yast software manager ... but I do not recall seeing a Development area with those packages in OpenSuse 10.3.

I will have to check again.

Thanks for the info.
 
  


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
Dont understand how to install kernel development packages and gcc Hollomankilla Linux - Newbie 3 10-22-2007 11:21 PM
kernel 2.4.x development linuxhippy Linux - General 1 07-04-2006 04:16 PM
Kernel development linuxdev Linux - Newbie 2 02-05-2004 03:00 PM
kernel development chrismiceli Linux - General 1 10-16-2003 12:27 PM
nvidia for development kernel watashiwaotaku7 Linux - General 2 03-18-2003 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:27 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