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 |
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-14-2002, 09:54 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2002
Location: Australia
Distribution: Debian (how much I love apt-get install...)
Posts: 14
Rep:
|
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 --
|
|
|
|
10-14-2002, 11:31 AM
|
#2
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
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
|
|
|
|
10-14-2002, 06:42 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2002
Location: Australia
Distribution: Debian (how much I love apt-get install...)
Posts: 14
Original Poster
Rep:
|
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 --
|
|
|
|
10-14-2002, 06:45 PM
|
#4
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
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
|
|
|
|
10-14-2002, 07:37 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2002
Location: Australia
Distribution: Debian (how much I love apt-get install...)
Posts: 14
Original Poster
Rep:
|
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 --
|
|
|
|
10-14-2002, 09:41 PM
|
#6
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
No problem
I am glad you found what you are looking for, and an easy way to do it.
Cool
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:31 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
|
|