Using Windows to call Linux Remote Desktop

Source: Internet
Author: User
Tags i18n

First, the installation of the necessary software

Yum Install-y xrdp

Yum Install-y vnc*

Chkconfig XRDP on

Chkconfig Vncserver on

Second, modify the configuration

A add User: Useradd Herry

B. Set VNC authentication password: su-herry

: vncpasswd

C. Modify the configuration:

1.[[email protected] ~]# vim/etc/sysconfig/vncservers

# The Vncservers variable is a list of display:user pairs.

#

# Uncomment the lines below to start a VNC server on Display:2

# as my ' myusername ' (adjust this to your own). You'll also

# need to set a VNC password; Run ' man vncpasswd ' to see how

# to does that.

#

# do not RUN the this SERVICE if your the local area network is

# untrusted! For a secure-to-a-to-a using VNC, see this URL:

# https://access.redhat.com/knowledge/solutions/7027

# use "-nolisten TCP" to prevent X connections to your VNC server via TCP.

# use "-localhost" to prevent remote VNC clients connecting except when

# Doing so through a secure tunnel. See the '-via ' option in the

# ' Man vncviewer ' manual page.

# vncservers= "2:myusername"

# vncserverargs[2]= "-geometry 800x600-nolisten tcp-localhost"

Vncservers= "2:herry"

vncserverargs[1]= "-geometry 1280x720-nolisten tcp-localhost"


2. In the firewall, add:

Vim/etc/sysconfig/iptables

-A input-m state--state new-m tcp-p TCP--dport 3389-j ACCEPT


Restart Firewall: Service iptabels restart


Third, the general server is no desktop environment, need to install the Chinese language interface

Yum Groupinstall "Desktop"

Yum groupinstall "X window System"

Yum Groupinstall "Chinese support"

Restart

Iv. using Windows to connect to Linux Remote Desktop

A.windows, Knock Mstsc.

B. Enter the LIUNX server IP address, and verify the username and password (herry [email protected])

Five error handling: appear Xrdp_mm_process_login_response:login failed

Problem reason: Remote Desktop does not shut down properly, although the Windows system shuts down the Remote Desktop Connection, but the process on Linux is still running, causing the number of connections to reach the limit, there is a problem.

[Email protected] ~]# Vim/etc/xrdp/sesman.ini

[Globals]

listenaddress=127.0.0.1

listenport=3350

Enableuserwindowmanager=1

userwindowmanager=startwm.sh

defaultwindowmanager=startwm.sh

[Security]

Allowrootlogin=1

Maxloginretry=4

Terminalserverusers=tsusers

Terminalserveradmins=tsadmins

[Sessions]

x11displayoffset=10

maxsessions=100

Killdisconnected=1

Idletimelimit=0

Disconnectedtimelimit=0

[Logging]

Logfile=/var/log/xrdp-sesman.log

Loglevel=debug

Enablesyslog=0

Sysloglevel=debug

[X11RDP]

Param1=-bs

Param2=-nolisten

Param3=tcp

[Xvnc]

Param1=-bs

Param2=-nolisten

Param3=tcp

Param4=-localhost

You can modify session settings: Limit the maximum session to this large maxsessions=50

Killdisconnected=1, and Linux shuts down the session process each time a connection is disconnected.

Then restart/ETC/INIT.D/XRDP Restart to solve the problem.

Six. If open, only the background is present

Below we need to modify the VNC boot file, using the command:

VI ~/.vnc/xstartup

Open as shown 650) this.width=650; "Src=" Https://s4.51cto.com/wyfs02/M01/98/0E/wKioL1k2qULTO_BdAAIjaneezh8982.png-wh_ 500x0-wm_3-wmp_4-s_3903392774.png "title=" 1.png "alt=" Wkiol1k2qulto_bdaaijaneezh8982.png-wh_50 "/>

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

We need to comment out the "X-window-manager &" line, then add a line below "Gnome-session &" or "Startkde &", respectively, to enable the GNOME desktop or the KDE desktop. Take the GNOME desktop as an example, as shown in the following changes:

Specific steps: After opening the file, click the Insert button, you can enter, in the "X-window-manager &" before adding "#", then enter "Gnome-session &", and then click "Esc" exit the edit mode, enter ": wq! " Save changes) 650) this.width=650; "Src=" Https://s4.51cto.com/wyfs02/M01/98/0E/wKioL1k2qVaSQDwSAAFIvQU1Rmg969.png-wh_ 500x0-wm_3-wmp_4-s_1663926657.png "title=" 2.png "alt=" Wkiol1k2qvasqdwsaafivqu1rmg969.png-wh_50 "/>

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

My machine:

[Email protected] ~]# VI ~/.vnc/xstartup

#!/bin/sh

[-r/etc/sysconfig/i18n] &&. /etc/sysconfig/i18n

Export LANG

Export Sysfont

Vncconfig-iconic &

Unset Session_manager

Unset dbus_session_bus_address

os= ' Uname-s '

if [$OS = ' Linux ']; Then

Case ' $WINDOWMANAGER ' in

*gnome*)

if [-e/etc/suse-release]; Then

Path= $PATH:/opt/gnome/bin

Export PATH

Fi

;;

Esac

Fi

if [-X/ETC/X11/XINIT/XINITRC]; Then

Exec/etc/x11/xinit/xinitrc

Fi

if [-F/ETC/X11/XINIT/XINITRC]; Then

EXEC sh/etc/x11/xinit/xinitrc

Fi

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

Xsetroot-solid Grey

Xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &

TWM &

Seven. Landing success

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/98/0D/wKiom1k2qXXTwpEAAABeFC1nsYk686.png-wh_500x0-wm_ 3-wmp_4-s_1783622038.png "style=" Float:none; "title=" 3.png "alt=" Wkiom1k2qxxtwpeaaabefc1nsyk686.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/98/0E/wKioL1k2qXvzaGHUAAwBZKdreCI189.png-wh_500x0-wm_ 3-wmp_4-s_2054216772.png "style=" Float:none; "title=" 4.png "alt=" Wkiol1k2qxvzaghuaawbzkdreci189.png-wh_50 "/>


This article is from the "Flying Small GUI" blog, make sure to keep this source http://9237101.blog.51cto.com/9227101/1932907

Using Windows to call Linux Remote Desktop

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.