CentOS安装XRDP实现远程桌面访问 [root@localhost ~]# yum install gcc pam-devel openssl-devel [root@localhost ~]# wget http://downloads.sourceforge.net/project/xrdp/xrdp/0.6.0/xrdp-v0.6.0.tar.gz [root@localhost ~]# tar xvf xrdp-v0.6.0.tar.gz [root@localhost ~]# cd xrdp-v0.6.0 [root@localhost xrdp-v0.6.0]# ./bootstrap [root@localhost xrdp-v0.6.0]# ./configure [root@localhost xrdp-v0.6.0]# make && make install xrdp启动 [root@localhost xrdp-v0.6.0]# /etc/xrdp/xrdp.sh start [root@chemitest init.d]# yum install vnc [root@chemitest init.d]# yum install vnc-server [root@chemitest init.d]# vim /etc/sysconfig/vncservers VNCSERVERS="2:root" VNCSERVERARGS[2]="-geometry 800x600 -query localhost" [root@chemitest init.d]# /etc/init.d/vncserver start 正在启动 VNC 服务器:2:root VNC password for user root is not configured [失败] [root@chemitest init.d]# vnc vncconfig vncpasswd vncserver vncviewer [root@chemitest init.d]# vncpasswd Password: Verify: [root@chemitest init.d]# /etc/init.d/vncserver start 正在启动 VNC 服务器:2:root xauth: creating new authority file /root/.Xauthority xauth: (stdin):1: bad display name "chemitest:2" in "add" command New ‘chemitest:2 (root)‘ desktop is chemitest:2 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/chemitest:2.log [确定]
原文地址:http://kingtigerhu.blog.51cto.com/2936525/1580862