How to configure VNC in Linux

Source: Internet
Author: User


In Linux, VNC can be remotely connected using third-party software like Linux and Windows. This is very convenient for network administrators. In this article, we will discuss how to configure VNC in Linux. Unlike SecureCRT, VNC implements a graphical interface to connect to a remote server. Below are some basic instructions: Start $ vncserver: 1 stop $ vncserver-kill: 1 Change Password $ vncpasswd www.2cto.com for Redhat, choose GNOME Desktop when installing the system. VNCServer configuration # vi/etc/sysconfig/vncserversVNCSERVERS = "1: root 2: oracle" VNCSERVERARGS [1] = "-geometry 1024x768" Run vncserver, the connection password is required. The $ HOME/. Xauthority file and the $ HOME/. vnc directory are created. You can use #/etc/init. d/vncserver stop #/etc/init. d/vncserver start to disable and start the service. $ HOME/. vnc/xstartup: set when X is started. If you want to start GNOME, you can add gnome-session, and startkde to start KDE. If you have set automatic start upon startup, The vncserver does not obtain the language environment variables. After remote logon, the English interface is displayed. You can add "LANG =" zh_CN.GBK "export LANG" to xstartup ". An example of the configuration file: # cat $ HOME/. vnc/xstartup #! /Bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec/etc/X11/xinit/xinitrc LANG = "zh_CN.GBK" export LANG www.2cto.com [-x/etc/vnc/xstartup] & exec/etc/vnc/xstartup [-r $ HOME /. xresources] & xrdb $ HOME /. xresourcesxsetroot-solid greyvncconfig-iconic & # xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & # twm & gnome-session # startkde you can use VNC Viewer customer The user can connect to the server to see the graphic interface. This article is from the fat shark network.

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.