how do you edit /etc/profile?
Alexander Dalloz
alexander.dalloz at uni-bielefeld.de
Fri Aug 6 03:44:25 UTC 2004
Am Fr, den 06.08.2004 schrieb Michael Mallete um 5:01:
[ rearranged top-posting ]
> >$ ls -al /etc/profile.d/java.sh
> >-rwxr-xr-x 1 root root 192 21. Jul 03:20
> >/etc/profile.d/java.sh
> >
> >$ cat /etc/profile.d/java.sh
> >JAVA_VERSION="j2re1.4.2_04"
> >
> >if [ -d /usr/java/${JAVA_VERSION} ]; then
> > export JAVA_HOME="/usr/java/${JAVA_VERSION}"
> > export JAVA_PATH="${JAVA_HOME}"
> > export PATH="$PATH:${JAVA_HOME}/bin"
> >fi
> >
> >So create that file executable and maybe adjust the
> >J2RE version number
> >if you have a different version installed.
> >
> >Alexander
ah. so you mean execute this in bash:
>
> $ ls -al /etc/profile.d/java.sh
> $ cat /etc/profile.d/java.sh
>
> then add this to /etc/profile/
You left out the first line of the java.sh file!
--> JAVA_VERSION="j2re1.4.2_04"
> if [ -d /usr/java/${JAVA_VERSION} ]; then
> export JAVA_HOME="/usr/java/${JAVA_VERSION}"
> export JAVA_PATH="${JAVA_HOME}"
> export PATH="$PATH:${JAVA_HOME}/bin"
> fi
> -Myk
No.
vi /etc/profile.d/java.sh
---> then put in the content I showed you and save the new file
chmod 755 /etc/profile.d/java.sh
--> to make the file executive
Alexander
--
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.7-1.494.2.2smp
Serendipity 05:41:20 up 1 day, 23:09, load average: 0.19, 0.21, 0.09
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040806/252baf32/attachment-0001.sig>
More information about the fedora-list
mailing list