
This is done by crating arbitrary number of users and each user will have his own display port and his own instance of VNC server. It is possible to have multiple VNC sessions that don't interfere with each other.
#UBUNTU 16.04 VNC SERVER REBOOT PASSWORD#
If some of users type the view only password (provided that you created one) they would not have control of cursor but they would still be in single session and watch one same screen. You can connect to this session from unlimited number of computers, but then yo would all be controlling one mouse cursor and have same session. Lets first backup this file mv ~/.vnc/xstartup ~/.vnc/xstartup.backupĪnd then create new file from clean slate The file I am talking about is called xstartup and it is found inside hidden. We do this by following command: vncserver -kill :1Īfter this is done, configuration file for VNC server can be edited to select which desktop environment will be started upon connecting to the VNC server. To continue configuration, we actually need to kill all instances of VNC server. If you start multiple instances of VNC you will have multiple display ports, and it will increment both number by 1, to : and so on for every instance. After this process is completed, VNC instance will be launched on port 5901 and VNCserver will count this port as :1. If you don't plan to have spectators you can chose not to enter view only password. This password must be different than your main password. It will also prompt you for view only password, you need that one if you want to have someone connect to your VNC session without control of the cursor and keyboard, only as spectator. Then we need to configure VNC server with password for login on as user 'miki' vncserver
#UBUNTU 16.04 VNC SERVER REBOOT INSTALL#
Sudo apt install gnome-core xfce4 firefox xfce4-goodies tightvncserver
