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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
so i must do this package first? this
No, not really. Those are initscripts for various programs that BLFS installs. Install them when you install the corresponding packages. There is no specific order that you need to follow. Each package has its own dependencies listed on its page. So you can get started with any package you wish.
Originally Posted by happyrobo
how about download the package?did i mount the lfs partition on ubuntu then insert the package, umount, and boot?
Why? You already have a working LFS install. Boot into it and install packages from there. Of course if you wish to ease your task and chroot from a graphical environment like Ubuntu, you may certainly do so.
Originally Posted by happyrobo
in ch 3 did i have to type it manually?
according to lfs i just copy paste the script
Sure you can do select-paste. In fact it's better if you do it that way. Reduced chance of making mistake.
I am going through the same process - using LFS and BLFS as a learning tool. With regard to what to do next, I picked as a target "install a working X-Windows system", that is the end of Chapter 23. Then I installed the dependcies of this in order, including WGET, DHCPCD and Lynx. To this end I used the final chroot environment set in the LFS build within my host system to install the majority of packages up to that point, frequently booting into the BLFS system to check it is going ok.
With this in mind, I have a partition which is shared between Ubuntu (my host) and BLFS. I use this to hold all source tarballs etc. I added the BLFS boot config to Ubuntu's /boot/grub/grub.cfg (be careful or you may get an unbootable system). Then I created a script for my user on Ubuntu to mount all the BLFS partitions and another to issue the chroot command.
From Ubuntu I frequently backup the entire /mnt/lfs structure by just doing a copy such as cp -r /mnt/lfs/* BKUP-20110614-1. I know I could do this using a tar or some other method but this makes it simple to restore by just reversing the copy and in my case disk space is available for this.
If (when) I need to restore I use a GPARTED LiveCD to format my LFS partitions, as formatting them in Ubuntu makes them unusable in BLFS as per the LFS book Chapter 2.3, then I just copy back the latest backup.
By keeping a log of all the packages I install I know what I have lost by restoring.
Now I have X-Windows running, with Lynx in one xterm and another for the console commands I no longer need to use Ubuntu so much.
# Set PRINTIP="yes" to have the script print
# the DHCP assigned IP address
# Set PRINTALL="yes" to print the DHCP assigned values for
# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
there is an error cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhclient: No such file or directory. then I list /etc/sysconfig/network-devices/ifconfig.eth0/ there are only dhcpcd and ipv4. I also already install dhcpcd-3.0.19. Any help for me?
I don't see anything wrong in the above dhclient creation part, tried to execute it myself and it works. Maybe something went wrong while you copy-pasted it?
You can always decide to create this file with your editor (vi?) instead of using the cat > /etc/... method.
You mention having an ipv4 file in /etc/sysconfig/network-devices/ifconfig.eth0/, if you are going to use dhcp on that interface, remove it 'cause this file (ipv4) is for a static network configuration.
BTW: Do you actually need a dhcp daemon? Most people only need the dhcp client. Quote from the BLFS book:
Note that if you only want to use the client, you do not need to run the server and so do not need the startup script and links provided for the server daemon. You only need to run the DHCP server if you're providing this service to a network, and it's likely that you'll know if that's the case; if it isn't, don't run the server! Once you have installed the package, return here for information on how to configure the client (dhclient).
I'm guessing that the dhcp daemon isn't needed in your case.
Hope this helps.
Last edited by druuna; 06-17-2011 at 11:11 AM.
Reason: Ficksed baaaad speeling..... :)