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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
05-18-2006, 03:38 PM
|
#1
|
LQ Newbie
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25
Rep:
|
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 #
|
|
|
05-18-2006, 03:40 PM
|
#2
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
Just type "cd ../glibc-build" (without the quotes) and press Enter. What is it you're actually asking?  .
|
|
|
05-18-2006, 03:41 PM
|
#3
|
Member
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127
Rep:
|
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!
|
|
|
05-20-2006, 01:25 AM
|
#4
|
LQ Newbie
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25
Original Poster
Rep:
|
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.
|
|
|
05-20-2006, 01:29 AM
|
#5
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
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.
|
|
|
05-21-2006, 12:07 AM
|
#6
|
LQ Newbie
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25
Original Poster
Rep:
|
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?
|
|
|
05-21-2006, 12:18 AM
|
#7
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
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.
|
|
|
05-21-2006, 01:19 AM
|
#8
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
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.
|
|
|
05-21-2006, 06:16 AM
|
#9
|
LQ Newbie
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25
Original Poster
Rep:
|
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?
|
|
|
05-21-2006, 06:28 AM
|
#10
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
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.
|
|
|
05-21-2006, 07:05 AM
|
#11
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
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.
|
|
|
05-21-2006, 03:30 PM
|
#12
|
LQ Newbie
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25
Original Poster
Rep:
|
Thanks I will try both ways, and let you know how I go.
|
|
|
05-21-2006, 03:58 PM
|
#13
|
LQ Newbie
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25
Original Poster
Rep:
|
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
|
|
|
05-21-2006, 04:57 PM
|
#14
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
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.
|
|
|
05-22-2006, 03:15 PM
|
#15
|
LQ Newbie
Registered: Mar 2006
Location: Brisbane, Australia
Distribution: Undecided,
Posts: 25
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|