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.
|
 |
11-29-2004, 03:51 PM
|
#1
|
Member
Registered: Dec 2003
Location: Newnan, GA
Distribution: Archlinux
Posts: 77
Rep:
|
enviroment variables
I hope this is the correct place to ask this, while fooling around with LFS I inadvertantly changed my enviroment, now I can nolonger get into my home dir or run X. Is tere a way to reset my enviroment variables? TKS in advance
|
|
|
11-29-2004, 03:56 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
How did you change them? If you just did it for your current session then just logout and back in again.
|
|
|
11-29-2004, 03:58 PM
|
#3
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
Moved: This thread is more suitable in Linux From Scratch and has been moved accordingly to help your thread/question get the exposure it deserves.
|
|
|
11-29-2004, 04:07 PM
|
#4
|
Member
Registered: Dec 2003
Location: Newnan, GA
Distribution: Archlinux
Posts: 77
Original Poster
Rep:
|
I used the cat command that is in the setup for LFS but I was not in that dir so now my Slack env is changed and I cant get into my home dir or run X.
|
|
|
11-29-2004, 04:11 PM
|
#5
|
Member
Registered: Dec 2003
Location: Newnan, GA
Distribution: Archlinux
Posts: 77
Original Poster
Rep:
|
Below are the commands I issued that set the env:
cat > ~/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF
t > ~/.bashrc << "EOF"
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL PATH
EOF
|
|
|
11-29-2004, 08:03 PM
|
#6
|
Member
Registered: Dec 2003
Location: Newnan, GA
Distribution: Archlinux
Posts: 77
Original Poster
Rep:
|
Doesn't look like moving this post to LFS forum is getting very much exposure!
|
|
|
11-30-2004, 01:00 PM
|
#7
|
LQ Newbie
Registered: Nov 2004
Location: the Netherlands
Distribution: gentoo/ubuntu
Posts: 11
Rep:
|
.bashrc
Normally your bash configured by the .bashrc file.
Probably your PATH is not correct to find the startx|xdm|whateverx program. Please send your .bashrc of your user (probably ~/.bashrc) and the output of "set" bash-builtin.
= Tom
|
|
|
01-19-2005, 03:15 PM
|
#8
|
LQ Newbie
Registered: Aug 2004
Location: Redford, MI
Distribution: lfs 6.0-testing-20040913/ blfs 5.1 modifyed
Posts: 10
Rep:
|
Quote:
Originally posted by cphase
Below are the commands I issued that set the env:
cat > ~/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF
t > ~/.bashrc << "EOF"
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL PATH
EOF
|
i know this is a little old but this is your problem change you .bashrc file to read
...
PATH=/tools/bin:$PATH
...
when you set path it resets the env var
and you should use another user than your main so you dont mess with the main user
Last edited by Mr.McCormick; 01-19-2005 at 03:17 PM.
|
|
|
All times are GMT -5. The time now is 07:39 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
|
|