Click Here

a href="https://ref.adbtc.top/3604752" target="_blank" border="0">

VNC Installation in ubuntu.

 VNC Installation for ubuntu:- 












Step 1: Install a desktop on ubuntu server 20.04 LTS.
Issue these command:

# sudo apt update # sudo apt-get install xfce4 xfce4-goodies -y

Step 2: Installing the VNC server.
Issue the command:

# sudo apt-get install tightvncserver -y - Upon the completion of the installation, issue the command: # vncserver - This will create the initial VNC configuration. - Now kill the VNC server with the command: Issue the command: # vncserver -kill :1

Step 3: Configure the VNC server.

- Create a new configuration file. Issue the command: # nano ~/.vnc/xstartup - In this file, paste the following contents: #!/bin/bash xrdb $HOME/.Xresources startxfce4 & - Save and close that file. Change the execution permissions of the file. Issue the command: # sudo chmod +x ~/.vnc/xstartup - Restart the VNC server with the command: # vncserver



 2nd Method                     

 

                                               

To install VNC (Virtual Network Computing) on Ubuntu, you can follow these steps:

  1. Open a terminal window and update the package manager's list of available packages by running the following command:
sudo apt update
  1. Install the VNC server software by running the following command:
sudo apt install vnc4server
  1. Once the VNC server software is installed, you can start it by running the following command:
vncserver
  1. When you start the VNC server for the first time, it will prompt you to set a password for the VNC user. Enter a password and confirm it, and the VNC server will start.

  2. To stop the VNC server, run the following command:

vncserver -kill :1
  1. To connect to the VNC server from a remote client, you will need to install a VNC client software on the client machine. There are several VNC client options available, such as TightVNC, RealVNC, and UltraVNC.

  2. Once you have installed the VNC client software, you can connect to the VNC server by entering the IP address or hostname of the server and the VNC display number (e.g. 192.168.1.100:1) in the VNC client. You will also need to enter the password that you set for

 

 
                                 

 


                                        

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.