Project

General

Profile

Support #610

Updated by Daniel Curtis about 9 years ago

This is a guide for setting up a network shared printer on Arch linux using a Raspberry Pi 2. If installing on an original Raspberry Pi, replace armv7h with armv6h accordingly. The printers used in this guide are A Samsung CLP-310 and a Dymo TwinTurbo 

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 pacman -Syu 
 </pre> 

 * Install cups, samba, and some dependencies: 
 <pre> 
 pacman -S cups ghostscript gsfonts samba splix 
 </pre> 

 * (Optional) Add a few optional packages: 
 <pre> 
 pacman -S foomatic-db foomatic-db-engine foomatic-db-nonfree gutenprint 
 </pre> 

 * Start and enable cups at boot: 
 <pre> 
 systemctl enable org.cups.cupsd.service 
 systemctl start org.cups.cupsd.service 
 </pre> 

 * (Optional) Connect to the web interface with an ssh tunnel: 
 <pre> 
 ssh -L 6310:localhost:631 printer.example.com 
 </pre> 
 #* And connect to http://localhost:6310 in a web browser. 

 * Install Dymo CUPS Driver: 
 <pre> 
 yaourt dymo-cups-driver 
 </pre> 
 *NOTE*: Edit the PKGBUILD file and add armv7h to the arch parameter: 
 <pre> 
 arch=('i686' 'x86_64' 'armv6h' 'armv7h') 
 </pre> 

 * Printers can be added in the *Administration* section. If prompted for a username/password, the local root account will work. Since I am using a Samsung CLP-310 printer, I will use the Samsung CLP-310, 2.0.0 driver provided supported by the splix package installed earlier; earlier. 

 h2. Install Printer Drivers 

 * Install Dymo CUPS Driver: 
 <pre> 
 yaourt dymo-cups-driver 
 </pre> 
 *NOTE*: Edit the PKGBUILD file and add armv7h to the DYMO LabelWriter 450 Twin Turbo driver provided by the Dymo CUPS driver package. arch parameter: 
 <pre> 
 arch=('i686' 'x86_64' 'armv6h' 'armv7h') 
 </pre> 

 * At this point the printer can be shared to another computer. In Windows this is done by going to +Control Panel -> Devices and Printers -> Add Printer+ and choosing *Add Network Printer*, then *Select a Shared printer by Name* and entering http://192.168.0.100:631/printers/Samsung_CLP-310-Series and then using any Samsung PS (PostScript) driver listed. 
 #* *NOTE*: I used the Samsung CLP-350 PS driver on Windows 7 and it worked perfect. 

 h2. Setup Windows Shared Printing 

 * Create a new samba config file: 
 <pre> 
 cp /etc/samba/smb.conf.sample /etc/samba/smb.conf 
 </pre> 

 * Edit the samba config: 
 <pre> 
 nano /etc/samba/smb.conf 
 </pre> 
 #* And add/modify the following parameter: 
 <pre> 
 [global] 
    workgroup = EXAMPLE 

 [printers] 
    comment = All Printers 
    path = /var/spool/samba 
    browseable = no 
    # Set public = yes to allow user 'guest account' to print 
    guest ok = yes 
    writable = no 
    printable = yes 

 [CLP-310] 
     comment=Samsung CLP-310 Printer 
     printer=clp-310 
     path=/var/spool/samba 
     printing=cups 
     printable=yes 
     printer admin=@admin root 
     user client driver=yes 
     # to allow user 'guest account' to print. 
     guest ok=yes 
     writable=no 
 </pre> 

 * Start and enable samba at boot: 
 <pre> 
 systemctl enable samba.service 
 systemctl start samba.service 
 </pre> 

 h2. Resources 

 * https://wiki.archlinux.org/index.php/CUPS 
 * https://wiki.archlinux.org/index.php/CUPS_printer-specific_problems 
 * https://wiki.archlinux.org/index.php/CUPS_printer_sharing 
 * http://superuser.com/questions/300986/ipp-printing-from-windows-7-ultimate

Back