User Tools

Site Tools


hardware:printer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hardware:printer [2018/10/08 06:33]
tkilla [Howto: Print via network on a HP Color LaserJet CP1215 connected to linux]
hardware:printer [2018/10/08 06:38] (current)
tkilla [Linux Server Setup:]
Line 11: Line 11:
  
  
-== Linux Server Setup: ==+==== Linux Server Setup: ==== 
 + 
  
 Get **cups** up and running: Get **cups** up and running:
Line 23: Line 24:
  
 **If you don't have a graphical environment on your server: run 'hp-setup -i' to install driver from in a terminal** **If you don't have a graphical environment on your server: run 'hp-setup -i' to install driver from in a terminal**
 +\\
 Share the usb printer via **samba** (nothing special) see **smb.conf** \\ Share the usb printer via **samba** (nothing special) see **smb.conf** \\
 +\\
 Check the web-interface at http://<hostname or ip>:631 - the printer should be there already. you can set default options and administrate it. \\ Check the web-interface at http://<hostname or ip>:631 - the printer should be there already. you can set default options and administrate it. \\
 +\\
 You need a user for the admin pages. It's enough to add your user to the group "lpadmin" (and maybe reboot): \\ You need a user for the admin pages. It's enough to add your user to the group "lpadmin" (and maybe reboot): \\
 +\\
   usermod -aG lpadmin pi   usermod -aG lpadmin pi
 +\\
 The command cupsctl is useful to setup permissions and share or hide printers: The command cupsctl is useful to setup permissions and share or hide printers:
 +\\
   cupsctl --remote-admin --remote-any --share-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:   \\ +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: hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ1WEZ1   Connection: hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ1WEZ1
 +\\
 Use this URL to add a printer in your Linux desktop. Most times the printer setups find new printers automatically (via cups-browsed). \\ Use this URL to add a printer in your Linux desktop. Most times the printer setups find new printers automatically (via cups-browsed). \\
- +\\ 
- +\\ 
-<Location /admin>+For better security, you can set various restrictions in /etc/cupsd.conf:\\ 
 +\\ 
 +  <Location /admin>
       Order allow, deny       Order allow, deny
       Allow from 10.10.10.*       Allow from 10.10.10.*
-</Location>+  </Location>
  
 +\\
 +\\
  
-== windows(tm) client setup: ==+=== 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" of drivers** & "HP toolbox": http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?cc=de&lc=de&dlc=de&product=3422476works)   * **get "full package" of drivers** & "HP toolbox": http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?cc=de&lc=de&dlc=de&product=3422476works)
hardware/printer.1538973217.txt.gz · Last modified: 2018/10/08 06:33 by tkilla