the corner office

a blog, by Colin Pretorius

« Happy Holidays and all that | Main | Earthquake »

# Samba printing

Another Google and posterity post... setting up a Windows 2000 machine to print through Linux, the Windows box's printer properties kept showing the error "Access denied, unable to connect" next to the newly-set up printer.

Courtesy of this page, I managed to get that fixed by adding the line use client driver = yes to the [printers] section of /etc/samba/smb.conf.

That caused the "Access denied" error message to go away, but still no luck printing. The samba log file was reporting the following error though:
[2004/12/29 12:52:03, 0] printing/print_cups.c:cups_job_submit(765)
Unable to print file to HP610C - client-error-document-format-not-supported
I got that solved thanks to this post. Basically, Windows clients will send data to the printer in "raw" format, which CUPS (the Linux printing system) should just pass on directly to the printer. The problem is, you have to tell CUPS to do that. In the /etc/cups/ directory, you have to tweak two files:

In mime.types, you have to uncomment (or add) the line application/octet-stream.

In mime.convs, you have to uncomment (or add) the line:
application/octet-stream        application/vnd.cups-raw        0       -
... and problem solved.

File under: linux : {2004.12.29 13:12}

Comments:

1. Graham Klyne (2005.05.20 - 18:35) #

Getting the admin interface to work

This page was helpful to me, but I discovered one other wrinkle that doesn't seem to be covered in other web articles about this topic.

Your instructions allowed me to print, but I still could not see the print queue from my Windows (XP) machine.

By adding the print commands to my smb.conf file, I found I could also access the adminstrative interface in the Windows "Printers and faxes" window:

print command = lpr -P %p -o raw %s -r
lpq command = lpstat -o %p
lprm command = cancel %p-%j

#g

2. Colin (2005.05.21 - 12:19) #

Thanks for the tip, Graham!

3. Hoze (2005.07.25 - 23:05) #

This page was most helpful and allowed me to have networking printing at my house. Good job.

4. Brent (2005.11.18 - 11:30) #

Thanks for the tip. It was a exactly what I needed

Add a comment

Your name (mandatory):

Your email:
Your email address is not displayed
Your home page:

Comment (sorry, no HTML):

Remember details?
Yes No

meta

-home-
about
contact
disclaimer
articles
code
tech blog

style: [?]
[plain.dark.blue]

Categories

java
linux
music
notes/domino
personal
politiek
studies
techie
thee_blog
world

RSS Feeds

rssfeed all posts
rssfeed all cmts
rssfeed tech posts
rssfeed tech cmts

Archives

2012.02
2012.01
2011.12
2011.11
2011.10
2011.09
2011.08
2011.07
2011.06
2011.05
2011.04
2011.03
2011.02
2011.01
2010.12
2010.11
2010.10
2010.09
2010.08
2010.07
2010.06
2010.05
2010.04
2010.03
2010.02
2010.01
2009.12
2009.11
2009.10
2009.09
2009.08
2009.07
2009.06
2009.05
2009.04
2009.03
2009.02
2009.01
2008.12
2008.11
2008.10
2008.09
2008.08
2008.07
2008.06
2008.05
2008.04
2008.03
2008.02
2008.01
2007.12
2007.11
2007.10
2007.09
2007.08
2007.07
2007.06
2007.05
2007.04
2007.03
2007.02
2007.01
2006.12
2006.11
2006.10
2006.09
2006.08
2006.07
2006.06
2006.05
2006.04
2006.03
2006.02
2006.01
2005.12
2005.11
2005.10
2005.09
2005.08
2005.07
2005.06
2005.05
2005.04
2005.03
2005.02
2005.01
2004.12
2004.11
2004.10
2004.09
2004.08
2004.07
2004.06
2004.05
2004.04
2004.03
2004.02
2004.01
2003.12
2003.11
2003.10
2003.09
2003.08
2003.07
2003.06

© Colin Pretorius