XRDP
Remote Desktop xrdp and vnc4session
SETUP with xrdp and vnc4session
1) install xrdp $ sudo apt-get xrdp
2) install a linux desktop environment sudo apt-get install xfce4
and sudo apt-get install vnc4server
3) restart xrdp session
sudo /etc/init.d/xrdp restart
- to view current session systemctl status xrdp
- to start session sudo service xrdp start
- to stop session sudo service xrdp stop
4) to get ip address of machine to connect to ip addr
or ip a
5) create .xsession in root directory. This creates the desktop environment to open echo "xfce4-session" > ~/.xsession
or echo "cinnamon-session" > ~/.xsession
- The `xfce4-session and cinnamon-session are names of executable application files that can be found at usr/bin
Note: xrdp settings can be found here: etc/xrdp/xrdp.ini
https://code.luasoftware.com/tutorials/linux/lubuntu-setup-remote-desktop-with-xrdp/
Ports
sudo ufw reset
configure xrdp for multiple sessions:
-
askubuntu - how-do-i-set-up-xrdp-session-that-reuses-an-existing-session
-
allow rdp port
sudo ufw allow 3389
to reset when not neededsudo ufw reset
.profile for shell sessions becuause android studeio is blank:
$ echo export _JAVA_AWT_WM_NONREPARENTING=1 >> ~/.profile
Remote Desktop Sessions
- Linux multi user remote desktop Reddit Question
- XRDP Installation: An Easy Remote Desktop Setup for Linux
-
XRDP – Enable multiple users to connect via xrdp – HowTo Configuration
- YouTube - gotbletu - xrdp - Remote Desktop into Linux using RDP - Linux CLI
Install xrdp on devices:
$ sudo apt-get install xrdp
Create user session files:
nano ~./xsession
Add to session
xfxe4-session
Start server
sudo service xrdp start
Get your username on the server using whoami
(stephenn)
get the ip address of the server
ip -a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp24s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 00:d8:61:59:88:db brd ff:ff:ff:ff:ff:ff
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether a4:c3:f0:c9:ca:ed brd ff:ff:ff:ff:ff:ff
inet 10.0.0.25/24 brd 10.0.0.255 scope global dynamic noprefixroute wlo1
valid_lft 593237sec preferred_lft 593237sec
inet6 2601:140:8780:a1f::e06/128 scope global dynamic noprefixroute
valid_lft 593239sec preferred_lft 593239sec
inet6 2601:140:8780:a1f:919:a824:3597:e832/64 scope global temporary dynamic
valid_lft 260883sec preferred_lft 74446sec
inet6 2601:140:8780:a1f:fba9:a789:a3ea:4e7b/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 260883sec preferred_lft 260883sec
inet6 fe80::8a4a:b57e:149d:add6/64 scope link noprefixroute
valid_lft forever preferred_lft forever
This is the ip address for the server (10.0.0.25)
net 10.0.0.25/24 brd 10.0.0.255 scope global dynamic
Linux: rdesktop is used on linux client that will be accessing the server Windows: use the windows remote desktop protocal
Get xrdp status
systemctl status xrdp