Skip to content

Commit

Permalink
enable vnc password protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert Lorenz committed Aug 23, 2017
1 parent 57bd0a1 commit 1c1a67f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ docker run -td \
-p 6080:6080 \
-e LOCALE=<your_LOCALE> \
-e FILE=<your_gnucash_file> \
-e VNC_PASS=<your_password> \
bertlorenz/gnucash-novnc:<tag>
```
Then access via http://localhost:6080
Then access via http://localhost:6080.
Default Password is gnucash

### Locales
The following locales are preinstalled
Expand Down
8 changes: 7 additions & 1 deletion startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@ then
export LC_ALL=$LOCALE
fi

#Define standard password
if [[ -z $VNC_PASS ]]
then
export VNC_PASS=gnucash
fi

#Startup
export DISPLAY=:1
export NOVNC=/opt/noVNC
Xvfb :1 -screen 0 1440x900x16 &
sleep 5
openbox-session&
x11vnc -display :1 -nopw -listen localhost -xkb -ncache 10 -ncache_cr -forever &
x11vnc -display :1 -nopw -listen localhost -passwd $VNC_PASS -xkb -ncache 10 -ncache_cr -forever &
ln -s $NOVNC/vnc.html $NOVNC/index.html && $NOVNC/utils/launch.sh --vnc localhost:5900 &
gnucash $FILE

0 comments on commit 1c1a67f

Please sign in to comment.