You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update Dockerfile to create unprivileged user
Use an unprivileged user because Chrome refuses to run as root (unless the sandbox is deactivated which is not the best solution)
* Update docker instructions
The usage of a unprivileged user means we have to add some parameters
2.``docker run --expose 7123:7123 --device=/dev/bus/usb -v /some/place/to/persist:/app/userdata ghcr.io/bigjk/snd:master`` (change ``/some/place/to/persist`` to a folder where the user data should be persisted to)
91
-
3. Open ``http://127.0.0.1:7123`` in your favorite browser
90
+
2.``docker run -p 7123:7123 --device=/dev/bus/usb --group-add uucp -v /some/place/to/persist:/app/userdata ghcr.io/bigjk/snd:master``
91
+
1. change ``/some/place/to/persist`` to a folder where the user data should be persisted to
92
+
2. replace `/dev/bus/usb` with the device of your usb/serial printer
93
+
3. replace `uucp` with a group (or gid) allowed to read the device file (use `$(stat -c "%g" /dev/bus/usb)` to get the right group)
94
+
4. Open ``http://127.0.0.1:7123`` in your favorite browser
0 commit comments