Windows 7 Remote Desktop Connection to Linux

Source: Internet
Author: User

Link: http://www.cnblogs.com/CoolPigs/archive/2012/03/22/2411319.html

Windows usually comes with the Remote Desktop Connection Tool (START-attachment-Remote Desktop link) for Remote Desktop windows, but if you want Remote Desktop Linux, this tool will become invalid.

We have recently set up the Windows 7 Remote Desktop Ubuntu environment as a result of work requirements.

Host System Configuration: Win7, 32bit

Server-side System Configuration: Ubuntu10.04.4 lts

Remote Desktop tools: VNC

1. Configure VNC Server in Ubuntu

1. Install vnc4server

Two methods:

Command Line: sudo apt-Get install vnc4server

Gui: install it in system> Administration> Synaptic Package Manager.

$ sudo apt-get install vnc4server

 

2. Set vnc4passwd

$ vnc4passwd

In $ home/. VNCDirectory to generate a passwd file.

$ Home/. VNCIs a Key Directory of vnc4server.

Hide the directory. You need to show hide files

 

3. Start vnc4server

$ vnc4server

Generate the following files in the./VNC directory:

###-Desktop: 1.log

###-Desktop: 1.pid

Xstartup

The desktop name is used for client connection.

If it is desktop: 1, enter: IP: 1 when connecting to the client;

For desktop 2, enter IP Address: 2 ....

When you run vnc4server for the first time, you will be prompted to generate the xstartup file, which contains some configurations when you log on to start X.

 

4. Restart vnc4server

$ vnc4server -kill :1$ vnc4server

Note: there is a space between "-Kill" and ": 1 ".

 

5. Additional important configurations

Log On from UltraVNC to obtain information on the Internet. A simple window may be displayed, because WM started by vnc4server is TWM by default. If you want to start gnome, you need to change. VNC/xstartup.

Before modification:

#!/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 grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop"& x-window-manager & 

After modification:

#!/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 grey # vncconfig -iconic & # x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop"& # x-window-manager & 

These two blogs are good, and we hereby reference:

Http://blog.csdn.net/huaciom/article/details/6198414

Http://blog.csdn.net/fisher_jiang/article/details/4192482

 

6. Multi-client Configuration

You only need to run vnc4server multiple times to generate multiple desktop IDs for multiple clients.

 

7. Set vnc4server to boot automatically

Add the vnc4server command to the etc/profile.

Reference http://wenku.baidu.com/view/56f7b05f804d2b160b4ec0da.html

2. Configure VNC client in win7

1. Download and install UltraVNC

Link: http://www.uvnc.com/component/jdownloads/summary/4/44.html

 

2. Fill in the Ubuntu IP address and the desktop PID you want to use, and click Connect

Enter the password set in vnc4passwd in the pop-up box to log on.

There is a problem: Some applications cannot be used at the same time

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.