LinuxQuestions.org
Help answer threads with 0 replies.
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 01-02-2007, 01:48 PM   #1
shahgols
Member
 
Registered: Dec 2006
Posts: 97

Rep: Reputation: 15
Newbie question


Hi everyone,

I just learned about LFS two days ago and am reading through the manual because I want to try LFS. In the last paragraph of section 2.3 of the manual, it says:

"After you have installed a package you can do two things with it. You can either delete the directory that contains the sources or you can keep it. If you decide to keep it, that's fine by me. But if you need the same package again in a later chapter (all software up to chapter 7.2 will be re-installed in chapter 7.3) you need to delete the directory first before using it again."

So when I finish step 7.2, can I just delete all the files/packages in the $LFS/usr/src/sources directory and re-copy the source packages to that directory again? Thanks.
 
Old 01-02-2007, 02:17 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
That's not referring to the whole /mnt/lfs/sources directory, just the directories created when each package is extracted.

For example, when you extract gzip-1.3.5.tar.gz you get a directory called /mnt/lfs/sources/gzip-1.3.5 which can be deleted after installing gzip. That way you still have gzip-1.3.5.tar.gz for use later on, but if you deleted the entire sources directory you'd need to download (or copy back) all of the .gz, .bz2 files as well as the patches).
 
Old 01-02-2007, 02:22 PM   #3
shahgols
Member
 
Registered: Dec 2006
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks, now I understand.

A side question...at the end of that same paragraph it says "Doing a simple make clean does not always guarantee a totally clean source tree. The configure script also has files lying around in various subdirectories which are rarely removed by the make clean process."

Is there a better way of cleaning after installing packages? Thanks.

Last edited by shahgols; 01-02-2007 at 02:25 PM.
 
Old 01-02-2007, 02:44 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Not really, I remove the source directory and then extract it from the .gz/.bz2 file again. The stuff left lying around after the first configure/make might affect things when you come back to the package later in the process. That's the main reason for the recommendation to delete the source directories in the LFS book.

Which version of LFS are you building at the moment? The wording that you're quoting is different to mine (LFS book 6.2 and LFS live CD 6.2.4).
 
Old 01-02-2007, 09:34 PM   #5
shahgols
Member
 
Registered: Dec 2006
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks Steve. I am reading the document below, I can't remember how I came across it. It may be outdated...I am going to try to find the latest book.

http://www.linuxjunkies.org/html/Lin...tch-HOWTO.html

Right now I am just going to read the document all the way through once. I have only been using Linux for less than 6 months now and I think that I would benefit from reading the whole document first, being a newbie and all. Once I feel comfortable/confident, I'll install LFS, it sounds like fun and educational and I just love to play around, figure things out, and specially try to make a fast, secure OS. LFS is a great idea.
 
Old 01-02-2007, 09:39 PM   #6
shahgols
Member
 
Registered: Dec 2006
Posts: 97

Original Poster
Rep: Reputation: 15
I just saw the date on the document that I am reading:

Version 2.2, April 3rd, 2000

WOW, that is old!! I found the new one, thanks for bringing that to my attention. It is much different than the one that I am reading and it seems to be written well. So far, very good.

Last edited by shahgols; 01-02-2007 at 09:41 PM.
 
Old 01-02-2007, 09:51 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You can get the book from http://www.linuxfromscratch.org/lfs/downloads/stable/ and if you'd rather boot from the LFS CD than build it based on your current distro, you can get that from http://www.linuxfromscratch.org/livecd/download.html.

Reading through the doc first is a good plan - it takes a while to build the system, but it's a lot of fun...

EDIT: Sorry about that - I started my reply before you posted that you'd got the new one - and then didn't check before clicking the submit button...

Last edited by gilead; 01-02-2007 at 10:01 PM.
 
Old 01-02-2007, 10:05 PM   #8
shahgols
Member
 
Registered: Dec 2006
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks Steve, I have a question though. I did download the Live CD this morning, although it's at work. Does it have a book/docuemnt in it that will parallel the stable book, and teach me how to install everything from scratch (using the Live CD)? If yes, I probably should be reading that instead of the stable book.
 
