LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-23-2005, 12:35 PM   #31
acidjuice
Member
 
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320

Original Poster
Rep: Reputation: 30

Quote:
Originally posted by egag
no, i don't mean it's a bad idea. it won't harm.
but it saves some steps in the whole.

also, people using this guide will get some prob's for sure, and need to check their steps.
leaving it out would also save time when they are trouble shooting.

egag
Point taken, guide has been edited to show this step as 'Optional'. thank you!
 
Old 02-23-2005, 01:33 PM   #32
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
still i wonder why you're keeping the " /usr/src/linux-symlink " myth alive ?
i know , even reading the howtos on the ati-site , they advice to check it.
but the build-script uses the " /lib/modules/2.6.10/build " link, which is used by everyone.

it's just a tip.
as any step you can skip is just one less to take.

egag
 
Old 02-23-2005, 05:50 PM   #33
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
/usr/src/linux is a myth?
and nobody told me :[


actually, i had thought that it didn't have anything to do with
the kernel compilation...but that it was for easy linking to the
source for third party software compilations. oh well...
 
Old 02-23-2005, 07:25 PM   #34
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
Quote:
Originally posted by egag
well...a quote from Linus Thorvalds:
---------

I would suggest that people who compile new kernels should:

- NOT do so in /usr/src. Leave whatever kernel (probably only the
header files) that the distribution came with there, but don't touch
it.

- compile the kernel in their own home directory, as their very own
selves. No need to be root to compile the kernel. You need to be root
to _install_ the kernel, but that's different.

- not have a single symbolic link in sight (except the one that the
kernel build itself sets up, namely the "linux/include/asm" symlink
that is only used for the internal kernel compile itself)
----------

from: http://uwsg.iu.edu/hypermail/linux/k...07.3/0587.html

and those symlinks in /boot are really just a lot of useless typing.

for the rest this guide is how i compile kernels ( i never edit make-files ),
and it's very good readable.( though i don't say the others are not )
but there are more ways to build a kernel.

i guess everybody will stick to the method that they thrust.

egag
I dont trust this guy any farther than i can throw him... not to mention his kernel compile proceadures... wait.. nvm disregard that I thought that was Bill Gates

either way.. I see no problem compiling a kernel in /usr/src... I also see no problem compiling it as root... maybe if you are hooked up to the net with no firewall.. but I still doubt anything bad can happen. Although it is what he recommends he doesnt provide any reason why you should not do it.
 
Old 02-23-2005, 07:54 PM   #35
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
Quote:
Although it is what he recommends he doesnt provide any reason why you should not do it.
It has to do with the philosophy that if it doesn't have to be done as root it shouldn't be. Less chance for error and other such trouble.
 
Old 02-23-2005, 08:07 PM   #36
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
Quote:
Originally posted by trey85stang
I dont trust this guy any farther than i can throw him... not to mention his kernel compile proceadures... wait.. nvm disregard that I thought that was Bill Gates

either way.. I see no problem compiling a kernel in /usr/src... I also see no problem compiling it as root... maybe if you are hooked up to the net with no firewall.. but I still doubt anything bad can happen. Although it is what he recommends he doesnt provide any reason why you should not do it.
it's adviced in general not to run a Linux system as root.
that's reason enough..
but also , people following this howto will be ( nearly ) new to kernel compiling and maybe even Linux.
as root you can cause alot of prob's , so i wouldn't advice them to run as root.
( just use "su" when needed and "exit" to get out again )

and for the dir ( /usr/src or ~/ ): you'll have to copy a config file into the src-dir as a starting point and
users don't have wite permissions in /usr.


@acidjuice

there's a typo " Now let's start the operations. Let's move into the /usr/etc directory " , i think it has to be " /usr/src "
and as i read it, it's not clear when and how to copy the config file to the source-tree.
maybe add that command also.

egag

Last edited by egag; 02-23-2005 at 08:09 PM.
 
Old 02-23-2005, 08:44 PM   #37
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
oh , acidjuice, just one more thing,

