Skip to content

Instantly share code, notes, and snippets.

@HubKing
Last active May 1, 2022 09:18
Show Gist options
  • Select an option

  • Save HubKing/f48504e19e593bdefa7c332e74f82ee1 to your computer and use it in GitHub Desktop.

Select an option

Save HubKing/f48504e19e593bdefa7c332e74f82ee1 to your computer and use it in GitHub Desktop.

Revisions

  1. HubKing revised this gist May 1, 2022. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -22,4 +22,8 @@ git clone https://github.com/matt335672/pam_close_systemd_system_dbus
    sudo make install
    sudo nano /etc/pam.d/xrdp-sesman
    Add `session optional pam_close_systemd_system_dbus.so` above existing `session include`. Order matters.
    sudo reboot
    sudo reboot

    [Disable login screen sleep]
    Disable automatic sleep for a user, and then execute the following command with `username` replaced with the actual user ID.
    `IFS=$'\n'; for x in $(sudo -u username gsettings list-recursively org.gnome.settings-daemon.plugins.power); do eval "sudo -u gdm dbus-launch gsettings set $x"; done; unset IFS`
  2. HubKing revised this gist May 1, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -21,5 +21,5 @@ git clone https://github.com/matt335672/pam_close_systemd_system_dbus
    `cd pam_` (tab)
    sudo make install
    sudo nano /etc/pam.d/xrdp-sesman
    Add `session optional pam_close_systemd_system_dbus.so` above existing `session optional`. Order matters.
    Add `session optional pam_close_systemd_system_dbus.so` above existing `session include`. Order matters.
    sudo reboot
  3. HubKing created this gist Apr 30, 2022.
    25 changes: 25 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    [Enable AUR]
    Note: Don't do it with the `root` account. makepkg refuses to run under root.

    sudo pacman -S git base-devel
    sudo pacman -S git
    git clone https://aur.archlinux.org/yay.git
    cd yay
    makepkg -si

    [Enable RDP]
    Note: Assembled from various web sources including https://github.com/txhx38/manjaro-gnome-xrdp

    yay -S xrdp xorgxrdp
    sudo systemctl enable xrdp.service
    sudo systemctl enable xrdp-sesman.service
    sudo nano /etc/X11/Xwrapper.config
    Add `allowed_users=anybody` and save.
    nano ~/.xinitrc
    Add `exec dbus-launch --sh-syntax gnome-session` ands save.
    git clone https://github.com/matt335672/pam_close_systemd_system_dbus
    `cd pam_` (tab)
    sudo make install
    sudo nano /etc/pam.d/xrdp-sesman
    Add `session optional pam_close_systemd_system_dbus.so` above existing `session optional`. Order matters.
    sudo reboot