Linux Server, Windows Client, cant print from CUPS to printer on windows.

ebazzana ebazzana at gmail.com
Mon Jul 23 12:19:00 PDT 2012


Hello, im trying to get working remote printing and cant do it.

I have 2 boxes, 1 linux debian, and 1 windows xp.
Linux box is a java app server, and im connecting remotely from windows box, and want to print on printer conected to windows client machine.

In Linux server i have free-nx NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.4.0), working.
In Windows XP, im conecting as client with NoMachine NX Client version 3.5.0-7.
Printer on windows client machine is working and shared.

When i start NX client on WinXP, i enable printer sharing (go to "configure" -> "Services" -> "Add" -> select printer, and set user/pass of an account on WinXp)

Start client remote session, printer is configured on CUPS and server is started. I go to CUPS admin page, and "Print Test Page", job is bloqued with "Connection failed: NT_STATUS_CONNECTION_REFUSED".

After enable logging capabilities, i see in error_log of CUPS:

D [22/Aug/2012:02:13:55 -0300] [Job 1] + exec /usr/lib/cups/backend/smb smb://natyeric:pass@127.0.0.1:445/PDFCreator 1 anonymous 'Test Page' 1 'job-uuid=urn:uuid:4963ba7e-5e2b-3b2d-5366-51a65e024647 job-originating-host-name=localhost time-at-creation=1345612435 time-at-processing=1345612435' /home/hp/.nx/C-hp-american-2003-0698DF717CB9B4B752BB11977B64DF6E/cups/spool/d00001-001

E [22/Aug/2012:02:13:55 -0300] [Job 1] Connection failed: NT_STATUS_CONNECTION_REFUSED

D [22/Aug/2012:02:13:55 -0300] [Job 1] Set job-printer-state-message to "Connection failed: NT_STATUS_CONNECTION_REFUSED", current level=ERROR


BUT, if run in a terminal the command copy-pasted from CUPS error_log:
/usr/lib/cups/backend/smb smb://natyeric:pass@127.0.0.1:445/PDFCreator 1 anonymous 'Test Page' 1 'job-uuid=urn:uuid:4963ba7e-5e2b-3b2d-5366-51a65e024647 job-originating-host-name=localhost time-at-creation=1345612435 time-at-processing=1345612435' /home/hp/.nx/C-hp-american-2003-0698DF717CB9B4B752BB11977B64DF6E/cups/spool/d00001-001
=> the print job is sent, and gets printed on WinXP client machine.

Summing up, the same print command, with same parameters, in CUPS get wrong, but in terminal works fine.

someone has any tip to get this working.
thanks, Eric.




More information about the cups mailing list