[FreeNX-kNX] Cups 1.2.7 IPP_PORT solution

Marcel kraan marcel at kraan.net
Tue Dec 12 19:11:59 UTC 2006


I have talked to Tim Waugh and he told me :

Don't set IPP_PORT in the environment; instead put 'ServerName
localhost:10000' in your client.conf (~/.cups/client.conf
or /etc/cups/client.conf).

So i have changed the following in the nxnode script.
It works with mozilla and other applications.
openoffice sees the printer but is hiding the printbutton. (unclickable)


nxnode (line +/- 370)
node_cupsd_setup()
{
..
..
..
..        mkdir -p $USER_FAKE_HOME/.nx/C-$sess_id/cups/spool/tmp $USER_FAKE_HOME/.nx/C-$sess_id/cups/spool/certs $USER_FAKE_HOME/.nx/C-$sess_id/cups/ppd
..        ln -sf spool/certs $USER_FAKE_HOME/.nx/C-$sess_id/cups/certs


# added by marcel at kraan.net this is a replacement for the IPP_PORT var.
# we don't remove the .cups folder at shutdown maybe it was already there?
mkdir -p "$USER_FAKE_HOME/.cups"
cat <<EOF > $USER_FAKE_HOME/.cups/client.conf
ServerName localhost:$NODE_CUPSD_PORT
EOF

..
..






Kurt Pfeifle wrote:
> On Tuesday 12 December 2006 16:32, Marcel kraan wrote:
>> Hello,
>>
>> i'am marcel kraan and i'am using the IPP_PORT environment variable in fedora core 3,4 and 5.
>> Now i have installed Fedora core 6 With cups 1.2.7 and the IPP_PORT is not working anymore.
> 
> It *should*. CUPS 1.2.x still supports the IPP_PORT variable.
> 
> *However*, CUPS 1.2.x defaults for local communication to take place
> over a Unix domain socket (not TCP/IP loopback). If your cupsd.conf
> includes a "Listen /path/to/some/sockfile.sock" directive, cupsd upon 
> startup reads this and creates the socket file as needed, using it 
> for local communication.
> 
> Does it help if you disable the domain socket support ? (Just delete 
> or comment out the line with the socket file, and keep one of the 
> 
>   Listen 127.0.0.1:631
>   Listen 192.168.54.234:631
>   Port 631
> 
> lines intact as needed for your IP range.)
> 
> If this helps, you can try the next thing: keep the "Listen ...sock"
> line, but make sure it appears *after* the "Listen  ....:631" line(s).
> 
> Don't forget to restart cupsd after each change to the cupsd.conf.
> 
>> In my system config i have a working printer (poort 10000)
>> the variable IPP_PORT=10000 is exported but my applications 
>> (firefox, openoffice) are not seeing the printers wich are in 
>> kcontrol?  
> 
> Firefox and OpenOffice (at least in older versions) do not know at
> all about IPP, nor about CUPS. They look for an /etc/printcap file
> to list available printers. You should make CUPS to create such
> a file with a directive of
> 
>  Printcap /etc/printcap
> 
> Does this help? 
>  
>> thanks in advantage
> 
> ________________________________________________________________
>      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 at kde.org
>       https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________

-- 
  ___ _        _   _     ___   _   ___
| _ |_)__ _  /_\ (_)_ _| _ ) /_\ / __|
| _ \ / _` |/ _ \| | '_| _ \/ _ \ (_ |
|___/_\__, /_/ \_\_|_| |___/_/ \_\___|.com
       |___/

BigAirBAG BV
Amsterdamseweg 68
1981 LH  Velsen Zuid
The Netherlands
VAT/BTW             : NL8065.67.831.B01
Chamber of Commerce : 08076232
Phone               : +31 654378837
Fax                 : +31 235513420
Inter               : +42 3663172486




More information about the FreeNX-kNX mailing list