Configuration of connecting vnc to Linux

Source: Internet
Author: User
Configuration of connecting vnc to Linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. After three days, the remote connection to the vnc is able to display the desktop properly. I will not talk about installation here. Now linux comes with it. I have installed it, but I have not downloaded it.

Can I use rpm? Q vnc-server command to check whether the system has installed the vnc service.

Configuration:

The default X-Windows VNC service is TWM. The interface is ugly or cannot be correctly displayed. In this case, you only need to modify the vncserer command in/usr/bin/, find $ defaultXStartup in the command line, and modify the following content to the following:

$ DefaultXStartup
= ("#! /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 gray ".

"# Vncconfig-iconic &".

"# Xterm-geometry 80x24 + 10 + 10-ls-title" $ VNCDESKTOP Desktop "&".
"# Twm &");

The content does not need to be modified. You only need to add or remove "#" before the command line. In linux's footsteps, "#" indicates that the statement is not executed, that is why I did not find out clearly. I have made a lot of effort and must pay attention to the details.

Common commands:

Vncserver-start the vnc server. After it is started, you will be asked to enter the vnc connection password

/Etc/init. d/vncserver status-check the status of vnc

/Etc/init. d/vncserver retatus-restart the vnc Server

Netstat? Arp | grep Xvnc-check Port
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.