Support #610
Network Shared Printer With a Raspberry Pi on Arch
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 yaourt
- 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
- (Optional) Add a few optional packages:
- 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
- And connect to http://localhost:6310 in a web browser.
- 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.
- 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.
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
- And add/modify the following parameter:
- Start and enable samba at boot:
systemctl enable samba.service systemctl start samba.service