SliTaz GNU/Linux official and community documentation wiki.
.png

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
en:guides:printer [2010/10/13 21:13]
seawolf tidy, add restarting tip
en:guides:printer [2010/10/15 19:22] (current)
linea add usb printer (fr translation)
Line 2: Line 2:
  
 The CUPS (Common Unix Printing System) software manages printers connected to the local computer or over a network. The local printers are attached via a loop-back connection (IP 127.0.0.1), a network connection pointing to the same system. The CUPS (Common Unix Printing System) software manages printers connected to the local computer or over a network. The local printers are attached via a loop-back connection (IP 127.0.0.1), a network connection pointing to the same system.
- 
-<note tip>If at the end of the procedures the printer is not working, restarting the service or computer may help.</​note>​ 
  
 ===== Installing a Network Printer ===== ===== Installing a Network Printer =====
Line 41: Line 39:
 </​code>​ </​code>​
  
-You should now be able to have access to the CUPS administration through your browser by entering the address ​//http://​localhost:​631//​/+You should now be able to have access to the CUPS administration through your browser by entering the address ​''<​nowiki>​http://​localhost:​631/​</nowiki>''​
  
 Install the printer drivers with the following packages: Install the printer drivers with the following packages:
Line 217: Line 215:
 </​file>​ </​file>​
  
-\\+<note tip>If at the end of the procedures the printer is not working, restarting the service or computer may help.</​note>​ 
 + 
 +===== Installing an USB Brother HL 2030 Printer ===== 
 + 
 +To install cups, hal-cups-utils,​ usbutils. As root, type: 
 + 
 +<​code>​ 
 +root@slitaz:#​ tazpkg get-install cups 
 +root@slitaz:#​ tazpkg get-install hal-cups-utils 
 +root@slitaz:#​ tazpkg get-install usbutils 
 +</​code>​ 
 + 
 +Cups is used to manage the printer, hal-cups-utils allows cups to use HAL for printer connections and usbutils gives us the lsusb utility which lets us know how the printer is connected. 
 + 
 +Now we can add tux to the lp (printer) group. As root, we do: 
 + 
 +<​code>​ 
 +root@slitaz:#​ addgroup tux lp 
 +</​code>​ 
 + 
 +For the web interface of cups to be properly activated, we still need to change a few things in the ///​etc/​cupsd.conf//​ file: 
 + 
 +<​code>​ 
 +root@slitaz:#​ leafpad /​etc/​cups/​cupsd.conf 
 +</​code>​ 
 + 
 + <​file>​ 
 +   # Administrator user group... 
 +   ​SystemGroup lp 
 +    
 +   # Restrict access to the admin pages... 
 +    
 +   Order allow,​deny 
 +   Allow 127.0.0.1 
 +    
 +    
 +   # Restrict access to configuration files... 
 +    
 +   ​AuthType Default 
 +   ​Require user @SYSTEM 
 +   Order allow,​deny 
 +   Deny From None 
 +   Allow From 127.0.0.1 
 + </​file>​ 
 + 
 +To modify permissions on the printer you need to know the details of the bus and device. For this, we do as root: 
 + 
 +<​code>​ 
 +root@slitaz:#​ lsusb 
 +</​code>​ 
 + 
 +And get the following output: 
 + 
 +<​code>​ 
 +   Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 
 +   Bus 001 Device 002: ID 04f9:0027 Brother Industries, Ltd HL-2030 Laser Printer 
 +</​code>​ 
 + 
 +You can now change the permissions on the associated file: 
 + 
 +<​code>​ 
 +root@slitaz:#​ chmod 666 /​dev/​bus/​usb/​001/​002 
 +</​code>​ 
 + 
 +And then start cups: 
 + 
 +<​code>​ 
 +root@slitaz:#​ /​etc/​init.d/​cupsd start 
 +</​code>​ 
 + 
 +We can now configure the printer and fetch the openprinting ppd file for that printer  
 +model: http://​www.openprinting.org/​printer/​Brother/​Brother-HL-2030 and also add the following  
 +packages: foomatic-filters foomatic-db foomatic-db-engine:​ 
 + 
 +<​code>​ 
 +root@slitaz:#​ tazpkg get-install foomatic-filters 
 +root@slitaz:#​ tazpkg get-install foomatic-db 
 +root@slitaz:#​ tazpkg get-install foomatic-db-engine 
 +</​code>​ 
 + 
 +Now we can restart cups and point midori to http://​localhost:​631 
 + 
 +Cups then asks for: 
 + 
 +- The login "​root"​ (default tux) 
 + 
 +- The corresponding password. 
 + 
 +Then navigate to > Printers > Add Printer > click on the printer name that you recognize and do not forget to indicate the path in the connection box: ///​dev/​bus/​usb/​001/​002//​ (in my case). 
 + 
 +Then go to the web interface of cups ppd and install the new printer using the file Brother HL-2030-hl1250.ppd located in the user's account. Now you can automatically restart cupsd each time you start the system by using System Tools (in the menu) -> Control box -> Initialization and allow the cupsd daemon to run by adding it to the 'Run daemons'​ section:  
 + 
 +<​file>​ 
 +dbus hald firewall slim cupsd 
 +</​file>​  
 ===== Installing a HP Printer ===== ===== Installing a HP Printer =====
  
Line 230: Line 323:
   - On my system, the printer does not show up in the browser under 'Find printers'​ and I get a '​Forbidden'​ error when trying to add a printer via the browser   - On my system, the printer does not show up in the browser under 'Find printers'​ and I get a '​Forbidden'​ error when trying to add a printer via the browser
   - Instead, run <​code>#​ hp-setup</​code>​ and follow the instructions. The test page should print correctly. The printer should also show up in the list of printers in applications (like the text editor) and will also appear in the list of printers on the CUPS browser pages, although in my case it is still not possible to make any changes to it   - Instead, run <​code>#​ hp-setup</​code>​ and follow the instructions. The test page should print correctly. The printer should also show up in the list of printers in applications (like the text editor) and will also appear in the list of printers on the CUPS browser pages, although in my case it is still not possible to make any changes to it
- 
- 
  
 ===== Installing a HP All-In-One Printer/​Scanner ===== ===== Installing a HP All-In-One Printer/​Scanner =====
Line 285: Line 376:
 ===== TODO ===== ===== TODO =====
  
-    * USB Printer 
     * Parallel Printer     * Parallel Printer
  
 
en/guides/printer.1286997199.txt.gz · Last modified: 2010/10/13 21:13 by seawolf