diff --git a/bin/headlessvnc b/bin/headlessvnc index 2ea4362..426bbf3 100755 --- a/bin/headlessvnc +++ b/bin/headlessvnc @@ -42,8 +42,10 @@ is_running() { start() { if ! is_running; then set -e - vncserver > /dev/null - echo 'export DISPLAY=:1;' + vncserver \ + -localhost \ + -alwaysshared \ + -securitytypes none else error "The VNC server is already running!" 4 fi