diff --git a/wiki/cups.md b/wiki/cups.md index 7ddec93..d96f024 100644 --- a/wiki/cups.md +++ b/wiki/cups.md @@ -29,16 +29,24 @@ 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 + --restart unless-stopped \ + --net=host \ + -p 631:631 \ + -v /var/run/dbus:/var/run/dbus \ + -v cups:/etc/cups/ \ + -d olbat/cupsd:latest ``` + +## Client Setup + +- Install the cups-client package (in Arch Linux it is included in `cups`) +- Edit `/etc/cups/client.conf` and insert `ServerName :631` +- Restart the cups service: `systemctl restart cups` +- Test connectivity: `lpstat -r` +- Check the detected printers with: `lpstat -v`