LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   cups 1.6.4 printing fine with libreoffice but unable to print test page (http://www.linuxquestions.org/questions/slackware-14/cups-1-6-4-printing-fine-with-libreoffice-but-unable-to-print-test-page-4175489489/)

francois.e 12-29-2013 03:08 PM

cups 1.6.4 printing fine with libreoffice but unable to print test page
 
cups 1.6.4 is printing fine with libreoffice and with ocular but i am unable to print test page under cups printer > maintenance > print test page.

Here is the error_log:
Code:

root@porteus:~# tail -f /var/log/cups/error_log
D [29/Dec/2013:14:50:41 +0000] [Job 10] prtMarkerSuppliesLevel.1.1 = -3
D [29/Dec/2013:14:50:41 +0000] [Job 10] prtMarkerSuppliesLevel.1.2 = 11458
D [29/Dec/2013:14:50:41 +0000] [Job 10] ATTR: marker-levels=-1,95
D [29/Dec/2013:14:50:41 +0000] [Job 10] new_supply_state=0, change_state=0
D [29/Dec/2013:14:50:41 +0000] [Job 10] new_state=0, change_state=0
D [29/Dec/2013:14:50:41 +0000] [Job 10] End of messages
D [29/Dec/2013:14:50:41 +0000] [Job 10] printer-state=3(idle)
D [29/Dec/2013:14:50:41 +0000] [Job 10] printer-state-message="Waiting for printer to finish."
D [29/Dec/2013:14:50:41 +0000] [Job 10] printer-state-reasons=none

Any suggestion will be appreciated.

willysr 12-29-2013 04:01 PM

I never had problems with test print, both for 1.6.4 and also 1.7.0, since that is the first test case i used when building newer cups version

BratPit 12-30-2013 06:48 AM

Hi

I upgraded on 14,1 to cups 1.7.0 .
Printing goes well.

but when I want to print test page from web interface /printer is Brother/ I got this message

Unsupported format "application/vnd.cups-banner"

and in logs:

"POST /printers/Brother HTTP/1.1" 200 422 Print-Job client-error-document-format-not-supported

I recompiled ghostscript but it did not help :-(

willysr 12-30-2013 10:11 AM

Have you installed cups-filters package?

BratPit 12-30-2013 12:50 PM

Bingo.

Thanks willysr.

francois.e 12-31-2013 04:53 PM

Quote:

Originally Posted by willysr (Post 5088638)
I never had problems with test print, both for 1.6.4 and also 1.7.0, since that is the first test case i used when building newer cups version

Thanks for answering that thread.

I found some explanation to the problem I had here:
http://www.bsmdevelopment.com/Refere..._20130002.html

Quote:

Unfortunately, Apple has decided to hand over the support of many CUPS filters to The Linux Foundation OpenPrinting Project, which is also responsible for CUPS PPDs. On the one hand, this is probably a good thing, since an independant body whose mandate is to support every kind of printer known to man is also more likely to support all MIME types known to man.

The unfortunate part is that the filter for banner pages has been handed over to the OpenPrinting Project. The really unfortunate part is that the printer test page is also a banner. This means that, when you install CUPS from source, and set up a printer, you can't print a test page to see if the printer works.

willysr 12-31-2013 07:19 PM

Yes, it alread happened for some time and i have been providing cups-filters slackbuild in my slackhacks git repo since cups 1.6.0

francois.e 01-01-2014 10:12 PM

I have some difficulty building the cups-filter from you repository:

Under root:
Code:

root@porteus: ./cups-filters.SlackBuild
...
...
chown: invalid group: ‘root:root’
root@porteus:/mnt/sda5/64bit_v30/porteus/test-cups/cups-filter#

Under normal user:
Code:

guest@porteus:~/cups-filter$ su ./cups-filters.SlackBuild
No passwd entry for user './cups-filters.SlackBuild'
guest@porteus:~/cups-filter$ ./cups-filters.SlackBuild
mkdir: cannot create directory ‘/tmp/build/package-cups-filters’: Permission denied

Any turnaround? I would like to run ./cups-filters.SlackBuild in root mode.
Thanks.

willysr 01-01-2014 11:44 PM

does porteus have root group ?

francois.e 01-02-2014 12:49 AM

It seems not, see:
Code:

root@porteus:/mnt/sda5/64bit_v30/porteus/test-cups/cups-1.7# id root
uid=0(root) gid=0 groups=0

root@porteus:/mnt/sda5/64bit_v30/porteus/test-cups/cups-1.7# groups root
root : groups: cannot find name for group ID 0
0


willysr 01-02-2014 02:05 AM

so that's the reason why it failed. You can edit the SlackBuild to use other group instead of root.

francois.e 01-02-2014 12:56 PM

I have tried:

chown -R root:0 .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

Instead of:

chown -R root: root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

It does not work. What do you think?

willysr 01-02-2014 07:09 PM

No, there are group with a label of 0
check the available group by running
cat /etc/group

francois.e 01-02-2014 09:59 PM

Code:

root@porteus:~# cat /etc/group
slocate::21:
root@porteus:~#


willysr 01-03-2014 07:09 AM

Did you install porteus on your HD or do you run it via livecd?


All times are GMT -5. The time now is 05:46 AM.