Ubuntu12.04 connect to CentOS5.5 Remote Desktop instance

Source: Internet
Author: User
CentOS5.5 install vnc-server to install the corresponding desktop environment and vnc server and client: # yumgroupinstall "gnometrictopenvironment" (CentOS5.x install GNOME Desktop Environment) # yumgroupinstall "XWindowSystem" "Desktop" (CentOS6.x install GNOME Desktop Environment) # yumgroup

Install vnc-server in CentOS 5.5

Install the corresponding desktop environment and vnc server and client:

# Yum groupinstall "GNOME Desktop Environment" (CentOS 5.x install GNOME Desktop Environment)

# Yum groupinstall "X Window System" "Desktop" (CentOS 6.x install GNOME Desktop Environment)

# Yum groupinstall Xfce (optional)

# Yum install vnc-server vnc * (in CentOS 5.x)

# Yum install tigervnc-server tigervnc (in CentOS 6.x)

Note: Xfce, KDE, and Gnome are both graphic desktop environments. They are characterized by a smaller resource occupation: Gnome> KDE> Xfce. The specific situation depends on the version. Generally, the newer the version, the larger the resource usage.

VNC startup and restart:

#/Etc/init. d/vncserver restart

Note: Sometimes an error is reported when the preceding command is started. You can run the command directly:

# Vncserver

Note: Disable the vncserver command: vncserver-kill: 1 vncserver-kill: 2

Set vnc access password:

# Vncpasswd

If login is used at this time. The interface is ugly. What is this ?!? You need to perform the following operations:

Modify the remote desktop display configuration file. This file does not exist at the beginning. You need to run the # vncserver command to automatically generate the file:

# Vim/root/. vnc/xstartup

Copy the following code to overwrite it.

#! /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
#/Usr/bin/startxfce4
# Exec/usr/bin/fluxbox

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.