LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is konsole different under KDE 3.1 (https://www.linuxquestions.org/questions/linux-newbie-8/is-konsole-different-under-kde-3-1-a-97061/)

Baran 09-26-2003 04:09 AM

Is konsole different under KDE 3.1
 
I guess I have a problem with my KDE 3.1, when I open a console under KDE and write

ldconfig

for instance it gives an error, (this is same for other commands under /sbin)

file or command not found

however it works well if I do

/sbin/ldconfig

but isn't /sbin in the path? if I am not using KDE, I can call

ldconfig

directly. I guess I must add /sbin to a configuration file of KDE3.1. Am I right? If I am how should I correct this?

thank you for your help...

UltimaGuy 09-26-2003 06:04 AM

I have never heard this before. Maybe you are logging in as a different user and switching over to root using su?

If that is the case you have to use su - <Enter> in order for root's environment to be imported. Then you can just type ldconfig and it will work.

Am I correct?

JZL240I-U 09-26-2003 06:43 AM

You can test that by typing
Code:

echo $PATH
and look for /sbin.

Please remember that commands are case sensitive ...

Baran 10-02-2003 07:18 AM

I wrote

echo $PATH

and I couldn't see /sbin there, it seems that it is missing

how can I add /sbin to the PATH?

JZL240I-U 10-02-2003 07:26 AM

Type
Code:

export PATH=$PATH:/sbin
and test whether it works.

To make it permanent, edit the original PATH declaration. For individual users it is set in ~/.bash but there is also a global .bash, I just don't remember where it lies ... (locate .bash ;))

Baran 10-06-2003 04:40 PM

Thanks JZL240I-U, I guess you solved the problem :) I made the PATH permanent by adding the line to .bash_profile file which is located in my home directory. Now everything is fine.
Thanks again..


All times are GMT -5. The time now is 03:59 PM.