There may be times when you need to install a graphical version of the IDE (such as Eclipse) on Linux to write code or debug code deployed on Linux. However, there is a bash command line on the remote machine and no interface. In this case, it is necessary to remotely log in to the Linux graphical interface through the VNC Viewer. Virtual Network Computing (VNC) is a screen sharing and remote operation software that uses the Virtual Network Computing (VNC) protocol. This software can send keyboard and mouse movements and real-time screen images via the network. VNC is os-agnostic and can therefore be used across platforms, such as connecting Windows to a Linux computer and vice versa. It can even be used on computers that do not have client programs installed, as long as a Java-enabled browser is available. VNC consists of two operating software: a client and a server. VNC Server: The VNC Server receives VNC Viewer connection requests and transmits the screen to the client. In this example, you need to install the VNC Server VNC Viewer: VNC client on centos7, which forwards keyboard and mouse actions to the Server. In this example, you need to install the Viewer on Windows, and connect to the remote Linux Server. Unlike Windows, Linux has a visual GRAPHICAL interface after installation, and each version of the graphical interface is exactly the same. Linux has a variety of graphical interface to choose from. You can choose the graphical interface environment you like to install. Choose your favorite graphical interface. In this example, choose GNOME. X Window System: X Window System (also known as X11 or X) is a software Window System that displays in bitmaps. It began as an MIT research project in 1984, and has since become an operating protocol for standardized software toolkits and display architectures for UNIX, UniX-like, and OpenVMS operating systems. The X window system uses software tools and architectural protocols to create graphical user interfaces for operating systems, and has since expanded to other operating systems of all shapes and sizes. X is now supported and used by almost all operating systems. More importantly, today’s well-known desktop environments — GNOME and KDE — are also based on the X windowing system.
- Install GNOME on Centos7
- Install and configure the VNC Server on Centos7
- Install VNC Viewer on Windows 10
- VNC Viewer Connects to the VNC Server
Install GNOME on Centos7
Install the GRAPHICAL user interface X Window System first, and then GNOME
Install graphical user interface X Window System
yum groupinstall "X Window System"
# to install GNOME
yum groupinstall "GNOME Desktop"
Copy the code
When completed is seen, the installation is successful. After the system restarts, run startx to start the GNOME desktop
# Start X Window
startx
Copy the code
Install and configure the VNC Server on Centos7
Install the VNC Server as follows
Install VNC Server
yum install tigervnc-server
Copy the code
After the installation is complete, go to /lib/systemd/system, copy the [email protected] file, name it vncserver@:1.service, and modify it
Go to the system directory
cd /lib/systemd/system
Copy the configuration file
cp [email protected] vncserver@:1.service
Copy the code
Edit the vncServer @:1.service file you just copied and change it to the account you want to connect to through VNC Viewer. Do not set the password, VNC server startup prompt password.
Start VNC server and set password
vncserver
# disable firewall
systemctl stop firewalld.service
Copy the code
Install VNC Viewer on Win10
Official website download address
VNC Viewer Connects to VNC Server
Connect as shown below
The above.