mirror of
https://github.com/tiyn/wiki.git
synced 2025-10-27 00:31:16 +01:00
docker-image folder added
The docker-images where scattered across different files. For faster access i moved them to an extra folder and linked them if they're needed elsewhere. entries that where outside this folder and only contained basic documentation of the docker image where removed.
This commit is contained in:
43
wiki/cups.md
43
wiki/cups.md
@@ -1,49 +1,12 @@
|
||||
# Cups
|
||||
|
||||
## Setup Server with Docker
|
||||
## Server
|
||||
|
||||
The official container and documentation was made by [olbat](https://hub.docker.com/r/olbat/cupsd).
|
||||
|
||||
### Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| --------------- | --------------- | ------------------------------- |
|
||||
| `cups` | `/etc/cups` | configuration for printers, etc |
|
||||
| `/var/run/dbus` | `/var/run/dbus` | connection to host dbus |
|
||||
|
||||
### Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------------- |
|
||||
| `631` | `631` | TCP | cups server webui |
|
||||
|
||||
### Additional
|
||||
|
||||
The default username is `print`, the default password is `print`.
|
||||
|
||||
### Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop cups
|
||||
docker rm cups
|
||||
docker pull olbat/cupsd:latest
|
||||
docker run --name cups \
|
||||
--restart unless-stopped \
|
||||
--net=host \
|
||||
-p 631:631 \
|
||||
-v /var/run/dbus:/var/run/dbus \
|
||||
-v cups:/etc/cups/ \
|
||||
-d olbat/cupsd:latest
|
||||
```
|
||||
A server can be setup via docker with the [linuxserver image](./docker-images/linuxserver_-_airsonic.md).
|
||||
|
||||
## Client
|
||||
|
||||
For Linux computers follow the guide below:
|
||||
For Linux computers follow these instructions:
|
||||
|
||||
- Install the cups-client package (in Arch Linux it is included in `cups`)
|
||||
- Edit `/etc/cups/client.conf` and insert `ServerName <ip to print-server>:631`
|
||||
|
||||
Reference in New Issue
Block a user