LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 04-20-2005, 11:26 PM   #1
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Rep: Reputation: 15
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?
 
Old 04-20-2005, 11:56 PM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Edit /etc/profile
 
Old 04-21-2005, 03:05 AM   #3
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
Easy with Slackware. Thank you.
Same question for Mandrake 10.1...
 
Old 04-21-2005, 03:07 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Same answer.
 
Old 04-21-2005, 10:23 AM   #5
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
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
 
Old 04-21-2005, 12:03 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You could write a script for your new path and put it in /etc/profile.d.
 
Old 04-21-2005, 08:31 PM   #7
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
I think I will get rid of Mandrake once and for all
 
Old 04-22-2005, 12:23 AM   #8
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
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...
 
Old 04-22-2005, 03:00 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Thats why I like Slack, its sheer simplicity. Anyway happy Slacking
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to modify the root path at boot time jayhel Slackware 3 08-26-2005 11:40 PM
System Wide Permission lmanwarren Linux - General 1 03-29-2005 08:15 PM
How to modify the library path variable?modify the Electronkz Linux - Newbie 1 04-13-2004 06:18 AM
Modifying system-wide include path in Fedora Ross Clement Fedora 0 02-21-2004 03:14 AM
Can't modify PATH globally for SOAP interaction... crazybio Linux - Newbie 2 12-03-2003 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration