LinuxQuestions.org
Visit Jeremy's Blog.
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 08-14-2002, 03:50 AM   #1
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Command Syntax


I think I'm reading to try LFS, which I tried once before but gave up. Anyhow, when I did try, it was times that I followed the book instructions and some commands didn't work.

An example:

cd $LFS &&
mkdir -p bin boot dev/pts etc/opt home lib mnt proc root sbin tmp var opt &&
for dirname in $LFS/usr $LFS/usr/local
do
mkdir $dirname
cd $dirname
mkdir bin etc include lib sbin share src
ln -s share/man
ln -s share/doc
ln -s share/info
cd $dirname/share
mkdir dict doc info locale man nls misc terminfo zoneinfo
cd $dirname/share/man
mkdir man{1,2,3,4,5,6,7,8}
done &&
cd $LFS/var &&
mkdir -p lock log mail run spool tmp opt cache lib/misc local &&
cd $LFS/opt &&
mkdir bin doc include info lib man &&
cd $LFS/usr &&
ln -s ../var/tmp

I think the above commands was a problem for me. Now how do I type this? I'm sure its not all on one line, but I think some of them should be one line and some not!

Thnx.
 
Old 08-14-2002, 08:45 AM   #2
da Perp
Member
 
Registered: Oct 2001
Location: the Netherlands
Distribution: Bear Linux (LFS 3.3)
Posts: 171

Rep: Reputation: 30
maybe posting the problem and/or error messages you received will clarify things a bit...

im taking a guess here:

all of the commands listed are on their own line. type them in exactly as you see them(replacing the values with $īs in front of them (except for &dirname in the for loop) with their real values) and you should be set.

Last edited by da Perp; 08-14-2002 at 08:47 AM.
 
Old 08-14-2002, 09:51 PM   #3
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Original Poster
Rep: Reputation: 31
Thnx for the reply...I'll have to give it a try I start. And if I do run into errors, I'll post them. I won't start on this project till the weekend.
 
Old 08-15-2002, 08:02 AM   #4
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
everything preceding the error gets done, so it is nice to know where it went wrong. from that point, you can check the line that wasn't working by running only that line's worth of commands (without the && at the end) you probably just have a typo or something.
if you run out of space on the screen there should be a \ at the end and the next line will be read as part of the origonal line.
if nothing works, copy from book & past into a file. run source file
 
Old 08-15-2002, 12:36 PM   #5
TacKat
Member
 
Registered: Jan 2002
Distribution: LFS
Posts: 90

Rep: Reputation: 15
Type it just like you see it. When there's a newline, put a newline. BASH takes care of the rest. It's knows that something must follow && so if that's at the end of a line, it will prompt you for more. Likewise with the for loop.
 
  


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
cp command syntax plisken Linux - General 3 11-09-2005 02:51 PM
Command Syntax Ask swan2925 Linux - Software 1 06-06-2005 09:50 AM
command syntax Jeebizz Slackware 1 04-14-2005 10:55 PM
execlp command syntax help tonyfreeman Programming 5 09-07-2004 09:09 AM
need help with date command syntax bigcletus Linux - Newbie 1 08-02-2003 01:40 AM

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

All times are GMT -5. The time now is 07:34 AM.

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