VNC configuration in linux

Source: Internet
Author: User
For more information about VNC configuration in linux, see Linux Enterprise Application-Linux server application. 1. Start, stop, and restart VNC
# Service vncserver start/stop/restart
Command: vncserver-kill: 1 vncserver-kill: 2
2. Set the password
# Vncpasswd
3. Client Login
In the vnc client, enter: Server IP: 1 or server IP: 2.
4. log on to the KDE Desktop
A.
[Root @ centos ~] # Vi/etc/sysconfig/vncservers
#
# Uncomment the line below to start a VNC server on display: 1
# As my 'myusername' (adjust this to your own). You will also
# Need to set a VNC password; run 'man vncpasswd' to see how
# To do that.
#
# Do not run this service if your local area network is
# Untrusted! For a secure way of using VNC, see
#. Http://www.uk.research.att.com/vnc/sshvnc.html
# VNCSERVERS = "1: myusername"
VNCSERVERS = "1: root"
# VNCSERVERARGS [1] = "-geometry 800x600"
VNCSERVERARGS [1] = "-geometry 800 × 600-alwaysshared-depth 24 ″
-Alwaysshared indicates that multiple users are allowed to log on at the same time. The value of depth is 8, 16, 24, and 32.
Note: The red part is the modified or added part.
B.
[Root @ centos. vnc] $ vi/root/. vnc/xstartup
#! /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 "&
# Gnome-session & # set starting GNOME desktop
Startkde & # kde desktop
# Twm & # Text interface
Note: The red part is the modified or added part.
C.
Restart VNC.
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.