kcClone

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by kcClone

  1. I had a question before about how to use the CUPS docker with my HP 1018 printer. I figured it out so I decided to post the instructions for others (or for myself when I need it). I'm a linux and docker newbie so I'm sure others can improve on the instructions. General steps to make the USB only HP Laserjet 1018 printer a network printer using my unraid server and gfjardim CUPS docker 1) Install gfjardim CUPS docker. 2) I did setup my hp 1018 printer through the CUPS admin pages. Not sure if I should have done this step first or not but it worked. 3) Download the appropriate version of hplip from http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/. The hp-plugin command will tell you which version. Mine happened to be hplip-3.14.3-plugin.run. Note that I also had hp_laserjet_1018.plugin in the same directory just in case it needed it. 4) Get to the docker command prompt. docker exec -ti CUPS /bin/bash 5) Install the plugin by executing 'hp-plugin'. It should ask you for the location of the hplip-3.14.3-plugin.run file. Mine had errors during the download but it asked if I wanted to install anyway and it did what it was supposed to do. Here is where things get interesting because of my printer. The HP 1018 needs to have firmware downloaded to it everytime the printer turns on. So in my case I'll be leaving CUPS running but the printer will turn on/off during the day. Because of this I need to know when the printer is turned on so that I can run the 'hp-firmware' command automatically. I read some webpages that the docker doesn't receive udev events so for my purposes I just created a rule on the host unraid system to let the docker know to execute the hp-firmware command. 6) On the host computer (not in the CUPS docker), execute a command like this: "udevadm info -a -p /sys/class/usbmisc/lp0". This will give you a ton of items to create a udev rule that will be invoked when the printer is turned on. 7) Review this website to help write the rules: http://www.reactivated.net/writing_udev_rules.html Again on the host computer, I created the document: /etc/udev/rules.d/hp1018_printer.rules This document had the following line: ACTION=="add", SUBSYSTEM=="usbmisc", ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="4117", ATTRS{product}=="HP LaserJet 1018", RUN+="/usr/bin/docker exec CUPS /bin/sh -c '/usr/bin/hp-firmware -n -y3'" 9) Executed this command with the idea for the server to refresh its rules and take mine into account. "udevadm control -R" 10) Turned off/then back on the printer and it worked. 11) Created a printer on my windows 10 machine using these instructions: http://www.zedt.eu/tech/windows/installing-an-ipp-printer-in-windows-10/ It was not easy to get to this point (and frankly the printer/setup isn't really worth it now a days) but hopefully this will help someone else out.
  2. I use rclone to backup to b2 Sent from my iPhone using Tapatalk
  3. Even though I have a different printer (HP LaserJet 1018) I'm getting the same results. Looks like I need to install the plugin and install specific printer firmware but I'm not sure how to do that with Unraid. The instructions I've been able to find seem to work with various linux versions but not with unraid. Is this possible? Any help would be greatly appreciated.