SlackwareThis Forum is for the discussion of Slackware 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.
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.
i allways use the same steps to install a new kernel, exept that
i keep the sources in my home directory.
( i just have a dir. ~/kernels/ )
that has some advantages like:
-no need to be root to place and extract the sources.
(extracting tar archives as root is "dangerous" )
-root doesn't need the X-screen as you do the config step as normal user.
-if you want to do a fresh ( clean )install for some reason, you don't have to backup the
tarball of the kernel you use ( if you have a separate /home partition )
this is also the advised method to install a kernel.
see the README-file in the kernel-sources.
is there any special reason to use /usr/src instead ?
egag
You brought up a great point of mention. I've actually done about 2 hours searching these forums and the internet on this topic of making, building your kernel in a "sandbox" in your home directory, And you're right, supposedly we're not supposed to remove the linux symlink in /usr/src.
Apparently this is a really hot topic. I've seen arguments for both sides. But I heard one very good point someone made that said if you remove your existing symlink e.g. /usr/src/linux put in your new kernel you are fine, as most programs pull to 'uname -r' anyway so that you should be fine. Many times programs like alsa need to be recompiled or built into the kernel because they are kernel dependent. For example, madwifi wont work if I boot into my 2.4 kernel but will if I go 2.6. The generic programs dont seem to mind, oofice, kwrite.
I play it safe. For me, I load up slackware w/the default kernel. Put in all my programs then my updates, except video and wireless, the put my new kernel, then my dazuko/antivirus and video and then I'm done. I only keep the stock kernel and my tweaked kernel on my daily slack.
If I want to play w/a new kernel I have another partition that has an exact copy of my slackware's regular default install, and I play there and make my packages, etc. Then when I'm done playing/testing I dump it and do the final install on my regular daily slackware install. I can afford the 3 gig extra to have a full install playground that seems to be really best for me. I make alot of typo's
My mind works this way on this topic. Mr. Pat V recommends all noobs to come here and use the forums. Most people in these forums who are helping me go this route of building in /usr/src/linux, Shilo, Eric, cwwilson, drkstr, etc. If they're doing it this way, I dont wan't to be different really becuase I've really been relying on their help, and to date these guys never let me down.
I would also hope that Mr. Pat V probably hits these forums once and a while to see what we're all saying. I'd think that if he really felt it were that taboo, he might intervene. LOL, he probably loves the thread where everone says they 'hate Pat' for making us all slackware junkies.
exports the X cookies out of "alien"s ~/.Xauthority file and merges these with any cookies already present in root's ~/.Xauthority file. That way root can accumulate X authority cookies from many users.
A second reason to avoid making a symlink is that I never like symlinks that point from root's homedirectory to files in other users' homedirectories - it adds a way to hack into root's account if you mess with the file that the symlink points too.
These are both very good reasons, particlarly the last one. I only have one user so I didn't really see the negative effects of this mehtod before, but now I can see the error in my ways
Thanks for the input!
Quote:
enable 4GB of RAM. The Slackware default setting is to only support ~800 MB of your RAM, so any additional installed RAM is never used! (under "Processor type and features" > "High Memory Support (4GB)").
FYI
2.6 kernels have a new option for:
Memory split (3G/1G user/kernel split (for full 1G low memory))
which is right bellow himem support. This will still allow for full use of 1G memory while not taking the hit in performance with using himem.
I just finished compiling my kernel. I've been putting it off for a month because I wasn't really confident about doing this with an SATA drive. The timing of this thread couldn't possibly have been any better. The docs earned a place in my red 3-ring binder.
Drkstr... thanks for the memory configuration tip. I have a lot more available RAM now than I did earlier today.
Wow. Should have checked back on this thread. The info is blowing my mind.
I just hope this DOESN'T turn into 'Well, I compile this way...' thread.
As we all know, put 5 Slackers together to compile a kernel, you'll end up with:
5 different kernels, 4 of which work, 3 different threads, 2 kernels that boot, but still don't have all the stuff you need, and at least 1 newbie who goes back to Windows.....
The info in this thread has made many things clear.
And kudos to Eric, for parting some of the fog.
And to Old Fogie, who had the guts to do four things:
For asking questions
For looking for solutions, here at LQ, and elsewhere
I think I may need to explain why and how I do things here.
I have between 5-8 computers running at the house here, from laptops to blade servers, running Slack 3.1 (an old Compaq I setup years ago to be a modem server, isolated from my other networks, and still humming away...), Slack 10.2, 1 laptop running 'current', and 3 XP boxes. (5-8 because I'm always upgrading, and hardware does break...)
I use the 'current' laptop (the one I'm writing this on) as my only link to the internet on this network (3 networks here...long story), and as my 'mess about' box. The reason for this is manyfold:
The hardware is older, so it is well supported
The hardware does not change
I don't really care if I mess it up, it is not critical to anything for me.
What I do is experiment with the laptop, then apply the knowledge to my 'critical' boxes, thus saving me tons of grief, and downtime.
Great thing about Slack: My servers (web, mail,news,nfs,samba, and ADS) are rock solid, and my desktops are up.
I beleive it is because of my 'laptop first'policy...lol
But I also do things different on the laptop, because I couldn't care less if it gets hacked or crashes. It won't affect the other networks. So I get sloppy with it, compiling shortcuts, testing software, etc, and security goes out the window on it. It is my 'garbage can', I guess.
So the kernel config files are from one setup of this laptop, the xorg.conf is from a different 'install', etc... (I don't and will NEVER reveal what confs and stuff is running on my critical stuff.)
So if you do use my files, they may, and probably do, have gaping security holes in them, but I post them for reference for others to use.
Just my 2cents...
BTW, I'm a 'favorite poster' now? How the heck did that happen?....Where did these kids in my house that call me Dad come from? When did I buy a house? When did I graduate from school?
And, worst of all, where is my Geritol?
Last edited by cwwilson721; 06-04-2006 at 12:57 AM.
You brought up a great point of mention. I've actually done about 2 hours searching these forums and the internet on this topic of making, building your kernel in a "sandbox" in your home directory, And you're right, supposedly we're not supposed to remove the linux symlink in /usr/src.
Apparently this is a really hot topic. I've seen arguments for both sides. But I heard one very good point someone made that said if you remove your existing symlink e.g. /usr/src/linux put in your new kernel you are fine, as most programs pull to 'uname -r' anyway so that you should be fine. Many times programs like alsa need to be recompiled or built into the kernel because they are kernel dependent. For example, madwifi wont work if I boot into my 2.4 kernel but will if I go 2.6. The generic programs dont seem to mind, oofice, kwrite. Not sure about mplayer tho, that app is a bee-otch.
of course there are more ways to get a new kernel installed, and there
is not one that's " the best".( that's why some discussions never stop )
if you have found a way that works for you, just stick to it.
but working in a "sandbox" in your own home-dir. has some advantages.
( ...and maybe also disadvantages ? )
but the symlink you mention ( /usr/src/linux) is never used.
if you compile some sources that need the headers of the kernel that's used,
the link "/lib/modules/<kernel-version>/build" is used to find the sources.
( this is the case with kernel-modules like alsa, madwifi, nvidea-& ati-drivers
and such)
other programs won't mind.
someone on this forum has a sig :" there's no answers, only choices ".
that hits the nail on the head...
I'm trying to do a kernel on ubuntu so it runs faster in qemu, and while doing that kernel compile, I noticed something that may ?? be helpful on my slackware boxes and was wondering if you had any thoughts or experience with this.
Basically, If you look at this ubuntu guide for kernel compiles, the ubuntu folks recommend applying a "performance patch" before compiling a new kernel.
Now I thought that at first that this was an 'ubuntu' specific thing at first, however, the files that you use to compile a kernel for ubuntu is from kernel.org and it's a standard kernel.
Is there any advantage to me doing this on my slack boxen? Has anyone done this?
If you live on the razors edge and don't mind bleeding. Calling the patches performance patches is a misnomer. Your best bet for performance is to customize .config for your specific setup and use
make oldconfig
on the updated kernel trees to make a decision on the new features that are being added. If following the changelogs you see something that you really want that works if you update with the patch, by all means grab it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.