FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 06-02-2008, 05:13 PM
"Arvind Marathe"
 
Default problems with gnu screen within console (solved - or atleast culprit found)

On Sun, Jun 1, 2008 at 10:02 PM, Arvind Marathe <bahuroopi@gmail.com> wrote:
> On Sun, Jun 1, 2008 at 5:31 PM, Tony R Quilkey <trq@iinet.net.au> wrote:
>> Arvind Marathe wrote:
>>>
>>> On Sun, Jun 1, 2008 at 4:34 PM, Steve Lamb <grey@dmiyu.org> wrote:
>>>>
>>>> Arvind Marathe wrote:
>>>>>
>>>>> The user (i.e. myself) launching 'startx' has no problems with screen
>>>>> within xterm in icewm. But if i 'su' to root or any other user within
>>>>> xterm, and try to launch screen, all the errors appear.
>>>>
>>>> The PATH for the other user(s) and console is not being set.
>>>
>>> Where or how do i set it? And since i could do all these operations
>>> till about a month back, what could have unset these paths?
>>>
>>> Arvind
>>>
>>>
>>
>> I believe your $PATH variable is set within /etc/profile and can be further
>> customised within ~/.bashrc
>
> At console, echo $PATH gives
> ------------------------------------------------------------
> /opt/intel/cc/10.1.008/bin:/opt/intel/fc/10.1.008/bin:/usr/soft/crystallographic-packages/coot-0.27/bin:/usr/soft/crystallographic-packages/CNS/cns_solve_1.1//intel-i686-linux_g77/bin:/usr/soft/crystallographic-packages/CNS/cns_solve_1.1//intel-i686-linux_g77/utils:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/soft/crystallographic-packages/ccp4-5.99.1/etc:/usr/soft/crystallographic-packages/ccp4-5.99.1/bin:/usr/soft/crystallographic-packages/ccp4-5.99.1/ccp4i/bin:/usr/soft/inhouse_programs/nuparm:/usr/soft/inhouse_programs/nucgen:/usr/soft/inhouse_programs/nucrad:/usr/soft/inhouse_programs/curvefit:/usr/soft/inhouse_programs/helanal:/usr/soft/inhouse_programs/lsfit:/usr/soft/AMBER/amber9//exe:/home/arvind/bin
> ------------------------------------------------------------
>
> Most of them are what i have set, but
> /usr/local/bin:/usr/bin:/bin:/usr/games
> are exported from /etc/profile. Only when i launch screen, they are
> not being exported. So why are they getting unset on launching screen
> within console? And how do i reset them?
>
> And as i mentioned, this is a recent phenomenon. I don't think i have
> upgraded any package related to console or screen. Today i upgraded
> screen using apt-get to see if the behaviour changes, but it didn't.

OK - so i found what was causing the trouble. I use a package called
coot (for those interested, it is used to visualise x-ray
crystallography outputs). Since many users used the package on the
machine, i had put the following line in /etc/bash.bashrc

source /usr/soft/crystallographic-packages/coot-0.27/bin/coot.sh

The moment i commented out this line, the screen errors disappeared.
The file coot.sh merely sets paths to several executable files in the
directory /usr/soft/crystallographic-packages/coot-0.27. Why sourcing
that file should screw up gnu screen's behaviour and that too only
within console, i do not know. Now the only inconvenience is that i
have to specify the full path, when i need to use coot.

I am still puzzled because this line has been in my /etc/bash.bashrc
for a looong time. And this problem is very recent. So something else
is entangled here. But atleast now i know where to look.

Many thanks to all of you for your suggestions.

Arvind


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-02-2008, 07:43 PM
"Mumia W.."
 
Default problems with gnu screen within console (solved - or atleast culprit found)

On 06/02/2008 12:13 PM, Arvind Marathe wrote:
[...] Now the only inconvenience is that i
have to specify the full path, when i need to use coot.

[...]


No you don't. You can set the path in /etc/profile, or you can place a
symbolic link to the coot binary in /usr/local/bin.





--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 03:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org