linux:remote-desktop:start

Linux remote desktops

sudo apt install xrdp
sudo systemctl restart xrdp
adduser xrdpuser
/etc/xrdp/xrdp.ini
max_bpp=16
xserverbpp=16
crypt_level=low
use_compression=yes
cd /etc/xrdp
openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 365
sudo xrdp-keygen xrdp auto 2048
sudo chmod +r rsakeys.ini

Eliminación de POPUPs de manejo de color:

sudo bash -c "cat >/etc/polkit-1/localauthority/50-local.d/45-allow.colord.pkla" <<EOF
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes
EOF
 
sudo bash -c "cat >/etc/polkit-1/localauthority/50-local.d/46-allow-update-repo.pkla" <<EOF 
[Allow Package Management all Users] 
Identity=unix-user:* 
Action=org.freedesktop.packagekit.system-sources-refresh;org.freedesktop.packagekit.system-network-proxy-configure 
ResultAny=yes 
ResultInactive=yes 
ResultActive=yes 
EOF
/etc/X11/XWrapper.config
allowed_users=anybody

Fixing theme:

#Backup the file before modifying it
sudo cp /etc/xrdp/startwm.sh /etc/xrdp/startwm.sh.griffon
sudo sed -i "4 a #Improved Look n Feel Method\ncat <<EOF > ~/.xsessionrc\nexport GNOME_SHELL_SESSION_MODE=$GNOME_SHELL_SESSION_MODE\nexport XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP\nexport XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS\nEOF\n" /etc/xrdp/startwm.sh
  • linux/remote-desktop/start.txt
  • Darrera modificació: 08/07/2022 04:12
  • per mate