Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jul 14, 2011 12:35 am 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
How to make tightvncserver run at startup (i.e. with no user logged in, and no gui started).

I'm helping our local Public Library setup a Proxy Server.

Their tech guy is somewhat familiar with Debian, so the box is running Debian 6.0a (squeeze) - I'm more familiar with RHEL/CentOS.

We got it running without the GUI (gnome) auto running (i.e. it starts up to a login prompt). Boy do I miss 'chkconfig' and 'service'.

SSH, Squid, and the Squid Log Analyzer is all running ok at that point.

apt-get install tightvncserver got the app installed without any problems.

At first, I couldn't get tightvncserver to run without logging in a user (padmin).

I setup a tightvnc init.d script, and from the terminal, after logging in, the script correctly starts tightvncserver running as the user (padmin).

Adding that script to the services menu, and checking it to run at startup doesn't work.

First it gave a "missing user environment" error.

I added USER=padmin, and export USER to the script above the statement tightvncserver :1.

That almost works. The server starts up, starts tightvncserver without any errors, and stops at the login prompt.

The only problem is the VNC session is 'root' not 'padmin'.

So, what am I doing wrong?

So close, but logging into a remote GUI session as 'root' has trouble written all over it.

Thanks for any pointers, examples, code, etc (wild laughter is pretty much assumed).


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group