From 179cbd5bfc9a3873c7c97d325b66690381929a62 Mon Sep 17 00:00:00 2001 From: Michael Helfrich Date: Fri, 30 Jun 2023 23:54:28 -0400 Subject: [PATCH] CHANGE: Add support for VNC viewers. --- Dockerfile | 5 +++++ README.md | 8 +++++++- supervisord.conf | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c48b8b..9d9bdf1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,8 +60,13 @@ RUN chmod +x /slic3r/get_latest_prusaslicer_release.sh \ COPY --from=easy-novnc-build /bin/easy-novnc /usr/local/bin/ COPY menu.xml /etc/xdg/openbox/ COPY supervisord.conf /etc/ + +# HTTP Port EXPOSE 8080 +# VNC Port +EXPOSE 5900 + VOLUME /configs/ VOLUME /prints/ diff --git a/README.md b/README.md index 7afca3a..664044f 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ To run this image, you can run the following command: `docker run --detach --vol This will bind `/configs/` in the container to a local volume on my machine named `prusaslicer-novnc-data`. Additionally it will bind `/prints/` in the container to `superslicer-novnc-prints` locally on my machine, it will bind port `8080` to `8080`, and finally, it will provide an environment variable to keep Prusaslicer happy by providing an `SSL_CERT_FILE`. +**Using a VNC Viewer** + +To use a VNC viewer with the container, the default port for X TigerVNC is 5900. You can add this port by adding `-p 5900:5900` to your command to start the container to open this port for access. + ## Links [Prusaslicer](https://www.prusa3d.com/prusaslicer/) @@ -27,4 +31,6 @@ This will bind `/configs/` in the container to a local volume on my machine name [GitHub Source](https://github.com/helfrichmichael/prusaslicer-novnc) -[Docker](https://hub.docker.com/r/mikeah/prusaslicer-novnc) \ No newline at end of file +[Docker](https://hub.docker.com/r/mikeah/prusaslicer-novnc) + +Buy Me A Coffee \ No newline at end of file diff --git a/supervisord.conf b/supervisord.conf index 8e31c7a..5aa188c 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -4,7 +4,7 @@ pidfile=/tmp/supervisord.pid [program:x11] priority=0 -command=/usr/bin/Xtigervnc -desktop "Prusaslicer" -localhost -rfbport 5900 -SecurityTypes None -AlwaysShared -AcceptKeyEvents -AcceptPointerEvents -AcceptSetDesktopSize -SendCutText -AcceptCutText :0 +command=/usr/bin/Xtigervnc -desktop "Prusaslicer" -rfbport 5900 -SecurityTypes None -AlwaysShared -AcceptKeyEvents -AcceptPointerEvents -AcceptSetDesktopSize -SendCutText -AcceptCutText :0 autorestart=true redirect_stderr=true