On Sun, 30 Mar 2003 11:18:56 +0800 Cameron Patrick <cameron@patrick.wattle.id.au>
wrote:
> On Sat, Mar 29, 2003 at 11:09:33PM +0200, Pavlos Parissis wrote:
> | Hello all,
> | I am having two strange problem here.
> | I am using KDE 3.1 on Debian 3.0.r1 and Windowmaker 0.80.0-4.1.
> |
> | 1-> I have to .bash_profile these paths PATH=/sbin:/usr/sbin:${PATH}
> | and when I login to console I have my paths but when I use KDE and run env
> | from xterm,konsole i get only the default paths from /etc/profile
> |
> | pparisis@:~$ env|grep PATH
> | PATH=/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
> |
> | Any ideas why is this happening?
>
> Does xterm -ls or konsole --ls fix the problem? If so, your
> xterm/konsole isn't set up as a login shell. The simplest way to fix
Yes the -ls flag correct the problem.
> this is to create a ~/.bashrc that looks like so:
>
> . ~/.bash_profile
>
When I added this in my .bashrc and tried to start a xterm or konsole I get the
bash process to
use my CPU in 10% and my MEM at 80% usage!!!!!!!!!
12:17:11 up 24 min, 4 users, load average: 1.56, 0.96, 0.97
68 processes: 62 sleeping, 6 running, 0 zombie, 0 stopped
CPU states: 64.0% user, 36.0% system, 0.0% nice, 0.0% idle
Mem: 514872K total, 510184K used, 4688K free, 26892K buffers
Swap: 506008K total, 23632K used, 482376K free, 29424K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
1275 pparisis 10 0 399M 399M 399M S 9.5 79.5 0:35 bash
3788 pparisis 17 0 399M 399M 399M R 2.3 79.5 0:00 bash
> Or alternatively, symlinking .bashrc to .bash_profile might work. This
> will make login shells and non-login shells behave exactly the same.
>
> You can also screw around with xrdb in order to convince xterm to run as
> a login shell by default; and I'd imagine that there's a similar option
> buried inside konsole's preferences too.
I did n't find any options about this.
So I will stick with -ls.
But I am wondering why my xterm and konsole are not setup as login shell by
default.
Thanks
>
> Cheers,
>
> Cameron.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I love having the feeling of being in control
while i have the sensation of speed
The surfer of life
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GnuPG Key: FB1E6AE7
Fingerprint A9AE EA0C EE1F FBD0 5B6F 3F77 2782 EFE2 FB1E 6AE7
Get my key here: http://users.hol.gr/~p_pavlos/pubpgpkey.txt
Attachment:
pgpWAZWYuTHUy.pgp
Description: PGP signature