LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2002, 09:54 AM   #1
Krappy
LQ Newbie
 
Registered: Oct 2002
Location: Australia
Distribution: Debian (how much I love apt-get install...)
Posts: 14

Rep: Reputation: 0
Question KDE Konsole


I've got this weird thing with KDE:

I have Slackware 8.1 with KDE 3.x
The /etc/profile file is setup (as I understand) to give me a shell prompt of the format: user@host: path$ (e.g. root@themis:/local$ )
So far, if i'm logged into the normal console, it works fine, but inside KDE, when I start the Konsole, all it gives me is a plain promt "bash-2.05a$". This is annoying.
Could anyone gives me a pointer how to get my promt inside KDE?

Also, in the normal text console, when I do a "ls", file names are shown with different pretty colors, but not inside KDE. Why is that?

I've wasted nearly a day swating this to no avail, if anyone can help, it'd be very much appreciated.

-- Krappy --
 
Old 10-14-2002, 11:31 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
As for the colors, I don't know if it's different using Konsole, but try:
ls -l --color

And as for your prompt:
source /etc/profile

will make that work for you

Cool
 
Old 10-14-2002, 06:42 PM   #3
Krappy
LQ Newbie
 
Registered: Oct 2002
Location: Australia
Distribution: Debian (how much I love apt-get install...)
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks, it works, I just did sourse /etc/profile and both the prompt and colors come back.

Is there anyway to do this automatically? I've tried copying /etc/profile to ~/profile, .profile, .bash_profile ... the whole lot that I can think of, but still doesn't work.

Would anyone give me a brief explanation why /etc/profile doesnot work for the KDE konsole?

Thanks in advance,
-- Krappy --
 
Old 10-14-2002, 06:45 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
What do you mean? I thought you said it does work now???

To make it source itself, I'd guess you'd put it in your startup scripts Maybe try putting it in /etc/rc.d/rc.local

Just add the entry:
source /etc/profile

See if that does the trick for ya. I don't always want the colors or the long location prompt, and am very happy that I don't have it there by default.

Good Luck, and if anybody wants to rip me apart and tell this poor guy how to do this the right way, feel free

Cool
 
Old 10-14-2002, 07:37 PM   #5
Krappy
LQ Newbie
 
Registered: Oct 2002
Location: Australia
Distribution: Debian (how much I love apt-get install...)
Posts: 14

Original Poster
Rep: Reputation: 0
I've got it :-)

I've found a way to do it. All I need is to change to button setting for Konsole to make it execute "konsole --ls" instead of just "konsole".
The --ls will tell it to open a login shell, which will automatically reads the profile. It works perfectly.
Thanks anyway Master :-)


-- Krappy --
 
Old 10-14-2002, 09:41 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
No problem

I am glad you found what you are looking for, and an easy way to do it.

Cool
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE/Konsole Casket Linux - Newbie 3 10-08-2005 11:24 PM
KDE- Konsole Fonts Anmol Debian 3 08-07-2005 01:15 AM
no fonts in KDE konsole chess Slackware 1 05-23-2005 07:21 PM
KDE 3.2 Konsole Terminal jam222 Linux - Newbie 5 02-26-2004 04:52 PM
Is konsole different under KDE 3.1 Baran Linux - Newbie 5 10-06-2003 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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