Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-22-2003, 01:02 PM   #1
Registered: Aug 2003
Distribution: RedHat 9, SuSE 9.2
Posts: 49

Rep: Reputation: 15
automate vncserver

i'm trying to build the linux equivalent of symantec's pcanywhere remote control software.

my goal is to be able to remotely administer a linux file/print server just as i currently administer a windows nt server with pcanywhere. basically, i want to administer the server from my office desktop without having to find the keys and walk to the server room.

i've been experimenting with vncserver on a redhat 9.0 box and it seems to work okay if i first launch the vncserver from a command prompt at the linux box.

what i'd like to do now is automate this process so that vncserver loads and is waiting for a connection each time the server boots - similar to the way pcanywhere loads as a background service on a windows machine.

i've been experimenting with adding the vncserver command to some of the linux boot-up scripts but i haven't found the right way of doing this.

the linux server is behind a hardware firewall and i'm only concerned about accessing the server on the internal lan. i do not wish to allow outside connections through the firewall.
Old 10-22-2003, 01:50 PM   #2
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 28
I just did this one the other day.. add

vncserver :2

in the etc/rc.local file

You can change :2 to whatever session number you want to use

It will prompt you for a session password the first time you boot (but only the first time)

The only downside is that the session is root
Old 10-23-2003, 09:16 AM   #3
Registered: Aug 2003
Distribution: RedHat 9, SuSE 9.2
Posts: 49

Original Poster
Rep: Reputation: 15
i placed the command in the /etc/rc.local file and entered a password when prompted, but the linux box generates as error during boot-up:
"vncserver: the USER environment is not set"
the xvnc process does not start so i still have to manually start vncserver at a command prompt. what am i missing?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Automate Xlock? dauphinfay Linux - Software 2 08-14-2005 03:05 AM
Robust vncserver startup file (rc.vncserver) arobinson74 Slackware 4 05-14-2005 05:33 AM
How would I automate this? onewhoknows Linux - Newbie 5 06-22-2004 04:49 AM
Automate PPPD ashleyfrazer Linux - Networking 16 10-28-2002 10:42 AM
Automate FTP noodle123 Linux - General 1 10-15-2002 04:50 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 PM.

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