Comment 15 for bug 805947

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

First, probably the -E in the lpadmin command line was misplaced. It seems that when it is used before -p <printer> that it forces encryption, which makes lpadmin fail on some configurations. Used after -p <printer>, it enables the queue and makes it accepting jobs (see also the man page of lpadmin).

Second, cuspaccept and cupsenable are commands treating a particular queue, which has to exist and also has to get specified. So you have to add the following two lines AFTER the lpadmin command which creates the queue:

echo | cupsenable -h localhost $queue || :
echo | cupsaccept -h localhost $queue || :

Third, the wait loop is essentially important, as I do not get a queue without it and I get a queue reliably with the loop.