LinuxQuestions.org
Review your favorite Linux distribution.
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 07-05-2010, 04:09 AM   #1
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

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, 05:17 AM   #2
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
If the file doesn't exist, you can't "cat" it.
 
1 members found this post helpful.
Old 07-05-2010, 06:28 AM   #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,

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, 09:13 AM   #4
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

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



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 02:58 PM
i am unable to load mappingtable by using dmsetup and unable to create vitualdevice varunsharma35 Linux - Software 0 12-20-2008 09:52 AM
Slackware 12 loaded from CD, unable to create partition on PE2650 g0ppq Linux - Newbie 3 02-21-2008 08:51 AM
where is .bash_profile in slackware? doralsoral Linux - Software 3 02-20-2004 12:19 PM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 02:24 PM

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

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