Linux Remote Connection Desktop notes

Source: Internet
Author: User

Linux Remote Connection Desktop notes

VI after editing the input: input Wq Save and exit

Purpose: To connect a Linux system remotely to a Windows-side graphic.

1, the first need to install Vncserver in Linux, in general, the system is installed by default

[Email protected] ~]# rpm-q vnc-server

vnc-server-4.1.2-14.el5_5.4

If not installed, you can install Yum

[email protected] ~]# Yum install Vnc-server

If the system already has, there will be a newer version of the implementation, you can choose to install.

2, setting up VNC

The first time you run Vncserver after installation, you will be asked to set the password for the client connection.

[Email protected] root]# Vncserver

You'll require a password to access your desktops.

Password: Set the password here----in order not to want anyone can remotely control this computer. Therefore, when you start the VNC server for the 1th time, you will be asked to set the password for the network remote. This is your login VNC password must be safe enough. It seems like where the article says you can configure the user. But 80% of people don't get used to differentiating users. Because VNC can be a virtual n-desktop. Rattling, with Linux users are very good and powerful.

Creating default startup script/root/. Vnc/xstartup

Starting applications specified in/root/. Vnc/xstartup

Log file is/root/. Vnc/linux:1.log

3. Set the Xstarup file

Above, Creating default startup Script/root/.vnc/xstartup indicates that a apocalypse script file was created

We need to set the remote Environment parameters.

Open the file as follows:

[Email protected] ~]# Vi/root/.vnc/xstartup

1 #!/bin/sh

2

3 # Uncomment the following-lines for normal desktop:

4 unset Session_manager <--This line begins with a comment symbol #, which is removed.

5 exec/etc/x11/xinit/xinitrc with upstream.

6

7 [-x/etc/vnc/xstartup] && Exec/etc/vnc/xstartup

8 [-R $HOME/. Xresources] && Xrdb $HOME/. Xresources

9 Xsetroot-solid Grey

Ten Vncconfig-iconic &

Xterm-geometry 1024x768+10+10-ls-title "$VNCDESKTOP Desktop" & <--1024*768 is the screen resolution that is displayed remotely. Can be changed according to their own needs.

#twm & <--This line is the default graphics window, commenting on it.

Gnome-session & <--This line is a new addition, that is, the client is connected to the window manager used, if the graphics environment is KDE, can also write KDE

When set, save exit.

      • This article is from: Linux Learning Tutorial Network

Linux Remote Connection Desktop notes

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.