Initial VNC support

This commit is contained in:
Mitchell Syer
2023-01-02 23:20:23 +00:00
parent 57ac48b296
commit bdc689faa7
12 changed files with 295 additions and 43 deletions

View File

@@ -3,6 +3,31 @@ if [ ! -f /home/suwayomi/.local/share/Tachidesk/docker_touchfile ]; then
touch /home/suwayomi/.local/share/Tachidesk/docker_touchfile
curl -s --create-dirs -L https://raw.githubusercontent.com/Suwayomi/docker-tachidesk/main/server.conf -o /home/suwayomi/.local/share/Tachidesk/server.conf;
fi
if [ -z "$VNC_PASSWORD" ]; then
echo >&2 'warn: No password for VNC connection set, defaulting to "password".'
echo >&2 ' Did you forget to add -e VNC_PASSWORD=... ?'
export VNC_PASSWORD='password'
fi
if [ -z "$XFB_SCREEN" ]; then
export XFB_SCREEN=1024x768x24
fi
if [ ! -z "$XFB_SCREEN_DPI" ]; then
export DPI_OPTIONS="-dpi $XFB_SCREEN_DPI"
else
export DPI_OPTIONS=""
fi
# first we need our security cookie and add it to user's .Xauthority
mcookie | sed -e 's/^/add :0 MIT-MAGIC-COOKIE-1 /' | xauth -q
# now place the security cookie with FamilyWild on volume so client can use it
# see http://stackoverflow.com/25280523 for details on the following command
xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f /Xauthority/xserver.xauth nmerge -
echo ""
echo ""
echo " ************README***********"
@@ -15,8 +40,10 @@ echo "Tachidesk data location inside the container -> /home/suwayomi/.local/shar
echo ""
echo "The server is running by default configuration on http://localhost:4567"
if [ "${LOGGING:-file}" != "file" ]; then
exec java -jar "/home/suwayomi/startup/tachidesk_latest.jar";
export TACHIDESK_SDOUT="/dev/fd/1"
else
echo "log file location inside the container -> /home/suwayomi/.local/share/Tachidesk/logfile.log"
exec java -jar "/home/suwayomi/startup/tachidesk_latest.jar" > /home/suwayomi/.local/share/Tachidesk/logfile.log 2>&1;
export TACHIDESK_SDOUT="/home/suwayomi/.local/share/Tachidesk/logfile.log"
fi
exec supervisord -c /home/suwayomi/startup/supervisord.conf