Use VNC to connect to ubuntu10.10 Remote Desktop

Source: Internet
Author: User

1. Install and start the VNC Server:

# Apt-Get install vnc4server

# Vnc4server

After vnc4server is started, A. VNC directory will be generated in the main directory.

2. Stop a VNC session:

Vnc4server-kill: 1

3. Edit. VNC/xstartup and change it to the following content:

#! /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 &
# X-terminal-emulator-geometry 80x24 + 10 + 10-ls-title "$ vncdesktop desktop "&
# X-window-manager &

4. Modify the license for the/etc/X11/xinit/xinitrc file:

# Chmod 755/etc/X11/xinit/xinitrc

5. Restart the service

# Vnc4server

 

Troubleshooting:

1. If you find that the resolution is not what you want after the VNC connection, you can use this command to modify the Resolution:

# Vncserver-geometry 800x600

 

Refer:

Http://blogold.chinaunix.net/u3/101323/showart.php? Id = 2486664

Http://hi.baidu.com/kbkiss/blog/item/9e0e15ca33e20182c9176825.html

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.