diff --git a/README.md b/README.md index e702cdc..5910117 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,11 @@ docker run -td \ -p 6080:6080 \ -e LOCALE= \ -e FILE= \ + -e VNC_PASS= \ bertlorenz/gnucash-novnc: ``` -Then access via http://localhost:6080 +Then access via http://localhost:6080. +Default Password is gnucash ### Locales The following locales are preinstalled diff --git a/startup.sh b/startup.sh index 5a7de1d..87f36cc 100644 --- a/startup.sh +++ b/startup.sh @@ -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