Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build graphical Interface VNC for Centos

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

Today, the editor will share with you the relevant knowledge points about how Centos builds a graphical interface VNC. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's learn about it.

Installation may cause dns to be emptied, so you need to execute the following command before following the steps to install

Chattr + I / etc/resolv.conf

1. Install (I install it separately, or you can choose to install it at the same time)

Yum install-y tigervnc tigervnc-serveryum groupinstall "desktop" yum install gnome-panelyum install nautilus

two。 Set the login password (execute the following command, you need to enter it twice)

Vncpasswd

3. Configuration (compare whether the following configuration file is consistent with yours)

Cat ~ / .vnc/xstartup #! / bin/sh [- r / etc/sysconfig/i18n] &. / etc/sysconfig/i18nexport langexport sysfontvncconfig-iconic & unset session_managerunset dbus_session_bus_addressos= `uname-s `if [$os= 'linux']; thencase "$windowmanager" in*gnome*) if [- e / etc/suse-release]; thenpath=$path:/opt/gnome/binexport pathfi;;esacfiif [- x / etc/x11/xinit/xinitrc]; thenexec / etc/x11/xinit/xinitrcfiif [- f / etc/x11/xinit/xinitrc] Thenexec sh / etc/x11/xinit/xinitrcfi [- r $home/.xresources] & & xrdb $home/.xresourcesxsetroot-solid greyxterm-geometry 80x24+10+10-ls-title "$vncdesktop desktop" & twm &

4. Start and shut down vnc

Vncserver: 1

Vncserver-kill: 1

5. Client connection test

The client software used is: vnc viewer

(1) enter the public network ip:1 of the server

(2) enter the login password set by vncpasswd

(3) the interface after successful connection

These are all the contents of the article "how to build a graphical interface VNC for Centos". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report