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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
06-13-2011, 05:25 AM
|
#1
|
|
Member
Registered: Jun 2011
Location: Indonesia
Posts: 37
Rep: 
|
help me blfs
I just recently install LFS, then I confused how to start blfs. how to insert package etc
please someone help me
|
|
|
|
06-13-2011, 05:33 AM
|
#2
|
|
Senior Member
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,626
|
Well, have you read through the introduction to BLFS? It's essentially the same as LFS - you download a package, compile it, install it...
Perhaps if you were more specific about your problem, we would be able to help you more 
|
|
|
1 members found this post helpful.
|
06-13-2011, 05:43 AM
|
#3
|
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,575
|
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
|
|
|
1 members found this post helpful.
|
06-13-2011, 05:50 PM
|
#4
|
|
Member
Registered: Jun 2011
Location: Indonesia
Posts: 37
Original Poster
Rep: 
|
hi all, thanks for reply my thread
@mr Snark1994
so i must do this package first? this
how about download the package?did i mount the lfs partition on ubuntu then insert the package, umount, and boot?
@mr spiky0011
in ch 3 did i have to type it manually?
according to lfs i just copy paste the script
#i'm sorry for my bad english
|
|
|
|
06-13-2011, 11:53 PM
|
#5
|
|
Member
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 484
Rep:
|
Quote:
Originally Posted by happyrobo
@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.
|
|
|
|
06-14-2011, 01:25 AM
|
#6
|
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,575
|
Just a pointer use the online book http://www.linuxfromscratch.org/blfs...svn/index.html It,s kept upto date and everyone uses it, so if you get problems everyone can refer to the same book.
|
|
|
|
06-14-2011, 06:07 AM
|
#7
|
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
Quote:
Originally Posted by spiky0011
|
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.
|
|
|
1 members found this post helpful.
|
06-14-2011, 07:21 AM
|
#8
|
|
Senior Member
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,626
|
Quote:
Originally Posted by Andrew Benton
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.
|
|
|
|
06-14-2011, 03:18 PM
|
#9
|
|
LQ Newbie
Registered: Jun 2011
Distribution: LFS svn BLFS svn
Posts: 16
Rep: 
|
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.
My next target is to get Firefox installed.
|
|
|
|
06-14-2011, 06:11 PM
|
#10
|
|
Member
Registered: Jun 2011
Location: Indonesia
Posts: 37
Original Poster
Rep: 
|
another question gentleman
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
then how to get dhcp ip to connect the internet?
Last edited by happyrobo; 06-14-2011 at 06:16 PM.
|
|
|
|
06-15-2011, 02:49 AM
|
#11
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,868
|
Hi,
Quote:
Originally Posted by happyrobo
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).
Hope this helps.
|
|
|
|
06-16-2011, 06:14 PM
|
#12
|
|
Member
Registered: Jun 2011
Location: Indonesia
Posts: 37
Original Poster
Rep: 
|
Quote:
Originally Posted by druuna
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
install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &&
cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhclient << "EOF"
ONBOOT="yes"
SERVICE="dhclient"
DHCP_START="-q <add additional start parameters here>"
DHCP_STOP="-q -r <add additional stop parameters here>"
# 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?
|
|
|
|
06-17-2011, 02:02 AM
|
#13
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,868
|
Hi,
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 10:11 AM.
Reason: Ficksed baaaad speeling..... :)
|
|
|
|
06-17-2011, 08:36 AM
|
#14
|
|
Member
Registered: Jun 2011
Location: Indonesia
Posts: 37
Original Poster
Rep: 
|
Quote:
Originally Posted by druuna
Hope this helps.
|
absolutely help, now dhclient running fine
mr druuna, now i will continue blfs into X Window System Environment, i get another problem in this chapter Introduction to Xorg-7.6. in this script:
bash -e #exit on all errors
section=<proto>
version=7.6-1
mkdir $section
cd $section
what is <proto>?
then beside wget, what software that i need to install first?
|
|
|
|
06-17-2011, 08:54 AM
|
#15
|
|
Member
Registered: Jun 2011
Location: Indonesia
Posts: 37
Original Poster
Rep: 
|
another problem mr, in this script chapter Introduction to Xorg-7.6.
export XORG_PREFIX="<PREFIX>"
what is "<PREFIX>"?
thank you
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
I need BLFS !!!
|
nykey |
Linux From Scratch |
1 |
06-06-2006 07:05 PM |
|
BLFS packages
|
dsider |
Linux From Scratch |
2 |
10-15-2005 02:18 PM |
|
BLFS dhcpcd
|
fr0zen |
Linux From Scratch |
1 |
11-26-2003 06:02 PM |
|
Lfs --> Blfs
|
KptnKrill |
Linux From Scratch |
3 |
10-11-2003 11:19 AM |
|
On to BLFS
|
itsjustme |
Linux From Scratch |
7 |
09-01-2003 04:20 AM |
All times are GMT -5. The time now is 01:51 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|