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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
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
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
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
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
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
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
No problem
I am glad you found what you are looking for, and an easy way to do it.
Cool
|
|
|
All times are GMT -5. The time now is 04:41 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
|
|