LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 07-05-2010, 03:09 AM   #1
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: slackware 13.1, Centos 5.5, Ubuntu 10.10
Posts: 173

Rep: Reputation: 29
Unable to create .bash_profile on slackware 13.1 as host


hi all,
I use slackwar13.1. I'm trying to bulid a distro by using LFS.
I get "cat: /home/lfs/.bash_profile: No such file or directory"
when I type the following lines in the console as usr lfs.
How do i overcome this. Or is there any alternative.
Please help.

lfs@darkstar:~$ cat ~/.bash_profile << "EOF"
> exec nv -i HOME=$HOME TERM=$TERM PSI='\u:\w\$ ' /bin/bash
> EOF
cat: /home/lfs/.bash_profile: No such file or directory
 
Old 07-05-2010, 04:17 AM   #2
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 581

Rep: Reputation: 114Reputation: 114
If the file doesn't exist, you can't "cat" it.
 
1 members found this post helpful.
Old 07-05-2010, 05:28 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

The command shown is not correct.

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


Mind the >

One other thing: I would suggest using the lfs liveCD instead of your current host. Not doing so will get you in trouble in the long run.

Hope this helps.
 
1 members found this post helpful.
Old 07-07-2010, 08:13 AM   #4
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: slackware 13.1, Centos 5.5, Ubuntu 10.10
Posts: 173

Original Poster
Rep: Reputation: 29
Smile [solved]

Thanx druuna and Zordark. It was a silly mistake. Thanx again.
 
  


Reply

Tags
lfs, slackware13


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware 13.0 ~/.bash_profile not running at login ash_zz_00 Linux - Newbie 9 03-09-2012 01:58 PM
i am unable to load mappingtable by using dmsetup and unable to create vitualdevice varunsharma35 Linux - Software 0 12-20-2008 08:52 AM
Slackware 12 loaded from CD, unable to create partition on PE2650 g0ppq Linux - Newbie 3 02-21-2008 07:51 AM
where is .bash_profile in slackware? doralsoral Linux - Software 3 02-20-2004 11:19 AM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM


All times are GMT -5. The time now is 02:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration