LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-21-2006, 04:18 PM   #1
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
screen(1) not sourcing ~/.bash_profile


Well, as the thread title suggests, it seems that on my system [Ubuntu Linux 6.06] screen(1) is not sourcing ~/.bash_profile. Any ideas on how I can change this?
 
Old 07-21-2006, 05:34 PM   #2
jayemef
Member
 
Registered: Aug 2005
Location: Juniata College, PA
Distribution: Ubuntu, Slackware
Posts: 67

Rep: Reputation: 15
Try
Code:
$ ln -s ~/.bash_profile ~/.profile
 
Old 07-21-2006, 06:21 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
.bash_profile is only read on login shells and screen launches 'ordinary' (non-login) shells.
 
Old 07-22-2006, 05:02 AM   #4
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Original Poster
Rep: Reputation: 31
The .profile "fix" didn't work. I figured it out and fixed it in the following way:

Code:
echo "shell -bash" >> /etc/screenrc
 
1 members found this post helpful.
Old 08-31-2006, 04:18 AM   #5
FogSwimmer
Member
 
Registered: Sep 2003
Distribution: Kubuntu / debian / SuSE
Posts: 73

Rep: Reputation: 15
The issue of setting environment variables in ubuntu is also discussed in detail at
http://www.ubuntuforums.org/showthread.php?t=2793

f
 
Old 08-31-2006, 04:25 AM   #6
BiThian
Member
 
Registered: Aug 2006
Location: Romania
Distribution: NetBSD 3.1
Posts: 118

Rep: Reputation: 15
Quote:
Originally Posted by introuble
Well, as the thread title suggests, it seems that on my system [Ubuntu Linux 6.06] screen(1) is not sourcing ~/.bash_profile. Any ideas on how I can change this?
If you had read the man page, you would have known that user's configuration file is called .screenrc. Once again, man rulz
LE: Sorry for my bad English
 
Old 09-01-2006, 12:19 AM   #7
FogSwimmer
Member
 
Registered: Sep 2003
Distribution: Kubuntu / debian / SuSE
Posts: 73

Rep: Reputation: 15
Quote:
Originally Posted by BiThian
LE: Sorry for my bad English
OT:
Hi BiThian,

I don't think your English is bad at all. Even if it were I wouldn't see a need to apologize -- you (presumably) made an effort to learn English as a foreign language as did scores of others on this forum and everywhere else. That certainly isn't something to be ashamed of. That's my opinion at least (as another non-native speaker).

f

Last edited by FogSwimmer; 09-01-2006 at 12:23 AM.
 
Old 05-01-2012, 09:05 PM   #8
brick
LQ Newbie
 
Registered: Sep 2005
Location: China Guangdong
Distribution: FC4,RedHat 9,
Posts: 2

Rep: Reputation: 0
edit .screenrc and then add
shell -$SHELL
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sourcing Linux, and basic installation and usage ... Kalenen Linux - Newbie 3 12-10-2005 06:04 PM
bash login sourcing .alias ned737 SUSE / openSUSE 2 11-17-2005 02:03 AM
Sourcing .bashrc shifty_eyes Linux - Newbie 3 09-25-2005 09:43 PM
sourcing a python config file? shanenin Programming 8 08-10-2005 02:19 PM
.bashrc error upon sourcing psiakr3w Linux - General 2 08-07-2004 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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