![]() ![]() VNC provides a “virtual desktop” so it is more lightweight than a full blown desktop installation. There is a better way however, and that is to install VNC. As a result many people actually install Ubuntu Desktop instead of installing Ubuntu Server since the desktop version of Ubuntu has the GUI built in. Some people find this prospect rather too daunting and would rather use a graphical user interface (GUI) instead. Putty gives you a “Command Line” interface and so you’ll need to learn a few Linux commands in order to be able to administer your server this way. Once you’ve installed Ubuntu Server you will need a mechanism to be able to administer it. We don’t have to rely anymore on the command line interface if we are not comfortable with it.Administer Ubuntu Server Focal Fossa 20.04LTS using VNC We can also manage our files and software using a graphical interface. We can now easily interact with a remote server using our mouse or keyboard. We have now installed and configured VNC Server on Ubuntu 20.04. Once we give the correct password we will see the remote desktop. Here we have to enter the password that we set in the previous steps. We have to use the IP Address of our server with. For windows it can be a RealVNC or TightVNc viewer. Lets reload the systemd using the following command: $ systemctl daemon-reloadĪfter reloading systemd let’s enable autorun of TightVNC Server and lets start it with the following command: $ sudo systemctl enable -now vncserver Remote Desktop Connection Press CTRL+S to save and then CTRL+X to exit the file. We have to insert the following configuration in the file: ĮxecStartPre=-/usr/bin/vncserver -kill :1 > /dev/null 2>&1 We will use the following command to fix it: $ sudo nano /etc/systemd/system/rvice Also, it does not turn on when the system reboots. In TightVNc the daemon is not present by default. The configuration of the VNC server is done. ![]() Let’s restart the server again with the following command: $ vncserver Save the file using CTRL+S and then exit it by pressing CTRL+X. In the end of this file add the following line: Startxfce4 Type the following command: $ nano ~/.vnc/xstartup Let’s open the config file of TightVNc with the help of nano editor. Type the following command to stop the process: $ vncserver -kill :1 For this purpose we have to stop the current process which is the vncserver process. Next step is to set up or adjust other settings. Suppose you want to restrict remote desktop control then select read-only password. View only password is primary password where you have the option that anyone having this password will not be able to control the VNC instance using mouse or keyboard. Then it will ask you whether you want a view with only a password or not. If it is longer than 8 characters then automatically it will be truncated. When you run this command it will ask you to set a password. To start the vnc server use the following command: $ vncserver When the installation is complete, we’ll start configuring our VNC server. You can choose either of the options above mentioned. It basically allows us to select or log into a desktop environment using a graphical interface. There are two options which are gdm3 and lightdm.Ī display manager is a program. When the installation process is going on, you may be redirected to a window where you will be asked to choose the default display manager. For this purpose type the following command in your terminal: $ sudo apt install xfce4 xfce4-goodies tightvncserver We have to manually install a graphical shell if we want to connect to some remote desktop. In Ubuntu by default the VNC server is not installed. If we have more connections we can open more ports as well, for example port 5902,5903 etc. Let’s open port 5901 with the following command: $ sudo ufw allow 5901/tcp If we are setting up one connection then one port is enough. It will help us in incoming VNC connections. Now that it is enabled, we can open a port. If it shows status as inactive then you have to enable it or turn it on using the following command: $ sudo ufw enable ![]()
0 Comments
Leave a Reply. |