Skip to content

Instantly share code, notes, and snippets.

@StephenKing
Created May 21, 2014 13:36
Show Gist options
  • Save StephenKing/36c738e98004fc88bd24 to your computer and use it in GitHub Desktop.
Save StephenKing/36c738e98004fc88bd24 to your computer and use it in GitHub Desktop.
tightvncserver service
# /etc/init/tightvncserver.conf
# tightvncserver for ubuntu user
description "Starts TightVNC server for ubuntu user"
author "Steffen"
start on (filesystem
and started avahi-daemon
and (started dbus or runlevel [2345])
stop on runlevel [016]
post-start script
su ubuntu -c "/usr/bin/tightvncserver -geometry 640x480"
end script
post-stop script
killall Xtightvnc
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment