LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   help me blfs (http://www.linuxquestions.org/questions/linux-from-scratch-13/help-me-blfs-886020/)

happyrobo 06-13-2011 05:25 AM

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

please someone help me

Snark1994 06-13-2011 05:33 AM

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 :)

spiky0011 06-13-2011 05:43 AM

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

happyrobo 06-13-2011 05:50 PM

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

corbis_demon 06-13-2011 11:53 PM

Quote:

Originally Posted by happyrobo (Post 4384616)
@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 (Post 4384616)
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 (Post 4384616)
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.

spiky0011 06-14-2011 01:25 AM

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.

Andrew Benton 06-14-2011 06:07 AM

Quote:

Originally Posted by spiky0011 (Post 4384862)
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.

Snark1994 06-14-2011 07:21 AM

Quote:

Originally Posted by Andrew Benton (Post 4385065)
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.

AndrewJM 06-14-2011 03:18 PM

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.

happyrobo 06-14-2011 06:11 PM

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?

druuna 06-15-2011 02:49 AM

Hi,
Quote:

Originally Posted by happyrobo (Post 4385802)
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.

happyrobo 06-16-2011 06:14 PM

Quote:

Originally Posted by druuna (Post 4386087)
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?

druuna 06-17-2011 02:02 AM

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.

happyrobo 06-17-2011 08:36 AM

Quote:

Originally Posted by druuna (Post 4388242)
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?

happyrobo 06-17-2011 08:54 AM

another problem mr, in this script chapter Introduction to Xorg-7.6.

export XORG_PREFIX="<PREFIX>"

what is "<PREFIX>"?

thank you


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