These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

7 months ago
7 months ago
7 months ago
7 months ago
  1. # Cups
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [olbat](https://hub.docker.com/r/olbat/cupsd).
  5. #### Volumes
  6. Set the following volumes with the -v tag.
  7. | Volume-Name | Container mount | Description |
  8. | ---------------- | --------------- | ------------------------------- |
  9. | cups | /etc/cups | configuration for printers, etc |
  10. | /var/run/dbus | /var/run/dbus | connection to host dbus |
  11. #### Ports
  12. Set the following ports with the -p tag.
  13. | Container Port | Recommended outside port | Protocol | Description |
  14. | -------------- | ------------------------ | -------- | ------------------ |
  15. | 631 | 631 | TCP | cups server webui |
  16. #### Additional
  17. The default username is `print`, the default password is `print`.
  18. #### Rebuild
  19. ```
  20. #!/bin/sh
  21. docker stop cups
  22. docker rm cups
  23. docker pull olbat/cupsd:latest
  24. docker run --name cups \
  25. --restart unless-stopped \
  26. --net=host \
  27. -p 631:631 \
  28. -v /var/run/dbus:/var/run/dbus \
  29. -v cups:/etc/cups/ \
  30. -d olbat/cupsd:latest
  31. ```