Quote:
error reading information on service vncserver: No such file or directory
|
That's because there is no
/etc/init.d/vncserver script - you'll have to write it.
See the other scripts in that directory for examples of how to do this.
Easier though, is just to start the vncserver at boot with a line like this in
rc.local on the line before the final
exit 0
The user you wish the script to run as is
username (and that should be the user you previously configured to run the server successfully in a console)
Code:
su - username -c " cd /home/username && vncserver :1 -geometry 1024x768 -depth 24" &
Note: Your version of vncserver may require different parameters from mine ( -geometry ... )
If you'd like to run vnc over ssh (a good idea, as vnc is
not secure) see these links:
http://www.vanemery.com/Linux/VNC/vnc-over-ssh.html
http://bobpeers.com/linux/vnc_ssh.php
I'll leave you to experiment, but you should also take a look at NX:
http://www.nomachine.com/download.php