Slackware This 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.
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.
|
|
06-30-2006, 06:44 PM
|
#1
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
|
kernel & module building as root
I run a server out of my basement on my old 200 MHz tower using Slack 10.2. I want to update the kernel from 2.6.13 to 2.6.17.3 (the current 2.6 kernel) and am doing so now as root. This is going to take hours to build the bzImage and then more time to build all the modules. My server is also running.
Should I build the kernel as root? If not, could I build the modules as a user since the kernel is being built by root?
|
|
|
06-30-2006, 07:03 PM
|
#2
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Actually, you can do both at the same time. Just use the command 'make' instead of 'make bzImage' and 'make modules'. You should do both as user (may have to do as 'su' depending on folder permissions). 'make modules_install' I always do as su
|
|
|
06-30-2006, 07:08 PM
|
#3
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
I moved the kernel tarball to /usr/src, untarred and made a sylink called linux there. I take it a user cannot right to /usr/src, so I need to move the tarball to my user directory untar, make mrproper, make menuconfig, and make as user. Then copy the new kernel directory to /usr/src and do a make modules_install as root. Is this right?
|
|
|
06-30-2006, 07:16 PM
|
#4
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
I would just 'su'
But read this excellent post on making the kernel
|
|
|
06-30-2006, 07:28 PM
|
#5
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
looks like kernel building, module building, and module installation is all done as root there. So building a kernel & modules as root is ok?
|
|
|
07-01-2006, 09:36 PM
|
#6
|
Member
Registered: Jan 2006
Posts: 37
Rep:
|
Yes. I build the kernel and modules as root.
Remember, you've got multiple virtual consoles. Just hit alt-F2 (or some other console), login, su up and then build/install your kernel. That way you can go about your business as a non root user on a different window.
Cheers.
|
|
|
07-01-2006, 09:39 PM
|
#7
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
I need to Google this and read about the kernel based filtering of kernels > 2.6.15. What's it called?
For now I'll update to kernel 2.4.32 on my server and continue to use iptables.
|
|
|
07-01-2006, 09:52 PM
|
#8
|
Member
Registered: Jan 2006
Posts: 37
Rep:
|
Kernel based filtering of kernels? Huh? o.0
You talking about the Network Packet Filtering in the 2.6 Kernel?
|
|
|
07-02-2006, 07:46 AM
|
#9
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
|
|
|
07-02-2006, 07:56 AM
|
#10
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
Quote:
Originally Posted by linuxhippy
I moved the kernel tarball to /usr/src, untarred and made a sylink called linux there. I take it a user cannot right to /usr/src, so I need to move the tarball to my user directory untar, make mrproper, make menuconfig, and make as user. Then copy the new kernel directory to /usr/src and do a make modules_install as root. Is this right?
|
the safest way is to do all that in your home-directory,
so you don't have to be root.
you can create a dir. called "kernels" ( or whatever you like ) there.
then you'll only need to be root to do the install step.
there's no reason to move stuff to /usr/src.
read all about it in the README file that comes in the kernelsources' topdir.
( that was written by Linus himself )
egag
|
|
|
07-04-2006, 09:07 AM
|
#11
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
I thought I read that somewhere-thanks egag! I built the kernel and modules in my user's home directory. I didn't want these to be useable by a user, so I moved the new kernel directory to /usr/src and did make modules_install as root-worked good.
|
|
|
All times are GMT -5. The time now is 11:46 AM.
|
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
|
|