LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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



Reply
 
Search this Thread
Old 04-05-2010, 11:22 AM   #1
BrandonJ
Member
 
Registered: Mar 2010
Posts: 33

Rep: Reputation: 16
Question about moving to Chapter 6 in the LFS book.


Ok well I am at Chapter 6, I read something about using root instead of lfs as the user at the end of Chapter 5, I really never seen any code that would be there to enter in, it just said
Quote:
The commands in the remainder of this book must be performed while logged in as user root and no longer as user lfs. Also, double check that $LFS is set in root's environment.
So I should switch before I make the directories on 6.2. Preparing Virtual Kernel File Systems? Also should I clear out my whole sources folder and download new tarballs when needed?

Last edited by BrandonJ; 04-05-2010 at 11:25 AM.
 
Old 04-05-2010, 12:32 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by BrandonJ View Post
... I really never seen any code that would be there to enter in, it just said So I should switch before I make the directories on 6.2. Preparing Virtual Kernel File Systems? Also should I clear out my whole sources folder and download new tarballs when needed?
Hi,

Yes, after chapter 5 you need to logout as user lfs and perform all remaining steps as root - unless told otherwise, but I think you do not have to login as user lfs for the rest of the book again. The procedure is simple:
Code:
lfs$ exit
root$
Or, if you are using, e. g., Ubuntu as host,
Code:
lfs$ exit
normal Ubuntu user$ sudo su -
root$
After 'sudo su -' just type in your normal password.
Quote:
Originally Posted by BrandonJ View Post
Also should I clear out my whole sources folder and download new tarballs when needed?
You can use the tarballs again, you just have to delete the used sources first and then untar the tarballs again and copy the freshly untarred sources to your $LFS/sources directory. There is no point in downloading them again. It is best to keep the tarballs on your host system - far away from your LFS so to say.
 
1 members found this post helpful.
Old 04-05-2010, 12:48 PM   #3
BrandonJ
Member
 
Registered: Mar 2010
Posts: 33

Original Poster
Rep: Reputation: 16
Re: Thanks

Thanks, now to complete a long chapter 6.
 
  


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
Confusion on LFS book version 6.4 Chapter 5.6.1 with LiveCD on x86 Memory_the_Hedgehog Linux From Scratch 4 02-16-2009 10:08 PM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 07:30 AM
LFS-book vs LiveCD-hints Chapter 6.2 confusion AkBrian Linux From Scratch 2 03-04-2007 10:03 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM
LFS 6.0 Book question. microsoft/linux Linux From Scratch 9 07-09-2005 06:35 PM


All times are GMT -5. The time now is 12:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration