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. |