-------------
The following are my recommended points to follow. Definitely not exhaustive. One last thing: this worked for me. It doesn't mean that it will work for you. Upgrading a kernel may result in the total mess up of your system.
--------------

i think that sound really scary......
if someone follows this guide, there's allways the old kernel to boot.
maybe a more general warning that being "root" you can harm the system or so....

just to make people trust this howto ( as they should... )

egag
 
Old 02-23-2005, 09:46 PM   #38
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
The statutory warning is always necessary
 
Old 02-25-2005, 04:39 AM   #39
acidjuice
Member
 
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by coffeedrinker
It has to do with the philosophy that if it doesn't have to be done as root it shouldn't be. Less chance for error and other such trouble.
this note has been added to the guide.
 
Old 02-25-2005, 04:51 AM   #40
acidjuice
Member
 
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by egag
i think that sound really scary......
if someone follows this guide, there's allways the old kernel to boot.
absolutely. however i prefer a scared noob to an angry noob wanting to bang my head on a wall

i've added your remark to the guide

thank you.

Last edited by acidjuice; 02-26-2005 at 07:37 AM.
 
Old 02-25-2005, 06:33 AM   #41
acidjuice
Member
 
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by egag
there's a typo " Now let's start the operations. Let's move into the /usr/etc directory " , i think it has to be " /usr/src "
absolutely. corrected.

Last edited by acidjuice; 02-26-2005 at 07:38 AM.
 
Old 02-26-2005, 01:58 AM   #42
grx
LQ Newbie
 
Registered: Feb 2005
Posts: 15

Rep: Reputation: 0
I just used this guide to install the 2.6.10 kernel on my system, and it worked great! However, immediately after I tried to install the nvidia drivers and found out that they search for the file /usr/src/linux-2.6.10/.config. It might be appropriate to change the commands from mv to cp when moving the files to /boot to prevent these kinds of problems. The config files are small enough that duplicate copies wouldn't hurt.
 
Old 02-26-2005, 03:23 AM   #43
auditek747
Member
 
Registered: Feb 2004
Location: Ohio, USA
Distribution: Arch Linux
Posts: 464

Rep: Reputation: 30
Heck of thing you guys are doing here.
I'll be building one of these kernels in a couple weeks.
I can't wait !

Thanks to all involved.
 
Old 02-26-2005, 04:41 AM   #44
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 138Reputation: 138
Quote:
/boot# generate-modprobe.conf /etc/modprobe.conf
This is the first time I had seen this, my /etc/modprobe.conf now looks much less sparce.

Thanks

Samac
 
Old 02-26-2005, 07:35 AM   #45
acidjuice
Member
 
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by grx
I just used this guide to install the 2.6.10 kernel on my system, and it worked great!
real glad to read it
Quote:
Originally posted by grx However, immediately after I tried to install the nvidia drivers and found out that they search for the file /usr/src/linux-2.6.10/.config. It might be appropriate to change the commands from mv to cp when moving the files to /boot to prevent these kinds of problems. The config files are small enough that duplicate copies wouldn't hurt.
you shouldn't leave the old .config as it points to the old kernel, and the driver might therefore not work. i think it actually points to /usr/src/.config. i personally have modified it to point at /usr/src/config instead (which is one of the symlinks in the optional part of the guide). not sure if this is the best way to go, though.

any input on this welcomed, so i can adjust this guide before final release.

Last edited by acidjuice; 02-26-2005 at 07:38 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Newbie Guide To Compiling A Kernel! DrOzz Linux - General 318 08-20-2008 06:21 AM
I'm interested in compiling a 2.6.x kernel, is this is a decent guide? Erik_the_Red Linux - Newbie 7 08-14-2005 07:03 AM
Kernel compiling guide for newbies... DaOne Slackware 127 04-17-2005 05:20 AM
Guide for snort+mysql+acid at Debian Woody Tredo Debian 1 02-03-2005 10:30 AM
: Kernel compiling guide for newbies Question Anibal Slackware 6 08-01-2003 08:06 AM

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

All times are GMT -5. The time now is 05:07 PM.

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