<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Verdana"><font size="-1">Hello Chris,<br>
<br>
Thanks for your reply.<br>
<br>
I have patched the /usr/lib/cups/backend/nxsmb script that you had
mentioned.<br>
<br>
and set SAMBA_MOUNT_SHARE_PROTOCOL="cifs" or
SAMBA_MOUNT_SHARE_PROTOCOL="both" , printing is not working but
file-sharing is working fine.<br>
<br>
On the nxsession,<br>
<br>
printer device uri = nxsmb://127.0.0.1:4000/cifs/HP<br>
<br>
After clicking the 'Printing Test Page', the following process were
starting,<br>
<br>
#ps aux|grep cups<br>
vivek 6594 0.0 0.0 5416 2364 ? S< 18:52 0:00 HP
1 vivek Test Page 1
job-uuid=urn:uuid:ca694775-8e64-3257-7f56-1e3b843f57bc
/home/vivek/.nx/C-tsrv-co-1000-0394C5E4B62F543CFCFF0D1434A8C5BE/cups/spool/d00001-001
<br>
vivek 6595 0.0 0.0 8376 2560 ? S< 18:52 0:00
/usr/lib/cups/backend//smb 1 vivek Test Page 1
job-uuid=urn:uuid:ca694775-8e64-3257-7f56-1e3b843f57bc <br>
<br>
In the ~home/.nx/C-SESSIONID/cups/error_log,<br>
<br>
E [24/Nov/2009:19:07:27 +0530] [Job 1] Connection failed:
NT_STATUS_BAD_NETWORK_NAME
<br>
E [24/Nov/2009:19:07:27 +0530] [Job 1] Unable to connect to CIFS host,
will retry in 60 seconds...<br>
<br>
but we are able to ping the windows client from Ubuntu server using
hostname.<br>
<br>
Server - Ubuntu 9.04<br>
Client - Windows XP - SP2 (nomachine's client) (AVG anti-virus is
running)<br>
<br>
Thanks,<br>
VIvek<br>
</font></font><br>
<a class="moz-txt-link-abbreviated" href="mailto:chris@ccburton.com">chris@ccburton.com</a>
wrote:
<blockquote
cite="mid:OF32C87501.DB7DE311-ON80257674.004299AE-80257674.0043B24E@ccburton.com"
type="cite"><br>
<br>
<tt><font size="2">Vivek <a class="moz-txt-link-rfc2396E"
href="mailto:vivek@visolve.com"><vivek@visolve.com></a> wrote on
17/11/2009
14:10:58:<br>
<br>
> Hi All,<br>
> <br>
> If any of you is using both printer and file sharing feature on <br>
> Windows client, please share your configurations here..<br>
> <br>
> I am using,<br>
> <br>
> Server - Ubuntu 9.04<br>
> Client - Windows XP professional</font></tt> <br>
<br>
<tt><font size="2">Uses cifs by default.</font></tt> <br>
<br>
<tt><font size="2"><br>
> <br>
> <br>
> ~vivek<br>
> <br>
> Vivek wrote: </font></tt> <br>
<tt><font size="2">> Hi,<br>
> <br>
> Server - Ubuntu 9.04<br>
> Client - Windows<br>
> <br>
> I am not able to use both printing and mounting at a time. If <br>
> SAMBA_MOUNT_SHARE_PROTOCOL="smbfs",<br>
</font></tt> <br>
<tt><font size="2">If you like. Both would be better.</font></tt> <br>
<br>
<tt><font size="2">> <br>
> Printing works. But unable to mount windows shares. Error " failed
<br>
> to mount. mount error. error(112) Host is down ".<br>
> <br>
> If SAMBA_MOUNT_SHARE_PROTOCOL="both" or <br>
> SAMBA_MOUNT_SHARE_PROTOCOL="cifs", we are unable to mount
the <br>
</font></tt> <br>
<tt><font size="2">With XP both=cifs</font></tt> <br>
<br>
<br>
<tt><font size="2">> windows sharing. but printing not works..<br>
</font></tt> <br>
<br>
<tt><font size="2">I think we need to guess you meant the mount works
but printing doesn't.</font></tt> <br>
<br>
<br>
<tt><font size="2">Did you patch /usr/lib/cups/backend/nxsmb ??</font></tt>
<br>
<br>
<br>
<tt><font size="2">--- /usr/lib/cups/backend/nxsmb 2009-10-03
16:26:24.000000000 +0100</font></tt> <br>
<tt><font size="2">+++ /usr/lib/cups/backend/nxsmb.patched 2009-10-03
17:22:54.000000000 +0100</font></tt> <br>
<tt><font size="2">@@ -18,6 +18,9 @@</font></tt> <br>
<tt><font size="2"> PROTOCOL=$(echo $DEVICE_URI | cut -d/ -f4)</font></tt>
<br>
<tt><font size="2"> PRINTER=$(echo $DEVICE_URI | cut -d/ -f5)</font></tt>
<br>
<br>
<tt><font size="2">+## patch to rewrite nxsmb:// as smb:// to make it
acceptable to smbspool</font></tt> <br>
<tt><font size="2">+DEVICE_URI=$(echo $DEVICE_URI | sed
"s|nxsmb://|smb://|g"
)</font></tt> <br>
<tt><font size="2">+</font></tt> <br>
<tt><font size="2"> if [ -z "$PRINTER" ] # old style setup</font></tt>
<br>
<tt><font size="2"> then</font></tt> <br>
<tt><font size="2"> echo "Warning: Not
using nxredir library. The DEVICE_URI is not in the right format."</font></tt>
<br>
<br>
<br>
<br>
<br>
<tt><font size="2">> <br>
> In the /home/user/.nx/C-**/cups/error_log, " unable to connect
cifs <br>
> host, will try in 60 seconds ".<br>
> <br>
> Is any workaround there ?<br>
> <br>
> Thanks in advance.<br>
> <br>
> Regards,<br>
> Vivek</font></tt> <br>
<tt><font size="2">> <br>
> <br>
> ________________________________________________________________<br>
> Were you helped on this list with your FreeNX
problem?<br>
> Then please write up the solution in the FreeNX Wiki/FAQ:<br>
> <br>
> </font></tt><a moz-do-not-send="true"
href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ"><tt><font
size="2">http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</font></tt></a><tt><font
size="2"><br>
> <br>
> Don't forget to check the NX Knowledge
Base:<br>
> </font></tt><a moz-do-not-send="true"
href="http://www.nomachine.com/kb/"><tt><font size="2">http://www.nomachine.com/kb/</font></tt></a><tt><font
size="2"> <br>
> <br>
> ________________________________________________________________<br>
> FreeNX-kNX mailing list --- <a
class="moz-txt-link-abbreviated" href="mailto:FreeNX-kNX@kde.org">FreeNX-kNX@kde.org</a><br>
> </font></tt><a moz-do-not-send="true"
href="https://mail.kde.org/mailman/listinfo/freenx-knx"><tt><font
size="2">https://mail.kde.org/mailman/listinfo/freenx-knx</font></tt></a><tt><font
size="2"><br>
> ________________________________________________________________<br>
> ________________________________________________________________<br>
> Were you helped on this list with your FreeNX
problem?<br>
> Then please write up the solution in the FreeNX Wiki/FAQ:<br>
> <br>
> </font></tt><a moz-do-not-send="true"
href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ"><tt><font
size="2">http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</font></tt></a><tt><font
size="2"><br>
> <br>
> Don't forget to check the NX Knowledge
Base:<br>
> </font></tt><a moz-do-not-send="true"
href="http://www.nomachine.com/kb/"><tt><font size="2">http://www.nomachine.com/kb/</font></tt></a><tt><font
size="2"> <br>
> <br>
> ________________________________________________________________<br>
> FreeNX-kNX mailing list --- <a
class="moz-txt-link-abbreviated" href="mailto:FreeNX-kNX@kde.org">FreeNX-kNX@kde.org</a><br>
> </font></tt><a moz-do-not-send="true"
href="https://mail.kde.org/mailman/listinfo/freenx-knx"><tt><font
size="2">https://mail.kde.org/mailman/listinfo/freenx-knx</font></tt></a><tt><font
size="2"><br>
> ________________________________________________________________</font></tt>
<pre wrap=""><hr size="4" width="90%">
________________________________________________________________
Were you helped on this list with your FreeNX problem?
Then please write up the solution in the FreeNX Wiki/FAQ:
<a class="moz-txt-link-freetext"
href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ">http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</a>
Don't forget to check the NX Knowledge Base:
<a class="moz-txt-link-freetext"
href="http://www.nomachine.com/kb/">http://www.nomachine.com/kb/</a>
________________________________________________________________
FreeNX-kNX mailing list --- <a class="moz-txt-link-abbreviated"
href="mailto:FreeNX-kNX@kde.org">FreeNX-kNX@kde.org</a>
<a class="moz-txt-link-freetext"
href="https://mail.kde.org/mailman/listinfo/freenx-knx">https://mail.kde.org/mailman/listinfo/freenx-knx</a>
________________________________________________________________</pre>
</blockquote>
</body>
</html>