Created
August 16, 2022 23:20
-
-
Save auser/e7506345a32054da417557bedbcb7d7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/[email protected] | |
[Unit] | |
Description=Manage VNC Server on this droplet | |
After = syslog.target network.target | |
[Service] | |
Type=forking | |
PidFile = /home/auser/.vnc/%H:%i.pid | |
ExecPreStart=/usr/bin/tigervncserver -kill %i >/dev/null 2>&1 | |
ExecStart=/usr/bin/tigervncserver -depth 24 -geometry 1920x1080 -localhost %i | |
ExecStop = /usr/bin/tigervncserver -kill %i >/dev/null 2>&1 | |
User=auser | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
unset SESSION_MANAGER | |
unset DBUS_SESSION_BUS_ADDRESS | |
startxfce4 & | |
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup | |
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources | |
xsetroot -solid grey & | |
autocutsel -fork | |
#vncconfig -iconic & | |
dbus-launch --exit-with-session xfce4-session |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment