File:  [NetBSD Developer Wiki] / wikisrc / users / jruoho / clp-315w.mdwn
Revision 1.6: download - view: text, annotated - select for diffs
Wed Jun 8 14:49:32 2011 UTC (2 years, 10 months ago) by jruoho
Branches: MAIN
CVS tags: HEAD
Continue.

# Samsung CLP-315W on NetBSD

Samsung
[CLP-315W](http://www.amazon.com/Samsung-CLP-315W-Color-Laser-Printer/dp/B001BXS45I)
is a low-end color laser printer, featuring USB, Ethernet, and wireless
access. It works on NetBSD. A brief HOWTO follows.

For initial configuration, I used a NetBSD host and standard [[!template
id=man name="dhcpd" section="8"]].  The printer provides its own HTTP server
from which all standard configuration options are available.  Also IEEE
802.11 worked with a NetBSD router.  But unfortunately, a local host is
still required as the printer only speaks a non-standard format language.

The so-called
[foomatic](http://www.linuxfoundation.org/collaborate/workgroups/openprinting/databasefoomatic)
is a prerequisite. This is available from [[!template id=man name="pkgsrc"
section="7"]]:

	# cd /usr/pkgsrc/foomatic-filters
	# make install package clean

Samsung uses a special QPDL wire protocol, supported by
[foo2qpdl](http://foo2qpdl.rkkda.com/). For installation, fetch the
sources and compile:

	$ cd /tmp
	$ ftp http://foo2zjs.rkkda.com/foo2zjs.tar.gz
	$ cd foo2zjs
	$ gmake

If you have problems with the compilation, check the 'Makefile' for odd
'CFLAGS' possibly not yet supported by the NetBSD's [[!template
id=man name="cc" section="1"]].

I organized everything under '/usr/local'. From the compiled sources only
the following are required:

	# cp foo2qpdl /usr/local/bin
	# cp foo2qpdl-wrapper /usr/local/bin

	# cp foo2zjs /usr/local/bin
	# cp foo2zjs-pstops /usr/local/bin

Remember to adjust the permissions:

	# chown root:wheel /usr/local/bin/foo*
	# chmod 0555 /usr/local/bin/foo*

	# chown root:wheel /usr/local/share/*
	# chmod 0444 /usr/local/share/samsung*

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb