Linux/xrdp: Difference between revisions
< Linux
(→Ubuntu) |
(→CentOS) |
||
Line 58: | Line 58: | ||
#pampassword=ask | #pampassword=ask | ||
#pamsessionmng=127.0.0.1 | #pamsessionmng=127.0.0.1 | ||
-- issue -- | |||
X starts and exits immediately | |||
fix: | |||
/etc/X11/Xwrapper.config | |||
#allowed_users=console | |||
allowed_users=anybody | |||
ref: https://askubuntu.com/questions/1493373/ubuntu-22-04-lts-xrdp-terminates-with-there-is-no-x-server-active-on-display-10 | |||
=== CentOS === | === CentOS === |
Revision as of 10:10, 27 February 2025
xrdp
Ubuntu
sudo apt install xrdp sudo systemctl status xrdp sudo systemctl start xrdp
sudo systemctl restart xrdp
Specify session manager (as user):
echo "gnome-session" | tee .session # or echo "xfce4-session" | tee .session
Default windows manager
/etc/xrdp/startwm.sh
Logs:
/var/log/xrdp.log /var/log/xrdp-sesman.log
For port:
/etc/xrdp/xrdp.ini
[Globals] #port=3389 port=3390
For passwords see:
/etc/xrdp/xrdp.ini
[Xord] username=ask password=ask ip=127.0.0.1 port=-1
[Xvnc] username=ask password=ask ip=127.0.0.1 port=-1
[vnc-any] ip=ask port=ask5900 username=na password=ask
[neutrinordp-any] ip=ask port=ask3389 username=ask password=ask ; Uncomment the following lines to enable PAM authentication for proxy connections. #pamusername=ask #pampassword=ask #pamsessionmng=127.0.0.1
-- issue --
X starts and exits immediately
fix:
/etc/X11/Xwrapper.config
#allowed_users=console allowed_users=anybody
CentOS
yum install xrdp -y chkconfig --levels 35 xrdp on service xrdp start
Reference: http://www.linux.org/threads/rdp-into-your-linux-desktop.8/