LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-29-2008, 12:16 AM   #1
saritha
Member
 
Registered: May 2007
Posts: 117

Rep: Reputation: 15
bash in lfs


i had made a logical partition using LVM,in that partition i had installed fc7 in one partition,another partition i had left for Linux from scratch.so start working for linux from scratch using the steps mentioned in this site
http://www.linuxfromscratch.org/lfs/view/stable/

when i am setting environment
previous my shell was root@localhost,

after when i used this command ,it has changed to bash

cat > ~/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF

cat > ~/.bashrc << "EOF"
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL PATH
EOF

source ~/.bash_profile

after this command my prompt has changed from root@localhost to bash3.2

so how can i change to my root
can any one suggest me what to do
 
Old 01-29-2008, 06:19 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Just keep going. That's normal because you haven't created a fancy PS1 variable yet. Don't go mucking around and deviate from the book.
 
Old 01-30-2008, 01:04 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
when i am setting environment
previous my shell was root@localhost,
Looks like you are doing this as user root, which is incorrect. At the end of chapter 4.3 you login as lfs user and the next step (chapter 4.4) is creating the environment.

The above has nothing to do with the prompt (PS1) issue (weibullguy answered that one).
But you have to do chapter 4.4 and most of chapter 5 (up to and including 5.30) as lfs, _not_ as root!
 
  


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
LFS 6.2 Ch. 6.14 - 2nd Coreutils test returns "/bin.bash: No such file or directory" 0graham0 Linux From Scratch 2 08-23-2007 07:32 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM
lfs-6.1 Bash-3.0 [make test]log:could be error to continue?? ukyo Linux From Scratch 2 08-25-2005 08:35 AM
LFS bash not compiling ksnash Programming 2 08-22-2003 04:22 AM
sticking export $LFS in bash file glock19 Linux From Scratch 7 01-29-2002 07:58 PM

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

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