vncserver - a wrapper to launch an X server for VNC.
vncserver [:display] [-geometry widthxheight] [-depth depth] [-pixelformat rgbNNN|bgrNNN] [-name desktop-name] [ -httpport int ] [ -basehttpport int ] [ -alwaysshared ] [ -nevershared ] [Xvnc-options...]
vncserver [ -clean ] -kill :display
vncserver -help
sudo apt-get update
sudo apt-get install tightvncserver
:display
The display number to use. If omitted, the next free display number is used.
-geometry widthxheight
Set desktop width and height.
-depth depth
Set the colour depth of the visual to provide, in bits per pixel. Must be a value between 8 and 32.
-pixelformat rgbNNN|bgrNNN
Set colour format for pixels representation. The viewer can do the conversion to any other pixel format, but it is faster if the depth and pixel format of the server is the same as the equivalent values on the viewer display.
-name string
This specifies the name of the desktop.
-clean
This option can be used in conjunction with
-kill :display
Stops the session running on the specified display.
-nevershared
Never allow shared desktops.
-alwaysshared
Always allow shared desktops.
-basehttpport int
The base http port to use for the java client applet (you have to install the tightvnc-java package to make this work). The real port number will be port = base + display num.
-httpport int
The http port to use for the java client applet (you have to install the tightvnc-java package to make this work).
-help
Prints a short usage notice to stderr.
vncserver
Invokes Xvnc on the next available display and with suitable defaults.
vncserver :1
Invokes Xvnc on display :1.
vncserver -geometry 800x600 -depth 16 :1
Invokes Xvnc on display :1 with desktop size of 800x600 pixels and color depth of 16 bits per pixel.
vncserver -kill :1
Shuts down Xvnc server on display :1.
sudo nano /etc/rc.local
# START THE TIGHT VNC SERVER
su - sedna -c '/usr/bin/tightvncserver :1 -geometry 1280x800 -depth 16'