Skip to content

Instantly share code, notes, and snippets.

@Magicloud
Created September 21, 2020 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Magicloud/96e290252e045914ad1147a775cf599e to your computer and use it in GitHub Desktop.
Save Magicloud/96e290252e045914ad1147a775cf599e to your computer and use it in GitHub Desktop.
A systemd replacement for ArchLinux XFCE in container
#!/bin/bash
export LC_ALL=en_US.UTF-8
rm -f /run/dbus/pid
rm -f /var/run/xrdp-sesman.pid
rm -f /var/run/xrdp.pid
dbus-daemon --system
xrdp-sesman
xrdp
/usr/bin/sshd -D
# In user session, `xfsettingsd` is needed before `startxfce4`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment