CHANGE: Add support for VNC viewers.

This commit is contained in:
Michael Helfrich 2023-06-30 23:54:28 -04:00
parent 50d9c5920b
commit 179cbd5bfc
3 changed files with 13 additions and 2 deletions

View File

@ -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/

View File

@ -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)
[Docker](https://hub.docker.com/r/mikeah/prusaslicer-novnc)
<a href="https://www.buymeacoffee.com/helfrichmichael" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>

View File

@ -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