VNC-SERVER installation and configuration in Linux (RHEL6 \ CENTOS6 \ OLE6)
VNC-SERVER installation and configuration in Linux (RHEL6 \ CentOS6 \ OLE6)
1. Install and start tigervnc-server
# Rpm-ivh tigervnc-1.1.0-16.el6.x86_64.rpm
Warning: tigervnc-1.1.0-16.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ######################################## ### [100%]
1: tigervnc ####################################### #### [100%]
# Rpm-ivh tigervnc-server-1.1.0-5.el6.x86_64.rpm
Warning: tigervnc-server-1.1.0-5.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Error: Failed dependencies:
Xorg-x11-fonts-misc is needed by tigervnc-server-1.1.0-5.el6.x86_64
# Rpm-ivh tigervnc-server-1.1.0-5.el6.x86_64.rpm
Warning: tigervnc-server-1.1.0-5.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ######################################## ### [100%]
1: tigervnc-server ##################################### ###### [100%]
# Vncserver
You will require a password to access your tops.
Password:
Verify:
New 'node1: 1 (root) 'desktop is node1: 1
Creating default startup script/root/. vnc/xstartup
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/node1: 1.log
2. modify the configuration file
# Vim/root/. vnc/xstartup
#! /Bin/sh
[-R/etc/sysconfig/i18n] &./etc/sysconfig/i18n
Export LANG
Export SYSFONT
Vncconfig-iconic &
Unset SESSION_MANAGER
Unset DBUS_SESSION_BUS_ADDRESS
OS = 'uname-S'
If [$ OS = 'linux ']; then
Case "$ WINDOWMANAGER" in
* Gnome *)
If [-e/etc/SUSE-release]; then
PATH = $ PATH:/opt/gnome/bin
Export PATH
Fi
;;
Esac
Fi
If [-x/etc/X11/xinit/xinitrc]; then
Exec/etc/X11/xinit/xinitrc
Fi
If [-f/etc/X11/xinit/xinitrc]; then
Exec sh/etc/X11/xinit/xinitrc
Fi
[-R $ HOME/. Xresources] & xrdb $ HOME/. Xresources
Xsetroot-solid gray
Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
# Twm &
Gnome-session &
# Vim/etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display: user pairs.
#
# Uncomment the lines below to start a VNC server on display: 2
# 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 this URL:
# Http://kbase.RedHat.com/faq/docs/DOC-7028
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-localhost" to prevent remote VNC clients connecting tables t when
# Doing so through a secure tunnel. See the "-via" option in
# 'Man vncviewer 'manual page.
VNCSERVERS = "1: root"
# VNCSERVERARGS [2] = "-geometry 800x600-nolisten tcp-localhost"
Restart the vncserver service
# Service vncserver restart
VNC installation Configuration
Install and configure VNC in CentOS 6.3
In Linux, the dependency installation VNC is not detected.
CentOS6 VNC service installation and configuration
Configure and install VNC in CentOS
VNC remote control installation and Setup
Windows accesses Ubuntu through VNC
Install VNC for accessing Ubuntu 12.04 through Windows Remote Desktop