Project

General

Profile

Support #610

Network Shared Printer With a Raspberry Pi on Arch

Added by Daniel Curtis over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Print Server
Target version:
Start date:
04/30/2015
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:

Description

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

Prepare the Environment

  • Make sure the system is up to date:
    pacman -Syu
    
  • Install cups, samba, and some dependencies:
    pacman -S cups ghostscript gsfonts samba splix
    
    • (Optional) Add a few optional packages:
      pacman -S foomatic-db foomatic-db-engine foomatic-db-nonfree gutenprint
      
  • Start and enable cups at boot:
    systemctl enable org.cups.cupsd.service
    systemctl start org.cups.cupsd.service
    
  • (Optional) Connect to the web interface with an ssh tunnel:
    ssh -L 6310:localhost:631 printer.example.com
    
  • Install Dymo CUPS Driver:
    yaourt dymo-cups-driver
    

    NOTE: Edit the PKGBUILD file and add armv7h to the arch parameter:
    arch=('i686' 'x86_64' 'armv6h' 'armv7h')
    
  • 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 by the splix package installed earlier; and the DYMO LabelWriter 450 Twin Turbo driver provided by the Dymo CUPS driver package.

Adding Printers to a Windows Workstation

At this point the printer can be shared to another computer.

  1. This is done by going to Control Panel -> Devices and Printers -> Add Printer and choosing Add Network Printer.
  2. 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.

Setup Windows Shared Printing

  • Create a new samba config file:
    cp /etc/samba/smb.conf.sample /etc/samba/smb.conf
    
  • Edit the samba config:
    nano /etc/samba/smb.conf
    
    • And add/modify the following parameter:
      [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
      
  • Start and enable samba at boot:
    systemctl enable samba.service
    systemctl start samba.service
    

Resources

#1

Updated by Daniel Curtis over 9 years ago

  • Description updated (diff)
  • Category set to Print Server
  • Status changed from New to In Progress
#2

Updated by Daniel Curtis over 9 years ago

  • Subject changed from Network Shared Printer With a Raspberry Pi 2 on Arch to Network Shared Printer With a Raspberry Pi on Arch
  • Description updated (diff)
  • % Done changed from 0 to 30
#3

Updated by Daniel Curtis over 9 years ago

  • Description updated (diff)
#4

Updated by Daniel Curtis over 9 years ago

  • Description updated (diff)
#5

Updated by Daniel Curtis over 9 years ago

  • Description updated (diff)
  • % Done changed from 30 to 100
#6

Updated by Daniel Curtis over 9 years ago

  • Status changed from In Progress to Resolved
#7

Updated by Daniel Curtis over 9 years ago

  • Status changed from Resolved to Closed
#8

Updated by Daniel Curtis over 9 years ago

  • Description updated (diff)
#9

Updated by Daniel Curtis over 8 years ago

  • Description updated (diff)

Also available in: Atom PDF