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.
Hi as mentioned read the book 1St You will need to do Up to chapter 3 but then after that you decide what you want and the dependencies required for that package
@mr Snark1994
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.
Quote:
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.
Quote:
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.
You must live in a different universe to me. In my world BLFS still has Gnome-2.30, Audacious-1.5.1, Firefox-3.6, Pidgin-2.1.0 etc.
I presume he's referring not to the programmes themselves, but to the instructions being kept up-to-date with bugs found in them...
@OP, as corbis_demon said, the way I would do it is to use the LFS install you've already created, but you could do it from Ubuntu in the same way as you did for LFS.
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.
i already install lynx and gpm but i dont know how to use gpm. when i do shutdown there is a warning gpm is not running
Did you configure the mouse and install the boot scripts (/etc/rc.d/init.d/gpm)? Try starting the mouse manually:
Code:
/etc/rc.d/init.d/gpm start
Also check to see if the MDEVICE you set is correct (for example, if MDEVICE is set to "/dev/input/mice", does /dev/input/mice exist).
Quote:
then how to get dhcp ip to connect the internet?
DHCP is out of scope for building LFS, if you need DHCP you need to look at BLFS DHCP-3.0.6 Client Configuration (assuming you only need client side dhcp).
DHCP is out of scope for building LFS, if you need DHCP you need to look at BLFS DHCP-3.0.6 Client Configuration (assuming you only need client side dhcp).
Hope this helps.
Hi mr druuna now i have mouse on my lfs, thank you so much
but i got anther problem when configuring DHCP-3.0.6 Client Configuration. when I insert this script
# Set PRINTIP="yes" to have the script print
# the DHCP assigned IP address
PRINTIP="no"
# Set PRINTALL="yes" to print the DHCP assigned values for
# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
PRINTALL="no"
EOF
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:
Quote:
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..... :)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.