Linux From ScratchThis 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.
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 don't mind answering questions, but if your linux knowledge is this basic (nearly none-existing??) installing LFS is going to be very, very difficult..... And you probably need a lot of help in the weeks to come
That said:
cp is used to copy files from one place to another. cp /path/to/files/* $LFS/sources/ will do the trick. I don't know where your packages are located, so substitute /path/to/files/ with the proper directory.
Yes, my knowledge to linux is nearly zero! I don't know if i chose the better way to start! As i said before, i use a live cd, so the files must be somewhere there, right? I hope I'll be able to find them. Anyway, thanx for your help, and, I think I'll hire a professional to my home, coz I'll fill a lot of pages with questions here!!! (joke)
Ok, here's the next problem (imagine! i have another problem in 5 minutes!) I search the live cd and it only contains a file named "ROOT" with the extension "EXT2". Do i have to unpack this whole file into the directory or what?
of course i boot from the live cd.
But, i opened the contents of it has a file "ROOT.EXT2" that is 485MB and a boot directody that holds the files to boot. Maybe "ROOT.EXT2" is all the packages and patches together? Then how can i copy them all? I wonder if live cd was a bad idea. if i decide to turn to mandriva for host system, will it work (Mandriva One 2007, not sure if all the packages and patches are installed)
The liveCD is the best host there is: It's made especially for being a host for building (C|H)LFS.
After booting there should be more then a boot directory and a root.ext2 file. Did you (have to) enter extra boot option during startup?
i see the contents with the windows explorer. i must boot from the cd to see the contents? how can i? the only extra option is to press F1 for more options.
PS: Sorry for not answering, i wasnt able to be on net, my dad wanted the modem...
In post 20 you tell me that you did boot from the cd, in post 22 you ask me how to do that? Did or didn't you boot from the cd? You do know how to boot from cd (insert cd in drive, restart/reboot computer)?
well, i opened the cd contents in windows, but when i duild the lfs i boot from cd.
anyway, i'm now in a good way. i haven't noticed at the beggining of the boot, that the location was mentioned (it was /lfs-sources) so i managed to install the packs and the patches. i installed binutils succesfully (about 3 minutes) and i ran the command rm -rf binutils-2.16.1, as u said me. now i'm compiling gcc, it's gonna take too much time!!
Anyway, I'm happy i finally made it!! let's see what the next problem will be. Can i ask you sth more? What will I be able to do when i'll complete the lfs? it will be like any other linux? Or do i have to build blfs as well?
LFS is 'just' a base linux system. After installing it you probably want to install certain parts of BLFS and/or packages that are not mentioned in BLFS. Which packages depend on what you want to do with your linux box.
Most people want a desktop environment, which includes X, a WM (KDE or Gnome is used a lot) and other (GUI based) programs (a browser, mailer etc etc).
Some will want a server environment, which needs other programs (X and all that goes with it isn't needed/wanted).
After you've created the folder in chapter 3.1 and changed the permissions using the commands in the book:
mkdir -v $LFS/sources
chmod -v a+wt $LFS/sources
you just need to type in (if my memory serves me right):
cp -v /blfs-sources/* $LFS/sources
to copy the sources from the CD to the folder you created on your LFS drive.
EDIT: Sorry, just realized I missed the whole second page of posts, was wondering why the posts were fast and furious for a while and then just stopped... :-/
Just now that I think of it ... At the end of LFS, you'll need to configure and build the kernel ... There are a huge amount of options, so if you have the possibility to gather informations on your hardware and what you use, maybe it's worth doing it ...
Indeed, LFS will bring you the base system (something you can boot and have a console), but if you use DHCP, you won't have networking ready (DHCP comes with BLFS), your mouse won't work as it does on LFS liveCD (GPM is part of BLFS), you won't be able to read correctly HTML files (lynx -> BLFS) and I don't even speak of eye candies in graphical environment (it took me 3 evenings to build a raw Xorg on my old PC)
Cluracan, u deserve especially thanx, coz i didn't know that i can copy all of the contents in the cd and till now i was doing it one by one package!!! Thanx.
Secondly, druuna, thanx for explaining me what lfs will be like when it is complete. so no gui at all, hu? anyway, if i ever finish it, I'll care about the graphical environment.
Thirdly, biniou, what is an Xorg? can you plz explain me how can i build it? thanx
and forthly, just another problem came up: I was compiling gcc package and, because it was gonna take a lil time, i thought i might do sth else. i left the computer to compile, and i went to eat sth. When I returned into my room the screen was off (like it had no signal from the computer) and when i tried to press any key the system wouldn't "wake up". When i also tried to press Num Lock, he green light on my keyboard didn't turn off and on (it was like the sysem crashed). What has happened? Can I avoid turning off the screen?
No, coz i dont know how to. This book is not so good written for newbies. What's the command i have to give to copy all this files? (Oh, god! I don't know what to do! If i start getting on your nerves plz tell me, I know i do alot of questions!)
It's written pretty well, but keep in mind this book assumes you know basic linux commands and basic knowledge on how/why things happen, I don't think it was ever intended for starters.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.