Slackware - Installation This forum is for the discussion of installation issues with Slackware. |
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.
|
|
04-21-2005, 12:26 AM
|
#1
|
Member
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161
Rep:
|
How to modify the system-wide PATH
I would like to modify the system-wide path,
add :/opt/netbeans-4.0/ for example,
and make the change permanent,
so it is effective everytime I reboot the system.
What is the best and most efficient way to do this?
|
|
|
04-21-2005, 12:56 AM
|
#2
|
Member
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561
Rep:
|
Edit /etc/profile
|
|
|
04-21-2005, 04:05 AM
|
#3
|
Member
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161
Original Poster
Rep:
|
Easy with Slackware. Thank you.
Same question for Mandrake 10.1...
|
|
|
04-21-2005, 04:07 AM
|
#4
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Same answer.
|
|
|
04-21-2005, 11:23 AM
|
#5
|
Member
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161
Original Poster
Rep:
|
If this method works well and as expected with Slackware, it is not the case--unfortunately and as usual-- with Mandrake.
In Slackware if I modify this line in /etc/profile:
# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games
Then the changes apply to the system-wide path and the users' path as well.
It is not the case with Mandrake!
The definition of the system-wide path is nowhere to be found in Mandrake's /etc/profile
|
|
|
04-21-2005, 01:03 PM
|
#6
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
You could write a script for your new path and put it in /etc/profile.d.
|
|
|
04-21-2005, 09:31 PM
|
#7
|
Member
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161
Original Poster
Rep:
|
I think I will get rid of Mandrake once and for all
|
|
|
04-22-2005, 01:23 AM
|
#8
|
Member
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161
Original Poster
Rep:
|
I did it.
I put Slackware 10.1 disk1 in the drive. I hit reboot: adios Mandrake...
As you explained, I modified the existing script which sets the path for java in /etc/profile.d
After 5 hours of tweaking I could not have J2SE 5.0 working with Mandrake 10.1. Konqueror's VM didn't work nor Mozilla's. Why? Even with everything chmod 777. Applet loaded > freeze, no picture.
The way Java is installed is insane. It doesn't beat the way the udevs are installed, though: a monument of insanity.
With Slackware I just unlinked the old java directory from jdk1.5.0 and relinked it to the latest jdk1.5.0_02. That's it! That's all there's to do: 10 minute job including the download of Java. And everything is working. Mozilla, Konqueror's VM, etc...
|
|
|
04-22-2005, 04:00 AM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Thats why I like Slack, its sheer simplicity. Anyway happy Slacking
|
|
|
All times are GMT -5. The time now is 08:24 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
|
|