Windows远程kali Linux之xrdp

由于我的kali装在服务器中,服务器装的esxi6.5,采用web管理虚拟机,有一些快捷键,复制,粘贴等不太好用,于是想到了xrdp。

xrdp官网 http://www.xrdp.org/

Based on the work of FreeRDP and rdesktop, xrdp uses the remote desktop protocol to present a GUI to the user.
The goal of this project is to provide a fully functional Linux terminal server, capable of accepting connections from rdesktop, freerdp, and Microsoft's own terminal server / remote desktop clients.
Unlike Windows NT/2000/2003/2008/2012 server, xrdp will not display a Windows desktop but an X window desktop to the user.
Xrdp uses Xvnc or X11rdp to manage the X session. To learn about how xrdp currently works, click here and here.
For questions or comments please mail [email protected]
This project is released under the GNU Public License (GPL) for versions 0.7.0 and older.
All future versions will be released under the Apache 2.0 License.

linux配置

apt-get install xrdp

apt-get install xfce4

安装xrdp如果出现  unable to locate package xrdp

请参考这篇文章https://blog.csdn.net/qq_35428201/article/details/81227372进行调整

修改startwm.sh配置文件

vim /etc/xrdp/startwm.sh

 添加以下代码:

echo "xfce4-session" >~/.xsession

记得保存,然后退出

startvm.sh文件如下

#!/bin/sh
# xrdp X session start script (c) 2015, 2017 mirabilos
# published under The MirOS Licence

if test -r /etc/profile; then
        . /etc/profile
fi

if test -r /etc/default/locale; then
        . /etc/default/locale
        test -z "${LANG+x}" || export LANG
        test -z "${LANGUAGE+x}" || export LANGUAGE
        test -z "${LC_ADDRESS+x}" || export LC_ADDRESS
        test -z "${LC_ALL+x}" || export LC_ALL
        test -z "${LC_COLLATE+x}" || export LC_COLLATE
        test -z "${LC_CTYPE+x}" || export LC_CTYPE
        test -z "${LC_IDENTIFICATION+x}" || export LC_IDENTIFICATION
        test -z "${LC_MEASUREMENT+x}" || export LC_MEASUREMENT
        test -z "${LC_MESSAGES+x}" || export LC_MESSAGES
        test -z "${LC_MONETARY+x}" || export LC_MONETARY
        test -z "${LC_NAME+x}" || export LC_NAME
        test -z "${LC_NUMERIC+x}" || export LC_NUMERIC
        test -z "${LC_PAPER+x}" || export LC_PAPER
        test -z "${LC_TELEPHONE+x}" || export LC_TELEPHONE
        test -z "${LC_TIME+x}" || export LC_TIME
        test -z "${LOCPATH+x}" || export LOCPATH
fi

if test -r /etc/profile; then
        . /etc/profile
fi

echo "xfce4-session" >~/.xsession


test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession

 重启xrdp服务

service xrdp restart 

最后在windows上用mstsc链接

win+R  mstsc

猜你喜欢

转载自blog.csdn.net/qq_35428201/article/details/81229978