Slackware - InstallationThis 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.
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.
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?
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
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.