

Lastly, make the ~/.vnc/xstartup file executable: $ chmod +x ~/.vnc/xstartupĪt this stage we are ready to start the VNC server. Insert the the following content and save: #!/bin/bash Next, create the ~/.vnc/xstartup file to start the Xfce4 desktop: $ mkdir ~/.vnc (vncpasswd command already create this folder in my case) This will also create a folder ~/.vnc and put a file 'passwd' inside it. Remember this as later you need it when you try to connect to this server from your vnc viewer.
Setup vnc server ubuntu password#
It will ask you set up a password for desktop access. Once the VNC server is installed we can begin the configuration by setting up a user password to be used by a VNC client when creating a remote connection: $ vncpasswd
Setup vnc server ubuntu install#
Let's start by the installation of the VNC server and the Xfce desktop manager core files: $ sudo apt install vnc4server xfce4 xfce4-goodies I found some difference from my machine and have marked it below. To enable SSH again on your Ubuntu host use command:įollow this link to install and enable VNC server.In order to completely disable SSH after reboots execute:.In an event that you need to temporarily disable SSH on your Ubuntu host execute:.Press q if you need to get your command line prompt back: Look for keyword Active: active (running).

$ ssh Confirm that SSH server is up and running by executing the bellow command. For example, to log into a server with host name ubuntu-server as user linuxconfig, just enter:

