Linux From ScratchThis 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.
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.
This is my first post here. I call my self a newby and i am very interested in linux. Before i have installed succesfully Gentoo, which was a nice thing to do and i learned a lot from it. Now there is the next step; installing LFS. By the way: my english is not so good.
My host system is Ubuntu 9.04.
I'am setting up the environment (chapter 4.4, LFS_Book) and got a problem with cat > ~/.bash_profile << "EOF"
After typing that command I get no output in the shell. I wonder if it is a problem with the .bash_profile or with the cat command.
There's no problem whatsoever with neither the cat command nor with the .bash_profile file. The command you issue at the console just adds the following line that holds exec to the .bash_profile file. It's a faster way then editing .bash_profile with an editor like vi, nano or others.
The command cat in this use doesn't produce any output. To check if everything went well just do
Code:
cat .bash_profile
when in the home directory of user lfs and it will show you the line as needed
It looks like the beginning of a standard here document to me. There should be another corresponding "EOF" line later down that ends the block of text to be copied to the file.
Are you sure you're in the home directory of the lfs user when executing the command? You can also try:
Code:
cat /home/lfs/.bash_profile
.
If the command from the LFS book was executed correctly then you should have the output as mentioned.
Check also if the file mentioned above exists
Code:
ls -al /home/lfs
.
Since you didn't put the complete command in your original post it might also be that you didn't execute the complete command. In order to try it again if the .bash_profile doesn't exist under /home/lfs, copy the entire command from my second post (the three lines) and paste them when in the /home/lfs directory.
You said I have to execute three lines of code, but I thought that the second line typography means that it is screenoutput ( in this case exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash) Am I wrong??
With the command used as above you tell the system to redirect the output of cat with the > to a file called .bash_profile in the home directory of the currently logged in user (the one executing the command). Furthermore you're telling cat with << to use input from the console to cat to the file. Using the "EOF" you're also stating to use everything from the console as input until EOF is encountered on a new line.
I hope this makes sense. In short: where you logged in as the lfs user when performing the command? If so, then
.
If this is not the fact then you have to repeat the steps:
1. log in as lfs user
2. copy the three lines as indicated in the book
3. paste the three lines in a console window logged in as lfs users
4. check the .bash_profile.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.