Windows accesses Ubuntu through VNC Remote Desktop

Source: Internet
Author: User

Windows accesses a Ubuntu device through VNC Remote Desktop: A WIN7 machine and a Ubuntu machine (both can be virtual machines or physical machines). Objective: remote Access to Ubuntu through VNC on Windows. Introduction:. VNC (VIrtual network Cumputing) is a remote access method in Linux. It consists of two parts: VNCServer and VNC Viewer. The VNCServer is installed on the controlled machine, and the VNC Viewer is installed on the master machine. For example, if you want to remotely access Ubuntu through windows, install VNC Viewer on windows as the master machine. Step 1. install vnc $ sudoapt-get install vnc4server on ubuntu. If you are prompted that the software package cannot be found, check the source address 2 in the software package set by the system. start vncserver on Ubuntu. There are two ways to create a vnc desktop: ① create a vnc desktop, the session number is automatically generated by vncserver $ vncserver mode ② create a vnc desktop with the specified session number $ vncserver: 2 <-------------- create a desktop with the specified session number 2. Note the colon: note with a space in front: When you start vncserver for the first time, you must enter a 6-character password, which will be used for remote logon. Xstartup 3. modify the remote login desktop configuration to a graphical interface. By default, remote access appears in terminal mode. To achieve the graphical interface, you need to change the settings: run $ gedit/root /. set vnc/xstartup :#! /Bin/sh # Uncomment the following two lines fornormal desktop: (remove the following two lines # You can use the 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" & # twm & --- comment out the two lines, after the gnome-session & configuration file is modified, kill the running service, vncserver-kill: 1, restart vnc service vncserver restart, and then run vncserver. log on to the desktop using VncViewer in windows http://www.realvnc.com/download/viewer/ Download the VncViewer program and enter the VNC Server address: VNCServer ip Address: session number (for example, if my ubuntu ip address is 192.168.4.108 and the session number is 5, enter 192.168.4.108: 5) to connect, then enter the password set above. OK. Now the remote connection is successful. 5. Disable desktop sessions $ vncserver-kill space: session number (for example, $ vncserver-kill: 2)

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.