Old 01-02-2007, 10:17 PM   #9
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Yes it does, if you open another virtual console with <Alt><F2> for example, just type the following (lynx is a text based browser):
Code:
/usr/bin/lynx /usr/share/LFS-BOOK-6.2-HTML/index.html
 
Old 01-02-2007, 10:27 PM   #10
shahgols
Member
 
Registered: Dec 2006
Posts: 97

Original Poster
Rep: Reputation: 15
Excellent, I'll start reading that book then.

Just wondering though, am I going to be pulling my hair out when I start installing LFS? Or is the process fairly straight forward and well documented? Don't get me wrong, I like computer problems, but I just want to know what lies ahead. Tx.
 
Old 01-02-2007, 10:34 PM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Yes and no - but I don't have hair left anyways...

The process is very well documented, but mistakes can be made that aren't noticed until later. Check your typing and check that you don't miss any steps - it does work and it is worth finishing.

The strangest problem I've had so far was my perl makefiles getting a couple of lines with nothing but 0 (zero) on them and causing the compilation to fail. Turns out I'd messed up the creation of /dev/null. Fixing that and re-running cleared it up but finding the problem took a while
 
Old 01-02-2007, 10:49 PM   #12
shahgols
Member
 
Registered: Dec 2006
Posts: 97

Original Poster
Rep: Reputation: 15
It's good to know that it's all worth it...it's just as I thought. I am sure that I'll make a few mistakes along the way too, specially when I have to juggle my girl (not literally), work, studies, and playing around with LFS. Ahhh, life, but at least Linux is there to take some of the pain away.

Thanks a million Steve.
 
Old 01-03-2007, 05:10 AM   #13
threekgtvr4
LQ Newbie
 
Registered: Mar 2006
Posts: 13
Blog Entries: 4

Rep: Reputation: 0
One thing you might find of interest for helping your build along with the LFS live CD is this hint: http://www.linuxfromscratch.org/hint...rom-livecd.txt. I've found it VERY useful. You will have to watch it though as it was written for LFS 6.1, and there are some changes in LFS 6.2. I've had to write my own shell scripts to enter the "clean environment" and the "chroot environment". I'd be willing to email those scripts to you if you'd like, I plan on putting them on my site eventually. It's fairly straight foward though. If you are experienced with Linux and/or have good problem solving skills, it is rather simple to figure out what needs to change in the hint. I'm also using the More Control and Package Management Using Package Users hint in conjuction. And I've only been using Linux for about a month. I have been studying Linux for awhile now, so I have a little knowledge. So I'm a relative newbie. Just thought I'd throw in a little tip or two to hopefully help with your build. Good luck and enjoy the time consuming fun called LFS

Last edited by threekgtvr4; 01-03-2007 at 05:12 AM.
 
Old 01-03-2007, 10:41 AM   #14
shahgols
Member
 
Registered: Dec 2006
Posts: 97

Original Poster
Rep: Reputation: 15
Hi, and thank you for the offer. I may or many not be able to figure the changes out on my own, but I would not be a happy trooper if I didn't figure it out and ended up messing up something. I would appreciate it if you can send me the scripts. My email is forads1@yahoo.com. Would you kindly put "Linux scrips" in the subject line so that I won't miss it? Thank you.

EDIT: Thanks for the link as well, am reading it now.
 
Old 01-04-2007, 06:17 AM   #15
threekgtvr4
LQ Newbie
 
Registered: Mar 2006
Posts: 13
Blog Entries: 4

Rep: Reputation: 0
I sent it, but I'm having troubles with my email client. Let me know if you got them, if you didn't, I'll put them on my website and give a link to them. I plan on doing that in the future anyways...
 
  


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
Apache newbie question.. (very newbie question) tarballed Linux - Newbie 1 02-07-2003 08:41 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 12:53 PM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM
Security question {newbie question} Radio Linux - Security 3 05-17-2002 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:41 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