Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
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.
|
|
10-15-2004, 04:36 PM
|
#1
|
Member
Registered: Jan 2004
Distribution: LFS
Posts: 91
Rep:
|
when is root not root?
Hi,
I've just gone through a LFS 5.1.1 install (3 DAYS!) and it comes up fine, BUT
I'm getting several odd problems which I think may be related....
1) hostane doesn't work
2) When logging in, .bashrc isn't executed (but if I su as a user, it is...!)
3) Using ping gives an error saying it must be run as root (I'm logged in as root!)
4) DNS isn't resolving.
That's it for now! Any ideas anyone????
Cheers,
Paul Simpson
|
|
|
10-16-2004, 01:30 PM
|
#2
|
LQ Newbie
Registered: Feb 2004
Distribution: RH 7.3, Mandrake 9.2
Posts: 7
Rep:
|
I just finished my installation too. I used Automatic LFS so I could let it run all night
1. Hostname doesn't work - I assume you mean your system doesn't seem to have a hostname. Check that you have the right entry in the /etc/hosts file and make sure you have <someIP> <somehostFQDN> <somehost>
for example: 192.168.2.4 lfs.mynet.com lfs
2. I noticed that logging in as root doesn't seem to run bashrc. It's beyond me but if it happens to you too, it must be normal.
3. I have no explanation for this. the only thing I am going to guess is that your root account isn't ID 0. Check the /etc/passwd file If it has something other than root:x:0:0...... That may be your problem.
4. check your /etc/resolv.conf file. ( make sure it isn't spelled resolve.conf. I made that mistake already) Check that you have a line that states nameserver <someIP> if you don't have a DNS server like on a linksys or something just point it to your localhost so... nameserver 127.0.0.1
|
|
|
10-16-2004, 03:02 PM
|
#3
|
Member
Registered: Jan 2004
Distribution: LFS
Posts: 91
Original Poster
Rep:
|
Thanks for the response! All night, eh? I had an SBU of 20 minutes (slow machine!)....
Unfortunately, this doesn't seem to work
1 - Yep, done that. I've also tried to use the hostname command. No error, no nothing.
2 - It doesn't seem to be connected to the user, but the login method. If I login as a user (root or otherwise) at the prompt - no bashrc. If I then su to another user (including root), then bashrc does it's stuff!
3 - yep, 0:0 ...????
4 - Again, yes.
I used the package - tracking idea where you install each bit as a user named ofter that user and I'm wondering if this may be part of the problem. I can't help feeling that these problems are all connected somehow ..
|
|
|
10-27-2004, 05:26 AM
|
#4
|
Member
Registered: Jan 2004
Distribution: LFS
Posts: 91
Original Poster
Rep:
|
Update!
For anyone who'se found this thread in a search - I've solved the .bashrc problem!!!
It's all explained in the "Beyond Linux From Scratch" book in Chapter 3. (The Bash Shell Startup Files)
It's all down to login shells (from the initial login) using one set of startup files verses non-login shells (like su) using another...
Regarding PING, HOSTNAME etc. It would seem to be the package management system. I dunno exactly what's happening, but if I go to the install directory and execute it from there, it works! I copied this one over by hand and BINGO!!!
Not sure what happened with DNS, I kept re-installing stuff and suddenly it worked.... I suspect the package management system again. My advice to others is to use this with caution and certainly, for your first LFS systm, do it "vanilla".
I hope this helps others!
Paul
|
|
|
11-01-2004, 08:55 PM
|
#5
|
LQ Newbie
Registered: Aug 2004
Location: Redford, MI
Distribution: lfs 6.0-testing-20040913/ blfs 5.1 modifyed
Posts: 10
Rep:
|
Re: Update!
Quote:
Originally posted by Paulsuk
Regarding PING, HOSTNAME etc. It would seem to be the package management system. I dunno exactly what's happening, but if I go to the install directory and execute it from there, it works! I copied this one over by hand and BINGO!!!
|
this might not help much but i had this problem when i first started and i had to recompile the kernel with a few thing (sorry i cant remember what they were, i do know one was the drivers for my nic) and they started to work fine the HOSTNAME i never had a problem with
|
|
|
11-03-2004, 08:05 AM
|
#6
|
LQ Newbie
Registered: Oct 2004
Posts: 22
Rep:
|
Quote:
Originally posted by gkemper
I just finished my installation too. I used Automatic LFS so I could let it run all night
|
Automatic LFS???? LINK PLEASE!!
|
|
|
11-06-2004, 01:41 AM
|
#7
|
LQ Newbie
Registered: May 2003
Location: The Netherlands
Distribution: LFS
Posts: 28
Rep:
|
Quote:
Originally posted by rickseiden
Automatic LFS???? LINK PLEASE!!
|
It's right there, at the top of the LFS site link
|
|
|
All times are GMT -5. The time now is 05:24 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
|
|