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 modify CentOS VncServer to default root login window management

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to modify CentOS VncServer to the default root login window management, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

The industrial control computer used in the experiment does not support the mouse. If you want to operate openoffice and play with CentOS VncServer configuration under the graphical interface, the system is centos5.2; directly yum installed server side and client side > yum install vnc vnc_server. Generally speaking, the system has installed CentOS VncServer by default, but the service has not been started. According to the information from google, start to configure account information > vi / etc/sysconfig/vncservers.

VNCSERVERS= "1:root" # VNCSERVERS= "2:myusername" # VNCSERVERARGS [2] = "- geometry 800x600-nolisten tcp-nohttpd-localhost"

Where username refers to the identity of the default CentOS VncServer login, here I changed it to the default root login, 2 is probably a port. I changed it to 1 and then configure the password for the root user using the following command: > vncpasswd when prompted for Verify, enter the password again to confirm.

Start the CentOS VncServer service > sbin/service CentOS VncServer start. Modify the window manager of CentOS VncServer CentOS VncServer the default window manager is twn, which is a very simple window manager, we can change to the common GNOME or KDE.

Vi ~ / .vnc/xstartup modifies the startup item as follows:

#! / bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec / etc/X11/xinit/xinitrc [- x / etc/vnc/xstartup] & & exec / etc/vnc/xstartup [- r $HOME/.Xresources] & & xrdb $HOME/.Xresources xsetroot-solid grey vncconfig-iconic & xterm-geometry 80 × 24010-ls-title "$VNCDESKTOP Desktop" & gnome-session & # window Manager using GNOME as VNC # startkde & # kde desktop # twm & # Note the default window manager of the system

Restart CentOS VncServer in accordance with this step, I excitedly started my client connection and found that after the connection was a gray checkerboard with only an X mouse, there was nothing; again, after repeated failed attempts, google; once again verified the indestructible truth (none of the articles turned around on the Internet was successful) One of them took a turn for the better. Although there was no checkerboard, what came out was a black and white console, and other areas were still unexplored.

CentOS VncServer later simply reinstalled gnome kde > yum groupinstall "X Window System"GNOME Desktop Environment" to * *, and according to a talented person: > chmod Uzzz / home/user/.vnc/xstartup > when service vncserver restart connected again, I found it was successful! There is an all-black gnome desktop in Beijing. Although not all gui, it is a successful step.

Continue to explore the tips:windows client side of the use of Real CentOS VncServer server startup flag is to listen on port 5801, so the firewall to open tcp 00 *: 5801 can use > netstat-ntlp to view the CentOS VncServerclient can also log in through the web client, by accessing htttp://hostname:5801

Encyclopedia: CentOS VncServer (Virtual Network Computing) is an abbreviation for virtual network computer. CentOS VncServer is an excellent remote control tool software developed by the famous European research laboratory of AT&T. CentOS VncServer is a free open source software based on UNIX and Linux operating system. Its remote control ability is powerful, efficient and practical, and its performance is comparable to that of any remote control software in Windows and MAC.

CentOS VncServer is developed by the AT&T laboratory of Cambridgede in the United States. basically, it belongs to a display system, that is, it can transfer the complete window interface to the screen of another computer through the network. The "Terminal Server" included in the Windows server and the paid software "PCAnywhere" developed by Symantec belong to this design.

VNC basically consists of two parts: one is the client-side application (vncviewer), and the other is the server-side application (vncserver). The basic operation principle of CentOS VncServer is very similar to some remote control software under Windows. The server-side application of CentOS VncServer is very adaptable in UNIX and Linux operating systems, the graphical user interface is very friendly, and it looks very similar to the software interface under Windows. On any Linux platform computer with client-side applications (vncviewer) installed, it is very convenient to connect with computers with server-side applications (vncserver) installed. In addition, the server side (vncserver) also has a built-in Java Web interface, so that the operation of the user to other computers through the server can be displayed through web, which is more intuitive and convenient.

After reading the above, do you have any further understanding of how to modify CentOS VncServer to the default root login window management? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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

Servers

Wechat

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

12
Report