- #UBUNTU 16.04 VNC SERVER XSTARTUP HOW TO#
- #UBUNTU 16.04 VNC SERVER XSTARTUP INSTALL#
- #UBUNTU 16.04 VNC SERVER XSTARTUP PASSWORD#
Let’s back up this file first mv ~/.vnc/xstartup ~/.vnc/xstartup.backupĪnd then create a new file from clean slate The file I’m talking about is called xstartup and it’s in the hidden. The configuration file for the VNC server can then be edited to select which desktop environment is started when connecting to the VNC server. We do this with the following command: vncserver -kill :1 In order to continue the configuration, we actually need to terminate all instances of the VNC server. When you start multiple instances of VNC, you have multiple display ports and both numbers are incremented by 1 for each instance to:, and so on. After this process is completed, the VNC instance is started on port 5901 and VNCserver counts this port as: 1.
#UBUNTU 16.04 VNC SERVER XSTARTUP PASSWORD#
If you do not want to have viewers, you will not be able to enter the password for the ad. This password must be different from your main password. You need this when you want someone to connect to your VNC session without controlling the cursor and keyboard, just as a viewer.
![ubuntu 16.04 vnc server xstartup ubuntu 16.04 vnc server xstartup](https://www.fatalerrors.org/images/blog/e9e10a4ddbba55f45201ea5d5a7f6b2d.jpg)
It also prompts you for just the password for viewing. Then we have to configure the VNC server with a password for logging in as user ‘miki’ vncserver
#UBUNTU 16.04 VNC SERVER XSTARTUP INSTALL#
sudo apt install gnome-core xfce4 firefox xfce4-goodies tightvncserver Install VNC Server (Tight VNC) and Desktop (XFCE)įirst we start with the installation of the TightVNC server and the XFCE desktop environment. Ubuntu has TightVNC in repositories and in this tutorial we are going to set up a TightVNC server for multiple users on Ubuntu Server 16.04.įor the GUI we use XFCE, a lighter alternative to GNOME and Unity. VNC is a good solution for this, which is widely used and pretty easy to set up. But sometimes you need to run an application with a GUI on a server, and since you usually don’t sit next to the server and the server may not have a monitor and keyboard, you need some sort of remote desktop.
#UBUNTU 16.04 VNC SERVER XSTARTUP HOW TO#
How to install and configure a VNC server in Ubuntu 16.The traditional way to manage the server is through SSH and the command line. Installing a VNC server using TightVNC on Ubuntu 16.04 completed successfully. You will now get the XFCE desktop from your server.Ĭlick the Use Default Configuration button for the first time and you will get the XFCE desktop with the default configuration. Now open the “vnc viewer” application, create a new connection and enter the VNC server address with the IP address 127.0.0.1 localhost and port 5901, as shown below.Ĭonnect to the VNC server and you will be prompted to enter the VNC server password. Port 5901 on the local host will be redirected to the VNC server “192.168.33.10” on port 5901. The command will create a tunnel between your local host and the VNC server. Open your terminal and enter the ssh command as shown below. Connect to the VNC server through the SSH tunnel.Īt this point, we will connect to our VNC server through an ssh tunnel.
![ubuntu 16.04 vnc server xstartup ubuntu 16.04 vnc server xstartup](https://www.krizna.com/wp-content/uploads/2014/10/install-vnc-server-ubuntu-14-04-1.jpg)
![ubuntu 16.04 vnc server xstartup ubuntu 16.04 vnc server xstartup](https://i.stack.imgur.com/V71rw.jpg)
The VNC server is installed, and the first session is now running as “edward”. Systemctl daemon reboot systemctl startup Īssuming everything goes without errors, add the service at boot time and check the status of the service using systemctl. Now restart the systemd services and start the VNC server service. ĮxecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1ĮxecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i Paste the following vnc service script there. Go to the directory “/ etc / systemd / system” and create a new service file”.Ĭd / etc / systemd / system vim Therefore, we need to create a new utility file for it. In this tutorial, we will start the VNC server as a service. Now make the script executable with chmod and run the vncserver command again. Insert the following configuration there. Now back up the default configuration and create a new one using pressure,
![ubuntu 16.04 vnc server xstartup ubuntu 16.04 vnc server xstartup](https://ubuntucommunity.s3.dualstack.us-east-2.amazonaws.com/original/2X/9/9739bf252a049affd52397e3f3ca6965441e2cda.png)
We will edit the VNC configuration file “xstartup” in the “.vnc” directory.īefore editing the configuration, end the first VNC session using the command below. vnc / ps -ef | grep XtightvncĪnd you will get the result as shown below.Īt this point, we will configure the VNC server to use the XFCE desktop. vnc configuration directory and start the first VNC session. When you run the vncserver command for the first time, it will automatically create a new. A user who logs on to the server with a “view-only” password cannot control the mouse and keyboard. And for a “view-only” password, you can enable or disable it. You will be prompted to enter the VNC server password – enter your password. Now run the vnc configuration for the user “edward” using the command below.