[FreeNX-kNX] Printing and sharing issue

Vivek vivek at visolve.com
Wed Nov 25 12:30:39 UTC 2009


Hi,

apparmour is not running...

Thanks,
Vivek

Marcelo Boveto Shima wrote:
> Hi,
>
> Maybe apparmour is blocking the connection.
> Try deactivating it and test.
>
> Regards,
> Marcelo
>
> On Tue, Nov 24, 2009 at 12:40 PM, Vivek <vivek at visolve.com> wrote:
>   
>> Hello Chris,
>>
>> Thanks for your reply.
>>
>> I have patched the /usr/lib/cups/backend/nxsmb script that you had
>> mentioned.
>>
>> and set SAMBA_MOUNT_SHARE_PROTOCOL="cifs" or
>> SAMBA_MOUNT_SHARE_PROTOCOL="both" , printing is not working but file-sharing
>> is working fine.
>>
>> On the nxsession,
>>
>> printer device uri = nxsmb://127.0.0.1:4000/cifs/HP
>>
>> After clicking the 'Printing Test Page', the following process were
>> starting,
>>
>> #ps aux|grep cups
>> 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
>> 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
>>
>> In the ~home/.nx/C-SESSIONID/cups/error_log,
>>
>> E [24/Nov/2009:19:07:27 +0530] [Job 1] Connection failed:
>> NT_STATUS_BAD_NETWORK_NAME
>> E [24/Nov/2009:19:07:27 +0530] [Job 1] Unable to connect to CIFS host, will
>> retry in 60 seconds...
>>
>> but we are able to ping the windows client from Ubuntu server using
>> hostname.
>>
>> Server - Ubuntu 9.04
>> Client - Windows XP - SP2 (nomachine's client) (AVG anti-virus is running)
>>
>> Thanks,
>> VIvek
>>
>> chris at ccburton.com wrote:
>>
>> Vivek <vivek at visolve.com> wrote on 17/11/2009 14:10:58:
>>
>>     
>>> Hi All,
>>>
>>> If any of you is using both printer and file sharing feature on
>>> Windows client, please share your configurations here..
>>>
>>> I am using,
>>>
>>> Server - Ubuntu 9.04
>>> Client - Windows XP professional
>>>       
>> Uses cifs by default.
>>
>>
>>     
>>> ~vivek
>>>
>>> Vivek wrote:
>>> Hi,
>>>
>>> Server - Ubuntu 9.04
>>> Client - Windows
>>>
>>> I am not able to use both printing and mounting at a time.  If
>>> SAMBA_MOUNT_SHARE_PROTOCOL="smbfs",
>>>       
>> If you like. Both would be better.
>>
>>     
>>> Printing works. But unable to mount windows shares. Error " failed
>>> to mount. mount error. error(112) Host is down ".
>>>
>>> If SAMBA_MOUNT_SHARE_PROTOCOL="both" or
>>> SAMBA_MOUNT_SHARE_PROTOCOL="cifs", we are unable to mount the
>>>       
>> With XP both=cifs
>>
>>
>>     
>>> windows sharing. but printing not works..
>>>       
>> I think we need to guess you meant the mount works but printing doesn't.
>>
>>
>> Did you patch /usr/lib/cups/backend/nxsmb   ??
>>
>>
>> --- /usr/lib/cups/backend/nxsmb     2009-10-03 16:26:24.000000000 +0100
>> +++ /usr/lib/cups/backend/nxsmb.patched 2009-10-03 17:22:54.000000000 +0100
>> @@ -18,6 +18,9 @@
>>  PROTOCOL=$(echo $DEVICE_URI | cut -d/ -f4)
>>  PRINTER=$(echo $DEVICE_URI | cut -d/ -f5)
>>
>> +## patch to rewrite nxsmb:// as smb:// to make it acceptable to smbspool
>> +DEVICE_URI=$(echo $DEVICE_URI | sed "s|nxsmb://|smb://|g" )
>> +
>>  if [ -z "$PRINTER" ] # old style setup
>>  then
>>         echo "Warning: Not using nxredir library. The DEVICE_URI is not in
>> the right format."
>>
>>
>>
>>
>>     
>>> In the /home/user/.nx/C-**/cups/error_log, " unable to connect cifs
>>> host, will try in 60 seconds ".
>>>
>>> Is any workaround there ?
>>>
>>> Thanks in advance.
>>>
>>> Regards,
>>> Vivek
>>>
>>>
>>> ________________________________________________________________
>>>      Were you helped on this list with your FreeNX problem?
>>>     Then please write up the solution in the FreeNX Wiki/FAQ:
>>>
>>> http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
>>>
>>>          Don't forget to check the NX Knowledge Base:
>>>                  http://www.nomachine.com/kb/
>>>
>>> ________________________________________________________________
>>>        FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>>>       https://mail.kde.org/mailman/listinfo/freenx-knx
>>> ________________________________________________________________
>>> ________________________________________________________________
>>>      Were you helped on this list with your FreeNX problem?
>>>     Then please write up the solution in the FreeNX Wiki/FAQ:
>>>
>>> http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
>>>
>>>          Don't forget to check the NX Knowledge Base:
>>>                  http://www.nomachine.com/kb/
>>>
>>> ________________________________________________________________
>>>        FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>>>       https://mail.kde.org/mailman/listinfo/freenx-knx
>>> ________________________________________________________________
>>>       
>> ________________________________
>> ________________________________________________________________
>>      Were you helped on this list with your FreeNX problem?
>>     Then please write up the solution in the FreeNX Wiki/FAQ:
>>
>> http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
>>
>>          Don't forget to check the NX Knowledge Base:
>>                  http://www.nomachine.com/kb/
>>
>> ________________________________________________________________
>>        FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>>       https://mail.kde.org/mailman/listinfo/freenx-knx
>> ________________________________________________________________
>>
>> ________________________________________________________________
>>     Were you helped on this list with your FreeNX problem?
>>    Then please write up the solution in the FreeNX Wiki/FAQ:
>>
>> http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
>>
>>         Don't forget to check the NX Knowledge Base:
>>                 http://www.nomachine.com/kb/
>>
>> ________________________________________________________________
>>       FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>>      https://mail.kde.org/mailman/listinfo/freenx-knx
>> ________________________________________________________________
>>
>>     
> ________________________________________________________________
>      Were you helped on this list with your FreeNX problem?
>     Then please write up the solution in the FreeNX Wiki/FAQ:
>
> http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
>   
>          Don't forget to check the NX Knowledge Base:
>                  http://www.nomachine.com/kb/ 
>
> ________________________________________________________________
>        FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>       https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________
>
>
>   



More information about the FreeNX-kNX mailing list