LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-13-2011, 06:25 AM   #1
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Rep: Reputation: Disabled
help me blfs


I just recently install LFS, then I confused how to start blfs. how to insert package etc

please someone help me
 
Old 06-13-2011, 06:33 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
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.
Old 06-13-2011, 06:43 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
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.
Old 06-13-2011, 06:50 PM   #4
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-14-2011, 12:53 AM   #5
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Rep: Reputation: 35
Quote:
Originally Posted by happyrobo View Post
@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 View Post
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 View Post
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.
 
Old 06-14-2011, 02:25 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
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.
 
Old 06-14-2011, 07:07 AM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally Posted by spiky0011 View Post
Just a pointer use the online book http://www.linuxfromscratch.org/blfs...svn/index.html It,s kept upto date
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.
Old 06-14-2011, 08:21 AM   #8
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Quote:
Originally Posted by Andrew Benton View Post
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.
 
Old 06-14-2011, 04:18 PM   #9
AndrewJM
LQ Newbie
 
Registered: Jun 2011
Distribution: LFS svn BLFS svn
Posts: 16

Rep: Reputation: Disabled
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.
 
Old 06-14-2011, 07:11 PM   #10
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
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 07:16 PM.
 
Old 06-15-2011, 03:49 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,
Quote:
Originally Posted by happyrobo View Post
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.
 
Old 06-16-2011, 07:14 PM   #12
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
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?
 
Old 06-17-2011, 03:02 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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 11:11 AM. Reason: Ficksed baaaad speeling..... :)
 
Old 06-17-2011, 09:36 AM   #14
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
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?
 
Old 06-17-2011, 09:54 AM   #15
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
another problem mr, in this script chapter Introduction to Xorg-7.6.

export XORG_PREFIX="<PREFIX>"

what is "<PREFIX>"?

thank you
 
  


Reply

Tags
blfs, lfs


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
I need BLFS !!! nykey Linux From Scratch 1 06-06-2006 08:05 PM
BLFS packages dsider Linux From Scratch 2 10-15-2005 03:18 PM
BLFS dhcpcd fr0zen Linux From Scratch 1 11-26-2003 07:02 PM
Lfs --> Blfs KptnKrill Linux From Scratch 3 10-11-2003 12:19 PM
On to BLFS itsjustme Linux From Scratch 7 09-01-2003 05:20 AM


All times are GMT -5. The time now is 05:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration