From 199701c9faaaaf3fc74a7f8086be54967548261c Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sat, 31 Oct 2020 18:16:30 +0100 Subject: [PATCH] cups: added client setup --- wiki/cups.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) 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`