LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2003, 09:27 AM   #1
rshan
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 4

Rep: Reputation: 0
Unhappy 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?
 
Old 08-16-2003, 12:39 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try setting them in the tightvnc startup script befroe the window manager is launched.
 
Old 08-18-2003, 09:19 PM   #3
rshan
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
That worked! Thanks. Any suggestions on how to manage the multiple 'profiles'?
 
Old 08-19-2003, 03:02 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Multiple profiles?
 
Old 08-19-2003, 06:14 PM   #5
rshan
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 08-19-2003, 07:01 PM   #6
rshan
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
I discovered another technique:

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


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
tightvnc help greenmeanie Mandriva 5 12-12-2004 11:01 AM
TightVNC enzominator Linux - Newbie 6 08-25-2004 01:25 PM
tightvnc+X tsitras Linux - Software 2 03-24-2004 04:23 PM
Tightvnc len Linux - Software 11 06-24-2003 04:31 PM
TightVNC jeffer Linux - Software 1 05-22-2003 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:25 AM.

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