kprinters --nodialog option

Kurt Pfeifle kpfeifle at danka.de
Wed Aug 9 00:57:44 PDT 2006


Ismet Kursunoglu <ibk at alaskaclinic.com> wrote (Wednesday 09 August 2006 03:34):

> I get this error when trying to use the --nodialog option with kprinter.
> kprinter --nodialog testfile
> kprinter: cannot connect to X server
> I tried running an X server socket but still the same error.

An X server socket on its own won't help you, if there is not an X 
server running as well. Are you trying to use this trick on an X-less 
server?

> This is on 
> a Debian/Sarge server running 2.6.8-11-amd64-k8-smp cups version 1.1.23
> 
> I recall using this in a small script last year without encountering
> this problem. Any help is much appreciated. Thank you.

First, this is the wrong list for specific kprinter/KDE questions.
Better advice may be obtained from <kde-print at kde.org> (Subscribe at
https://mail.kde.org/mailman/listinfo/kde-print ).

Second, it is very rare that you may ever need to use kprinter with 
the --nodialog option. Most of the time you can use CUPS' own "lp"
command if you don't need a GUI.

Third, if you are getting this error, you probably won't be able to
use kprinter without the --nodialog option either? Which user are 
you when executing that command? Can that user start an xterm?

Cheers,
Kurt




More information about the cups mailing list