LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-31-2007, 06:55 PM   #1
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
lfslivecd path to the book


hello
I am wondering where is the book located in the lfslivecd?
i am at the stage 5.7 where I must adjust the toolchain. and the command

Code:
SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs &&
gcc -dumpspecs > $SPECFILE &&
sed 's@^/lib/ld-linux.so.2@/tools&@g' $SPECFILE > tempspecfile &&
mv -vf tempspecfile $SPECFILE &&
unset SPECFILE
is really causing me trouble. the book says I have to copy and paste. I am reading the book on my laptop running debian, I am building the lfs in another computer with the live cd as host. i do not know how to copy/paste the commands I always get errors in the sed part. the last one says : unterminated 's' command.

if i get the book on the cd, maybe i can figure out how to copy and paste the command. or how could I enable ssh so i can copy from the laptop to the computer where I am bulding.

thank you
Mario
 
Old 08-01-2007, 10:45 AM   #2
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
The best way to execute a command is to know what it really does.
Then you can manipulate the command in a couple of ways.

The documentation is somewhere in the /usr directory if i'm right.
At startup you see a notice that tells you how to get some help with the lfs-live-cd.
That points out the location of the lfs-book.

Now I think of it try this:
At the commandline type startx
You now get a graphical interface.
In this interface rght-click and start fireweasel/firefox
This has the e-book as its startpage.

Last edited by hoes; 08-13-2007 at 11:16 AM.
 
Old 08-01-2007, 11:58 AM   #3
Trickie
Member
 
Registered: Sep 2004
Posts: 38

Rep: Reputation: 23
You can always adjust the specfile by hand. All that sed is doing, I think, is adding /tools to the path /lib/ld-linux.so.2 to give /tools/lib/ld-linux.so.2 each time it appears in the specfile. I think that it only appears once or twice in the file.

Richard
 
Old 08-01-2007, 12:44 PM   #4
lukeiamyourfather
Member
 
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30

Rep: Reputation: 15
just type "greeting" at the terminal on the LiveCD and it should tell you where the book is.
 
Old 08-04-2007, 09:11 PM   #5
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Original Poster
Rep: Reputation: 31
thank you i followed your suggestions, I am in chapter 6 now. i really don't understand however, what is a specfile.
another question I have is.
I want to have a perfect system; for this I want to have English language (us or uk) no problem but I want to have the belgian keyboard layout because I am used to that keyboard and I live in Belgium and I can't stand to have man pages in french or other operating system components in french because they translate like pigs.
 
Old 08-13-2007, 11:15 AM   #6
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
It should be possible to get what you want: having a Belgian keyboard and english language. As far as I know those two things are not connected to each other. The keyboard is handled by the kbd package. The language of the man-page is controlled by the locale. Google both things, I reckon this will certainly show you what files to adjust. I think you should really get some more experience first. If you just type everything as mentioned in LFS you will end up with a neat system, but don't know what to do with it.
And a specfile is a file that tells gcc what options and commands to use to build a program. For example, it determines which libraries to use, which was supposed to be changed with the sed-command.
 
  


Reply



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
LXer: Book Review: The Official Ubuntu Book LXer Syndicated Linux News 0 08-30-2006 04:54 PM
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 07:45 AM
script to change unix path to windows path in all files csross Programming 8 04-29-2006 01:05 PM
Slackware book purchase vs. URL: http://www.slackware.org/book/ jtp51 Slackware 5 11-28-2004 04:30 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration