読者です 読者をやめる 読者になる 読者になる

CentOS7でxrdpを使う

CentOS7でxrdp(+Xfce )を使う手順メモ

sudo yum -y install epel-release
#sudo yum -y group install "GNOME Desktop"
sudo yum -y --enablerepo=epel groupinstall Xfce
sudo yum -y install xrdp
sudo systemctl enable xrdp

#https://bugzilla.redhat.com/show_bug.cgi?id=1177202
sudo chcon -t bin_t /usr/sbin/xrdp /usr/sbin/xrdp-sesman

#http://hiroom2.jimdo.com/2015/06/13/xrdp%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E6%96%B9%E6%B3%95/#sec-3-2

cat > ~/.Xclients <<EOF
#!/bin/bash
exec xfce4-session
EOF
chmod +x ~/.Xclients