hackkerop.blogg.se

Ubuntu 16.04 vnc server gnome
Ubuntu 16.04 vnc server gnome












  1. #Ubuntu 16.04 vnc server gnome install#
  2. #Ubuntu 16.04 vnc server gnome password#

Now run vncserver to spwawn the process vncserver :2Īnd you can now connect at port 5902 and have separate session. Then create new one from scratch nano ~/.vnc/xstartupĪnd make it executable: sudo chmod +x ~/.vnc/xstartup First backup the xstartup file mv ~/.vnc/xstartup ~/.vnc/xstartup.backup vncserver -kill :2Īnd we need to actually repeat process from earlier. We need to kill this process in order to be able to edit config file. Other than password, this also crated new process that listens on port 5902.

#Ubuntu 16.04 vnc server gnome password#

Lets start first by adding new user sudo adduser newuserĪnd lets make a password for new user vncserver And in turn he will run his own instance of desktop environment, or that could be entirely separate DE. 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. 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.

ubuntu 16.04 vnc server gnome

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.

ubuntu 16.04 vnc server gnome

Then we need to configure VNC server with password for login on as user 'miki' vncserver

#Ubuntu 16.04 vnc server gnome install#

Sudo apt install gnome-core xfce4 firefox xfce4-goodies tightvncserver














Ubuntu 16.04 vnc server gnome