View previous topic :: View next topic |
Author |
Message |
pinky99 n00b
Joined: 19 Nov 2004 Posts: 45
|
Posted: Thu Jan 05, 2006 11:57 am Post subject: env-update question |
|
|
Hi,
does changing something in /etc/env.d/ always require a reboot or restart of the X-Server?
I installed a new Java-engine, it was placed in the XYjava in env.d, env-update put it into /etc/profile.env.
But new gnome-terminals started from Gnome-panel still use the old variable, unlike root-shells or framebuffer terminal - logins.
Thanks,
max |
|
Back to top |
|
|
jedsen Apprentice
Joined: 15 Oct 2004 Posts: 276 Location: Sacramento, California, USA
|
Posted: Thu Jan 05, 2006 12:32 pm Post subject: |
|
|
Did you run:
source /etc/profile
after env-update? |
|
Back to top |
|
|
pinky99 n00b
Joined: 19 Nov 2004 Posts: 45
|
Posted: Thu Jan 05, 2006 12:38 pm Post subject: |
|
|
yes, this helps, all variables are then set properly.
But if i create a new gome-terminal, the old settings are given to it!
...start a new terminal
Code: | max@fry ~ $ echo $JAVA_HOME
/opt/sun-jdk-1.4.2.09
max@fry ~ $ source /etc/profile
max@fry ~ $ echo $JAVA_HOME
/opt/sun-jdk-1.4.2.10
max@fry ~ $ |
... |
|
Back to top |
|
|
jedsen Apprentice
Joined: 15 Oct 2004 Posts: 276 Location: Sacramento, California, USA
|
Posted: Thu Jan 05, 2006 12:53 pm Post subject: |
|
|
You might try shutting down gnome, typing "source /etc/update", then restarting it. If you haven't already. |
|
Back to top |
|
|
pinky99 n00b
Joined: 19 Nov 2004 Posts: 45
|
Posted: Thu Jan 05, 2006 12:55 pm Post subject: |
|
|
no, i thought it would be nice to *not* have to do this.
I nearly never reboot as Suspend to RAM|Disk works flawlessly on my laptop.
but anyway, i'll reboot. |
|
Back to top |
|
|
jedsen Apprentice
Joined: 15 Oct 2004 Posts: 276 Location: Sacramento, California, USA
|
Posted: Thu Jan 05, 2006 1:08 pm Post subject: |
|
|
Sorry, I worded that badly. I meant you should just end your gnome session, run "source /etc/profile" from the non-graphical terminal, then launch X/gnome again. |
|
Back to top |
|
|
pinky99 n00b
Joined: 19 Nov 2004 Posts: 45
|
Posted: Thu Jan 05, 2006 1:15 pm Post subject: |
|
|
this is what i just did.
just found it sad, that i really had to quit my gnome-session to let the changes take effect,
reminds me of "To finish the installation of the security update, windows must be restarted. Reboot now/..." |
|
Back to top |
|
|
jedsen Apprentice
Joined: 15 Oct 2004 Posts: 276 Location: Sacramento, California, USA
|
Posted: Thu Jan 05, 2006 1:17 pm Post subject: |
|
|
Oh, what might've work was executing the "run command" from the gnome menu, then typing "source /etc/profile". I'm recording this for prosterity. I'm sorry it's too late to help you. |
|
Back to top |
|
|
|