In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
First, install the required software
Yum install-y xrdp
Yum install-y vnc*
Chkconfig xrdp on
Chkconfig vncserver on
Second, modify the configuration
An add user: useradd herry
b. Set the vnc authentication password: su-herry
: vncpasswd
c. Modify the configuration:
1. [root@cloud ~] # 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 will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of 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"
two。 Add to the firewall:
Vim / etc/sysconfig/iptables
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 3389-j ACCEPT
Restart the firewall: service iptabels restart
Third, the general server does not have a desktop environment, so you need to install a Chinese interface.
Yum groupinstall "Desktop"
Yum groupinstall "X Window System"
Yum groupinstall "Chinese Support"
Restart
Use windows to connect to linux remote desktops
Click mstsc on a.windows
b. Enter the liunx server Ip address and verify the user name and password (herry l426844@)
Five error handling: xrdp_mm_process_login_response: login failed
The cause of the problem: the remote Desktop is not closed correctly. Although the remote Desktop connection is closed on the windows system, the process on the linux is still running, resulting in the maximum number of connections and problems.
[root@cloud ~] # 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 the session setting: limit the maximum session to the big MaxSessions=50
The KillDisconnected=1; shuts down the session process each time the linux is disconnected.
Then restart / etc/init.d/xrdp restart to solve the problem.
six。 If you open it, there is only the background
Next we need to modify the vnc startup file, using the command:
Vi / .vnc/xstartup
After opening it, it is shown in the following figure
We need to comment out the line "x-window-manager &" in the figure above, and then add a line "gnome-session &" or "startkde &" below to indicate that we want to enable the GNOME desktop or the KDE desktop, respectively. Take the GNOME desktop as an example, the modified desktop is shown below:
Specific modification steps: after opening the file, click the insert button, and you can enter it. Add "#" before "x-window-manager &", then enter "gnome-session &", then click "Esc" to exit editing mode, and enter ": wq!" Just save the changes)
My machine:
[root@cloud] # 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. Log in successfully
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.