| View previous topic :: View next topic |
| Author |
Message |
carmine65 Junior Member
Joined: 18 Jun 2011 Posts: 19
|
Posted: Sat Jul 16, 2011 4:58 pm Post subject: VNC Server to start at boot |
|
|
Hi friends,
just would like to have tightvnc server to start at boot time so I can control SMS screen from another pc of my home LAN.
I put /usr/bin/vncserver in /etc/rc.d/rc.local
vncserver starts at boot but I get the following message:
vncserver: The USER environment variable is not set
(and the server isn't activated).
Tips for fixing that?
btw: if I start vncserver from a Putty terminal everything is OK, I can enter and operate a remote SMS desktop.
greetings! |
|
| Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1490 Location: Greece
|
Posted: Sat Jul 16, 2011 7:06 pm Post subject: |
|
|
Setup you password with "vncpassword", and edit
/etc/rc.d/rc.vncservers.conf
with your users like
| Code: | | VNCSERVERS="10:root" |
And use /etc/rc.d/rc.vncservers to start at boot
place an entry in rc.local
| Code: | | /etc/rc.d/rc.vncservers start |
Additionally configuration for sessions in
/etc/tightvncserver.conf
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
| Back to top |
|
carmine65 Junior Member
Joined: 18 Jun 2011 Posts: 19
|
Posted: Sun Jul 17, 2011 11:01 am Post subject: |
|
|
| gerasimos_h wrote: | Setup you password with "vncpassword", and edit
/etc/rc.d/rc.vncservers.conf
with your users like
| Code: | | VNCSERVERS="10:root" |
And use /etc/rc.d/rc.vncservers to start at boot
place an entry in rc.local
| Code: | | /etc/rc.d/rc.vncservers start |
Additionally configuration for sessions in
/etc/tightvncserver.conf
gerasimos_h |
Hi gerasimos_h
that's OK. followed your suggestions and vncserver is active now.
Only addition I did was to assign execution permission to /etc/rc.d/rc.vncservers
Greetings! |
|
| Back to top |
|
|