From 4cf77b6448dfb56402768b835ee7354eb677de6e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 18 Sep 2018 13:35:04 -0500 Subject: [PATCH] More Centos config --- README.md | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 8fb27fd..18d4baa 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,6 @@ Fork from [quadportnick/docker-cups-airprint](https://github.com/quadportnick/do This Ubuntu-based Docker image runs a CUPS instance that is meant as an AirPrint relay for printers that are already on the network but not AirPrint capable. I am running this on CentOS. I forked the original to add support for my Brother MFC-7840w printer, and use the latest Ubuntu base. -## Prereqs -* Install avahi on local host. - * `yum install avahi` - * `systemctl start avahi-daemon` - * `systemctl enable avahi-daemon` - ## Configuration ### Volumes: @@ -26,18 +20,26 @@ This Ubuntu-based Docker image runs a CUPS instance that is meant as an AirPrint ### Example run command: ``` docker run --name cups -p 631:631 --restart unless-stopped \ - -v /opt/cups/services:/services \ - -v /opt/cups/config:/config \ + -v :/services \ + -v :/config \ -v /var/run/dbus:/var/run/dbus \ -e CUPSADMIN="" \ -e CUPSPASSWORD="" \ chuckcharlie/cups-airprint-brother:latest ``` -## Using -CUPS will be configurable at http://[diskstation]:631 using the CUPSADMIN/CUPSPASSWORD when you do something administrative. +## Add and set up printer: +CUPS will be configurable at http://[diskstation]:631 using the CUPSADMIN/CUPSPASSWORD. + +## Install avahi on local host: +``` +yum install avahi +systemctl start avahi-daemon +systemctl enable avahi-daemon +``` +***This was the only way I was able to get /var/run/dbus to respond correctly in the container.*** ## Notes -* I had to run the [airprint-generate.py](/root/root/airprint-generate.py) script on the local host to get the avahi service file to generate. - * `python airprint-generate.py -H localhost -p 631 -u admin -d ` +I had to run the [airprint-generate.py](/root/root/airprint-generate.py) script on the local host to get the avahi service file to generate. +`python airprint-generate.py -H localhost -p 631 -u admin -d `