LinuxQuestions.org
Visit Jeremy's Blog.
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 05-18-2006, 03:38 PM   #1
Qwo
LQ Newbie
 
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25
Blog Entries: 3

Rep: Reputation: 0
adding code lines


# mkdir -v ../glibc-build
cd ../glibc-build

The above is what I am trying to do.
I get into the virtual console, i get the #
put in the first line. now what? how do i get the next line.? i have tried \ and \n and of course hitting enter only gives me another line starting with #
 
Old 05-18-2006, 03:40 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Just type "cd ../glibc-build" (without the quotes) and press Enter. What is it you're actually asking? .
 
Old 05-18-2006, 03:41 PM   #3
meng
Member
 
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127

Rep: Reputation: 15
The # is just part of the prompt letting you know you're root (user). I believe you should enter both lines as root.

Hello from a fellow former Brisbanite!
 
Old 05-20-2006, 01:25 AM   #4
Qwo
LQ Newbie
 
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25

Original Poster
Blog Entries: 3

Rep: Reputation: 0
Thanks for the Help, I dont think my question was very clear. I was trying to copy the code from the install page, the same as it appears on the page.
2.3 creating a file system on the partition
the first line is like this.
# mke2fs -v /dev/hda3
second line like this.
#mkswap -v /hda2
2.4 mounting the new partition
# export LFS/mnt/lfs

create mount point and mount LFS file system
# mkdir -pv $LFS
mount -v /dev/hda3 $LFS

The above two lines where what I was trying to do.
My first attempt was like this.
# mkdir -pv $LFS
# mount -v /dev/hda3 $LFS
This is wrong.
I then figured out this way.
# mkdir -pv $LFS \ mount -v /dev/hda3 $LFS
Then hit the Enter key.
it worked with 4 lines too, doing space \ space, data space \ Etc
doing this you end up with the first # signe and the rest go to following lines. if someone knows a better way please let me know.
 
Old 05-20-2006, 01:29 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by Qwo
create mount point and mount LFS file system
# mkdir -pv $LFS
mount -v /dev/hda3 $LFS

The above two lines where what I was trying to do.
My first attempt was like this.
# mkdir -pv $LFS
# mount -v /dev/hda3 $LFS
This is wrong.
That's not wrong, as long as you didn't actually type the # that is. As meng said, the # is just a prompt that lets you know that you're the root user. You're supposed to see it again after you enter a command and press Enter.
 
Old 05-21-2006, 12:07 AM   #6
Qwo
LQ Newbie
 
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25

Original Poster
Blog Entries: 3

Rep: Reputation: 0
Ok so this means I can have a # propmpt on every line I enter? and it will still work.I am using the LFS live cd. Another thing I cant find I am trying to find out how to get the packages off the live cd? section3.2
i cant find any info, i have been going through all the pages and cant find it, like is it like apt-get?
 
Old 05-21-2006, 12:18 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Yes, you're supposed to have the prompt at the beginning of every line you enter. Presumably, you can just copy the files from the CD with cp

# cp filename /destination/path

obviously replace "filename" and "/destination/path" with the file you wan't to copy and the location you want to copy it to. Debian's apt-get is for getting packages from the Internet, but since you have them on CD you don't need to use the Internet.
 
Old 05-21-2006, 01:19 AM   #8
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
No offense, but it sounds like you aren't very experienced with a terminal. Sure LFS is the right choice for you? If you want a learning experience then maybe Gentoo or Slackware would be a better choice.
 
Old 05-21-2006, 06:16 AM   #9
Qwo
LQ Newbie
 
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25

Original Poster
Blog Entries: 3

Rep: Reputation: 0
reply to cs-cam. no I am not experienced, if i was i would not need to ask these silly questions, unfortunately i have decided that i like the joy of doing it the hard way, I realise that if i knew someone i could ask and get the right answer. this project would be finished tomorrow.
But now its back to reading and trying to find the answer.
thanks Nylex I tried #cp autoconfig /hda2/ $LFS lol no it didnt work.I look at this like driving a car its easy when you know how?
 
Old 05-21-2006, 06:28 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Are you sure the file is simply called autoconfig? There may be a version number and extension as well. Also, you're missing the "/dev" in front of hda2, i.e. it should be "/dev/hda2/$LFS". Post error messages too, that usually helps.
 
Old 05-21-2006, 07:05 AM   #11
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Again, suggesting Gentoo. It's a distro you build pretty much from the ground up like LFS but it has the best documentation of anything I've seen.
 
Old 05-21-2006, 03:30 PM   #12
Qwo
LQ Newbie
 
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25

Original Poster
Blog Entries: 3

Rep: Reputation: 0
Thanks I will try both ways, and let you know how I go.
 
Old 05-21-2006, 03:58 PM   #13
Qwo
LQ Newbie
 
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25

Original Poster
Blog Entries: 3

Rep: Reputation: 0
First i am trying to figure out how to download packages off the live cd for LFS, the first package i see in the list is autoconf,
so i entered at the hash # prompt
cp autoconfig /dev/hda2/$lfs
the terminal replied with
# cp: accessing '/dev/hda2/mnt/lfs':not a directory
#
my main problem is that i cant find any info on getting the packages off the live CD help needed
 
Old 05-21-2006, 04:57 PM   #14
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Try typing ls to see the files contained in the current directory (or "ls /some/directory" without quotes to see files contained in another directory). Also, the place you want to copy to should just be /mnt/$LFS.. sorry, you don't copy to /dev/something.
 
Old 05-22-2006, 03:15 PM   #15
Qwo
LQ Newbie
 
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25

Original Poster
Blog Entries: 3

Rep: Reputation: 0
ok I asm defeated. I thought with a little help I would be able to figure it out and get it working, but when i say help. i mean i can copy code in but i cant figure it out, i realise now that every one who has posted advice is probably right, if only i knew what to do to execute the advice. unfortunately there are too many blank areas. so I will put this project on the shelf for the time being. and go back to windows.
its dissapointing.but I am learning and thats worth it. and i will try some other things, like Gentoo. I tried a few other distros, like Mepis,
Ubuntu,Knoppix,I think my main problem is I dont understand GNU-Linux.
 
  


Reply


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
Recursively count lines of code in source dir heirarchy michaelsanford Programming 8 04-01-2006 04:59 PM
adding text to lines in a file tpreitano Linux - General 2 10-04-2005 09:30 AM
Shell Script (adding a prefix to output lines) rheza Programming 3 01-04-2005 01:18 PM
How to count how many lines of code my project is? The_Nerd Programming 4 08-30-2004 08:26 PM
Add lines of code to files from command line robeb Linux - General 2 06-12-2002 03:54 AM

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

All times are GMT -5. The time now is 05:51 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