This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
hardware:printer [2012/04/25 04:54] tkilla |
hardware:printer [2018/10/08 06:38] (current) tkilla [Linux Server Setup:] |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Howto: Print via network on a HP Color LaserJet CP1215 connected to linux ===== | ===== Howto: Print via network on a HP Color LaserJet CP1215 connected to linux ===== | ||
- | i discovered | + | I discovered |
- | once the drivers are installed locally in windows, they can be used over network! :-D \\ | + | Once the drivers are installed locally in windows, they can be used over network |
- | here's the recipe: | + | |
+ | Linux clients can print via network protocols, which are integrated in Cups | ||
- | == linux server setup: == | + | Here's the recipe: |
- | * get **cups** up and running: | ||
- | * hp says: **HPLIB** in debian repos is fine, but FIXME: massive color print probs | ||
- | * black print works perfect | ||
- | * you might try HP's linux drivers: http:// | ||
- | * share the usb printer via **samba** (nothing special) see **smb.conf** | ||
- | == windows(tm) client setup: == | + | ==== Linux Server Setup: ==== |
+ | |||
+ | Get **cups** up and running: | ||
+ | sudo apt install cups hplip | ||
+ | |||
+ | HP says: **hplip** in debian repos is fine | ||
+ | |||
+ | Black print works perfect, color prints are problematic with the open source drivers | ||
+ | |||
+ | You might try HP's linux drivers: http:// | ||
+ | |||
+ | **If you don't have a graphical environment on your server: run ' | ||
+ | \\ | ||
+ | Share the usb printer via **samba** (nothing special) see **smb.conf** \\ | ||
+ | \\ | ||
+ | Check the web-interface at http://< | ||
+ | \\ | ||
+ | You need a user for the admin pages. It's enough to add your user to the group " | ||
+ | \\ | ||
+ | usermod -aG lpadmin pi | ||
+ | \\ | ||
+ | The command cupsctl is useful to setup permissions and share or hide printers: | ||
+ | \\ | ||
+ | cupsctl --remote-admin --remote-any --share-printers | ||
+ | |||
+ | \\ | ||
+ | To use the printer from Linux clients over network, you just need **the URL of the printer**. There are various protocols and drivers. **The URL is listed in the printer page of the web-interface** and might look like this:\\ | ||
+ | \\ | ||
+ | Connection: | ||
+ | \\ | ||
+ | Use this URL to add a printer in your Linux desktop. Most times the printer setups find new printers automatically (via cups-browsed). \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | For better security, you can set various restrictions in / | ||
+ | \\ | ||
+ | < | ||
+ | Order allow, deny | ||
+ | Allow from 10.10.10.* | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | === windows(tm) client setup: === | ||
* boot XP [best in a virtual machine: e.g. virtualbox version from sun handles usb 2.0 devices perfectly ] | * boot XP [best in a virtual machine: e.g. virtualbox version from sun handles usb 2.0 devices perfectly ] | ||
* **get "full package" | * **get "full package" | ||
Line 23: | Line 61: | ||
* connect to the linux server printer share from explorer: | * connect to the linux server printer share from explorer: | ||
* now **windows asks for the driver files** and they are **available now from the previous local installation!** | * now **windows asks for the driver files** and they are **available now from the previous local installation!** | ||
- | * **choose " | + | * **choose " |
- | + | ||
- | \\ | + | |
- | == ++ == | + | |
+ | == +++ == | ||
* the windows driver contains 100s of profiles for all kind of papers | * the windows driver contains 100s of profiles for all kind of papers | ||
* color-prints work much better | * color-prints work much better | ||
* the "HP Toolbox" | * the "HP Toolbox" | ||
+ | |||
+ | == linux bugs == | ||
+ | |||
+ | * sometimes the printer stops to work - e.g. after system updates - with errors like " | ||
+ | * **FIX!: run ' | ||
- | \\ | ||
\\ | \\ | ||
tested on: debian wheezy + XP 32bit - 04.2012 | tested on: debian wheezy + XP 32bit - 04.2012 |