• Business posts
  • Technology posts
  • Company site
  • SubscribeRSS

Printing to Windows Vista printer from Linux

Posted on August 20, 2007  by Mikko Ohtamaa
Filed Under cups, linux, lpd, printing, samba, sharing, smb, smb2, ubuntu, vista, windows

Today my head hurts. It appears that Linux clients cannot access Microsoft Windows Vista shares or printers, because Microsoft changed sharing protocol from SMB to SMB2 in Windows Vista. In theory, if the client doesn’t support SMB2, Vista server should fall back to old and faithful working SMB. In practice, Linux Samba clients have a bug (still in Ubuntu Feisty Fawn and Samba 3.0.24) and this doesn’t happen.

You get this error to CUPS logs:

E [20/Aug/2007:18:43:25 +0300] [Job 141]
No ticket cache found for userid=1000

E [20/Aug/2007:18:43:25 +0300] [Job 141]
Can not get the ticket cache for moo

E [20/Aug/2007:18:43:25 +0300] [Job 141]
Session setup failed: NT_STATUS_LOGON_FAILURE

E [20/Aug/2007:18:43:25 +0300] [Job 141]
Tree connect failed (NT_STATUS_ACCESS_DENIED)

E [20/Aug/2007:18:43:25 +0300] [Job 141]
Unable to connect to CIFS host, will retry in 60 seconds...

Even worse, CUPS and Gnome UI fail silently. The printer shows a status “still printing” and no error is reported to the user

You can still print to Windows Vista server if you install LPD printer sharing on Windows Vista. Both CUPS printer manager and Vista supports LPD protocol for printing. Follow these excellent instructions.

Now, back to the work after 3 hours of unneeded bang-my-head-to-wall.

EDIT: This seems to be fixed in Samba 3.0.25.

  • About

    Twinapex Blog is the voice of mobile and Internet experts. We tell tales about our exciting life in the world where communication methods convergence and you can access whatever information you wish, wherever, on whichever device you want.

    If you find us interesting and talented and you are looking for developers, please contact us and we might just be able to help you.

    Creative Commons License
    This work is licensed under a Creative Commons Attribution 3.0 Unported License.

  • Recently Written

  • PyDev, Python and system default Unicode encoding problem
  • Creating a drag’n’drop basket with jQueryUI
  • Mobile browser wars: Nokia microB vs. Firefox Fennec
  • Profiling PostgreSQL database
  • It will be damn big, and damn fast…
  • Black Friday was not sad for mobile commerce
  • Nokia N900, sports tracking and geotagging
  • PhoneGap ported on N900 (Maemo)
  • Do you really think 160 chars tells the story?
  • Installing Python Imaging Library (PIL) under virtualenv or buildout
  • Tags

  • aggregator analytics android api buildout c++ cms comic debug debugging developer django documentation eclipse extjs failure html iphone javascript jquery language linux mobile multilingual nokia php plone Plone (old) pys60 python release rss s60 seo series 60 setuptools sql subclipse symbian ubuntu usability virtualenv web web development zope
  • Monthly Archives

  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • February 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
 
© Twinapex Oy 2010 Log in