[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freenx-knx
Subject:    Re: [FreeNX-kNX] Client-side CUPS printing
From:       Alastair Johnson <alastair () solutiontrax ! com>
Date:       2007-11-05 20:52:25
Message-ID: 200711052052.26551.alastair () solutiontrax ! com
[Download RAW message or body]

On Monday 05 November 2007, Prakash Velayutham wrote:
> Hello Fabian/Alastair,
>
> I have this working now with Linux NX client and FreeNX server
> flawlessly. I am trying out the Windows client (with smb print sharing).
>
> What I see is this. Some how, the .nx/<session_folder>/cups/
> printers.conf file does not get written with the correct DeviceURI
> (smb://... ). Instead, it gets written as
> DeviceURI file://dev/null
>
> Is this correct?

No, but it would explain why nothing gets printed! This should be written by 
the lpadmin command at the end of cmd_node_addprinter in nxnode and should 
match the DEVICE_URI specified. It would be worth finding out what parameters 
it is actually using, then running the command manually from within a session 
to see if any errors occur, and if it gives the same result.

> When I start up kprinter, kprinter comes up, but just freezes in this
> situation. Is there a way that I can manually test the smb printer
> sharing and then start debugging in detail?

lpinfo should be able to tell you about the configured printer and lpr should 
be able to send jobs to it. I don't use either often enough to say which 
switches to use. You could also enable browsing in the cups config in nxnode, 
then point a browser at it on the port 9000+display to get the normal cups 
web interface - this used to work. 

Slightly OT: I see we're still modifying KDE_PRINTRC with perl. I probably 
forgot to mention this before, but can we use kwriteconfig instead? We could 
replace the egreps, echos end perl regexp evaluation with:
  [ "$ENABLE_KDE_CUPS_DYNAMIC" = "1" ] && 
$COMMAND_KWRITECONFIG --file="$KDE_PRINTRC" --group=CUPS --key=Host '"$PATH_BIN/nxcups-gethost"' 
  [ "$ENABLE_KDE_CUPS_DYNAMIC" != "1" ] && 
$COMMAND_KWRITECONFIG --file="$KDE_PRINTRC" --group=CUPS --key=Host 
$NODE_CUPSD_SOCKET

>
> Thanks,
> Prakash
>

________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:
  http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ
         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com/kb/ 

________________________________________________________________
       FreeNX-kNX mailing list --- FreeNX-kNX@kde.org
      https://mail.kde.org/mailman/listinfo/freenx-knx
________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic