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.
|
 |
02-27-2006, 07:42 AM
|
#1
|
LQ Newbie
Registered: Mar 2004
Posts: 16
Rep:
|
SuSE PATH value with duplicate entry
Hello,
as I need to modify my PATH value adding a new entry..
PATH=$PATH:/usr/java/jre1.5.0_06/bin
..I've mofified the /etc/profile file adding the line above at the bottom of it.
Very strange! ..when I'm logged in the system with also different userIDs and checked the new PATH value I saw my entry duplicate!!!
I tried with other files mofidy but nothing good!!
..if I'm logged in withot KDE, I mean with the CTRL+ALT+F1 session, there the PATH as the correct value!!
Is the KDE that is "doing the duplicate" !!!
Does anobody knows how can I circumnavigate that "problem"?
May be I have to write a little scripting language entry in my /etc/profile? ..cause I'm not able to develop script programs I haven't tried in that way!
Many Thanks in advance!
Paolo.
|
|
|
02-27-2006, 11:12 AM
|
#2
|
LQ Newbie
Registered: Feb 2006
Posts: 10
Rep:
|
Do Not add it to the /etc/profile file, but instead add it to /etc/bashrc.local (which probably does not exist). That is where you should put any modifications. /etc/profile is used whenever there is a login bash shell. For KDE, it is probably that kdm and kde are running a login bash shell, so the effect is duplicated. A login shell must be the first shell on any terminal (tty1 -> CTRL+ALT+F1 ... tty7 -> CTRL+ALT+F7 ...)
|
|
|
02-27-2006, 03:00 PM
|
#3
|
LQ Newbie
Registered: Mar 2004
Posts: 16
Original Poster
Rep:
|
Thank You MICAHGEEK,
I've tried with your suggestion creating the /etc/profile.local file that doesn't exist before..
PATH=$PATH:/usr/java/jre1.5.0_06/bin
..my PATH was not re-configured, it doesn't consider that type of configuration. Do You have some other ideas?
Best Regards,
PAOLO.
|
|
|
02-27-2006, 03:06 PM
|
#4
|
LQ Newbie
Registered: Mar 2004
Posts: 16
Original Poster
Rep:
|
...I'm sorry, I was wrong!
The modified was working but my path's entry still be duplicated..
NOOOooooo!!!

|
|
|
02-28-2006, 11:58 AM
|
#5
|
LQ Newbie
Registered: Feb 2006
Posts: 10
Rep:
|
Did you edit the bashrc.local file? The profile.local file is the same as the nono-local file, but just serves to seperate user changes from system ones. Try using the bashrc.local file first.
PS It doesn't matter if there is a duplicate entry, it will still work.
|
|
|
03-06-2006, 05:01 AM
|
#6
|
LQ Newbie
Registered: Mar 2004
Posts: 16
Original Poster
Rep:
|
Problem SOLUTION !!!
With all files modification I was not able to have my path's entry duplicated..
..analizing the /etc/profile steps I found the solution!
In the section " # Make path more comfortable " just write the entry you wanna add in the " cycle FOR "
IT WORKS lovely WELL!!! 
|
|
|
All times are GMT -5. The time now is 08:11 PM.
|
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
|
|