Skip to content

Instantly share code, notes, and snippets.

@schartz
Last active May 9, 2024 07:03
Show Gist options
  • Save schartz/0d72f51b03ef294f83e503c6181869f7 to your computer and use it in GitHub Desktop.
Save schartz/0d72f51b03ef294f83e503c6181869f7 to your computer and use it in GitHub Desktop.

Revisions

  1. schartz revised this gist May 9, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ Uninstall any old installations of xrdp xorgxrdp
    yay -Rncs xrdp-git xrdp-git-debug xorgxrdp-git xorgxrdp-git-debug
    ```

    Instal xrdp and xorgxrdp
    Install xrdp and xorgxrdp
    ```
    yay -S xrdp xorgxrdp
    ```
  2. schartz renamed this gist May 9, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. schartz created this gist May 9, 2024.
    57 changes: 57 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    Uninstall any old installations of xrdp xorgxrdp
    ```
    yay -Rncs xrdp-git xrdp-git-debug xorgxrdp-git xorgxrdp-git-debug
    ```

    Instal xrdp and xorgxrdp
    ```
    yay -S xrdp xorgxrdp
    ```

    Make `libtool` finish it's job
    ```
    libtool --finish /usr/lib
    libtool --finish /usr/lib/xrdp
    libtool --finish /usr/lib/xorg/modules
    libtool --finish /usr/lib/xorg/modules/drivers
    libtool --finish /usr/lib/xorg/modules/input
    ```

    Enable services for xrdp
    ```
    sudo systemctl enable xrdp xrdp-sesman
    ```

    Add following lines in `/etc/X11/Xwrapper.config` if not already there
    ```
    allowed_users=anybody
    needs_root_rights=no
    ```
    Change the value of `param` key in `/etc/xrdp/sesman.ini` if not already there
    ```
    param=/usr/lib/Xorg
    ```

    Add following line at the end of `~/.xinitrc` if not already there
    ```
    /usr/lib/plasma-dbus-run-session-if-needed startplasma-x11
    ```

    Optionally, to avoid frequeent password prompts in RDP create a file `/etc/polkit-1/rules.d/45-colord.rules` if not already there
    and add following line in it:
    ```
    polkit.addRule(function(action, subject) {
    if ((action.id == "org.freedesktop.color-manager.create-device" ||
    action.id == "org.freedesktop.color-manager.create-profile") &&
    subject.isInGroup("wheel"))
    {
    return polkit.Result.YES;
    }
    });
    ```

    Lastly, reboot the system
    ```
    sudo /sbin/reboot now
    ```