LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tightvnc and /etc/profile (https://www.linuxquestions.org/questions/linux-newbie-8/tightvnc-and-etc-profile-82530/)

rshan 08-16-2003 09:27 AM

tightvnc and /etc/profile
 
I'm running tightvnc (server) on Mandrake 9.1. I am able to establish a session just fine from my Windows XP box, but the sessions do not pick up path and environment variable changes I've made to /etc/profile.

If I log into the Mandrake box directly my path and environment variables are set correctly according to the changes I made to /etc/profile. Also, if I ssh to the box the settings are also correct.

I also tried changing ($HOME)/.bash_profile and that didn't work either.

I'm running tightvnc-server-1.2.7-5mdk.

Any ideas?

david_ross 08-16-2003 12:39 PM

Try setting them in the tightvnc startup script befroe the window manager is launched.

rshan 08-18-2003 09:19 PM

That worked! Thanks. Any suggestions on how to manage the multiple 'profiles'?

david_ross 08-19-2003 03:02 PM

Multiple profiles?

rshan 08-19-2003 06:14 PM

I simply meant that I wanted to avoid having to maintain path and environment variables in multiple places, i.e. in profile and in xstartup. I've taken the approach of putting my path and enviroment settings in a script file and running it from profile and xstartup.

rshan 08-19-2003 07:01 PM

I discovered another technique:

in /etc/X11/Xsession change
#!/bin/sh to #!/bin/bash --login


All times are GMT -5. The time now is 11:30 AM.