There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Setting up XRDP (remote desktop server) on Pop OS

I am creating this post in order to document how I setup remote desktop on Pop OS.

The first step is to install xrdp


<span style="color:#323232;">sudo apt update
</span><span style="color:#323232;">sudo apt install xrdp -y
</span>

From there you need to create the security groups


<span style="color:#323232;">sudo groupadd tsusers
</span><span style="color:#323232;">sudo groupadd tsadmins
</span><span style="color:#323232;">sudo usermod -aG tsusers $USER
</span><span style="color:#323232;">sudo usermod -aG tsadmins $USER
</span>

The you need to edit /etc/xrdp/sesman.ini to enforce groups. Change AlwaysGroupCheck to true and disable root login.

From there you need to give xrdp permission.


<span style="color:#323232;">sudo adduser xrdp ssl-cert
</span>

Next you need to setup polkit rules.


<span style="color:#323232;">sudo bash -c "cat >/etc/polkit-1/localauthority/50-local.d/45-allow.colord.pkla" <<EOF
</span><span style="color:#323232;">[Allow Colord all Users]
</span><span style="color:#323232;">Identity=unix-user:*
</span><span style="color:#323232;">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
</span><span style="color:#323232;">ResultAny=no
</span><span style="color:#323232;">ResultInactive=no
</span><span style="color:#323232;">ResultActive=yes
</span><span style="color:#323232;">EOF
</span>

<span style="color:#323232;">sudo bash -c "cat >/etc/polkit-1/localauthority/50-local.d/46-allow-update-repo.pkla" <<EOF 
</span><span style="color:#323232;">[Allow Package Management all Users] 
</span><span style="color:#323232;">Identity=unix-user:* 
</span><span style="color:#323232;">Action=org.freedesktop.packagekit.system-sources-refresh;org.freedesktop.packagekit.system-network-proxy-configure 
</span><span style="color:#323232;">ResultAny=yes 
</span><span style="color:#323232;">ResultInactive=yes 
</span><span style="color:#323232;">ResultActive=yes 
</span><span style="color:#323232;">EOF
</span>

From there you need to setup the desktop. By default Gnome will start so you will need to set the pop desktop as default. To do this edit sudo nano /etc/xrdp/startwm.sh and add the following:


<span style="color:#323232;">export GNOME_SHELL_SESSION_MODE=pop
</span><span style="color:#323232;">export GDMSESSION=pop
</span><span style="color:#323232;">export XDG_CURRENT_DESKTOP=pop:GNOME
</span>

From there you can start xrdp.


<span style="color:#323232;">sudo systemmctl start xrdp
</span>

enjoy!

Sources:

c-nergy.be/blog/?p=16637

forum.level1techs.com/t/xrdp-on-popos-fix/163985

linuxize.com/…/how-to-install-xrdp-on-ubuntu-20-0…

askubuntu.com/…/ubuntu-22-04-xrdp-allow-multiple-…

JWBananas ,
@JWBananas@lemmy.world avatar

Calling it tsusers just feels wrong

possiblylinux127 OP ,

Terminal server users

Frederic ,

I’m using xrdp for years on MX (Debian) and never had to modify something after install, just

sudo apt install xorgxrdp

sudo apt install xrdp

and that’s it

possiblylinux127 OP ,

That’s not secure and for pop os you need additional configuration

lemmyvore ,

Then do VNC over Tailscale, or X2Go over SSH… seriously, anything would be faster than those instructions. Why is it so complicated?!

possiblylinux127 OP ,

Because I’m making it fill the role what historically was a Windows terminal server

acockworkorange ,

If you’re using X, then all you need is SSH. What’s the advantage of using another protocol layer?

lemmyvore ,

With X2go you can also forward sound and share printers and dirs.

acockworkorange ,

A-ha. Neat!

Frederic ,

I’m using it locally to access various PC so no problem

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines