Sunday, March 3, 2019

ubuntu 18.04 / 20.04 xrdp

download 18.04 server ISO
use unetbootin 661 write USB
Install w/o any server package (minimal)

$sudo apt update
$lsb_release -a
$hostname -I
$hostname
$getconf LONG_BIT
$sudo apt-get install xrdp
$sudo apt update
$sudo apt-get install mate-core
$sudo apt-get install mate-desktop-environment
$sudo su
#sed -i.bak '/fi/a #xrdp multiple users configuration \n mate-session \n' /etc/xrdp/startwm.sh
#exit
$diff xrdp/startwm.sh /etc/xrdp/startwm.sh
$sudo ufw allow 3389/tcp
$sudo /etc/init.d/xrdp restart


From Windows 10, mstsc (remote desktop) can connect to the server

Ubuntu 20.04
https://github.com/neutrinolabs/xrdp/issues/1358
$sudo apt-get install xrdp
$sudo systemctl enable --now xrdp
$sudo ufw allow from any to any port 3389 proto tcp

unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
. $HOME/.profile

By adding the above lines just before the test and exec in /etc/xrdp/startwm.sh, I also added the #!/bin/bash to the top of the file - also doing a chmod after you've changed the file is what some users might be forgetting.



Basically adding the line:
X-GNOME-Autostart-enabled=false
To the files:
/etc/xdg/autostart/spice-vdagent.desktop
/usr/share/gdm/autostart/LoginWindow/spice-vdagent.desktop

Then stop and disable the service:
$ sudo systemctl stop spice-vdagentd
$ sudo systemctl disable spice-vdagentd


$ systemctl status colord
● colord.service - Manage, Install and Generate Color Profiles
   Loaded: loaded (/lib/systemd/system/colord.service; static; vendor preset: enabled)
   Active: active (running) since Sun 2020-05-24 11:49:50 EDT; 1h 8min ago
 Main PID: 2252 (colord)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/colord.service
           └─2252 /usr/lib/colord/colord

May 24 11:50:50 u18ai colord[2252]: failed to get seat for session c3 [pid 2871]: No data available
May 24 11:50:50 u18ai colord[2252]: failed to get seat for session c3 [pid 3071]: No data available
May 24 11:53:07 u18ai colord[2252]: failed to get seat for session c4 [pid 3517]: No data available
May 24 11:53:08 u18ai colord[2252]: failed to get seat for session c4 [pid 3668]: No data available
May 24 12:11:24 u18ai colord[2252]: failed to get seat for session c5 [pid 4923]: No data available
May 24 12:11:24 u18ai colord[2252]: failed to get seat for session c5 [pid 5081]: No data available
May 24 12:55:35 u18ai colord[2252]: failed to get seat for session c6 [pid 6575]: No data available
May 24 12:55:35 u18ai colord[2252]: failed to get seat for session c6 [pid 6719]: No data available
May 24 12:56:08 u18ai colord[2252]: failed to get seat for session c7 [pid 7190]: No data available
May 24 12:56:09 u18ai colord[2252]: failed to get seat for session c7 [pid 7352]: No data available
$ sudo apt install snmp-mibs-downloader
$ sudo systemctl restart colord
● colord.service - Manage, Install and Generate Color Profiles
   Loaded: loaded (/lib/systemd/system/colord.service; static; vendor preset: enabled)
   Active: active (running) since Sun 2020-05-24 12:59:50 EDT; 2s ago
 Main PID: 11270 (colord)
    Tasks: 9 (limit: 4915)
   CGroup: /system.slice/colord.service
           ├─11270 /usr/lib/colord/colord
           └─11283 /usr/lib/colord/colord-sane

May 24 12:59:50 u18ai systemd[1]: Starting Manage, Install and Generate Color Profiles...
May 24 12:59:50 u18ai systemd[1]: Started Manage, Install and Generate Color Profiles.

No comments:

Post a Comment