Centos uses rdp for remote desktop connection


--------------------Remote graphical interface access in centos 6.5 rdp---------------------- -----------------

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-*.rpm
yum install xrdp tigervnc-server
service xrdp start
chkconfig xrdp on
Then you can directly connect to the remote desktop, enter the user name and password.
service vncserver start   
vi /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
VNCSERVERS="2:work"
VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp -localhost"


apt-get install xrdp
apt-get install vnc4server
apt-get install xubuntu-desktop
echo "xfce4-session" >~/.xsession
service xrdp restart
------------------- ----------------------------
RDP remote graphical interface access on kali
-------------- ------------------------------
apt-get install xrdp
apt-get install vnc4server tightvncserver?
apt-get install xfce4
in /etc /xrdp/startwm.sh add xfce4-session >~/.xsession

vim  /etc/xrdp/startwm.sh

#Insert xfce4-session before
./etc/X11/Xsession #Restart xrdp
/etc/init.d/xrdp restart
Send the first connection will make an error, it doesn’t matter, just turn it off and connect again. If a choice appears, select xorg.

sslvpn_client_linux64 -c
sslvpn_client_linux64 -d          

-------------------------------------------------- ----------
Install rdp on centos 7
1. The following command lists the available environment groups:
yum grouplist
2. We can choose our favorite desktop environment, and choose to install the Xfce desktop here:
 yum -y install epel-release && yum groupinstall Xfce
  Note that the installation may not be successful on some operating system versions. You can use yum grouplist to view the corresponding desktop environment and choose to install.
You can also try the following commands:

3. Install Xrdp
yum -y install xrdp
4. After the installation is complete, set to boot and start xrdp
systemctl start xrdp && systemctl enable xrdp
5. Create ~/.Xclients and set the xfce4 desktop to start by default (if there is no command below, it cannot be remote Connect)
cd /root
 echo "xfce4-session"> ~/.Xclients
 chmod +x .Xclients
----------------------------- -----------------------------

 

Guess you like

Origin blog.csdn.net/wzlsunice88/article/details/113182395