LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-29-2013, 02:08 PM   #1
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Rep: Reputation: 3
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.

Last edited by francois.e; 12-29-2013 at 02:16 PM.
 
Old 12-29-2013, 03:01 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
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
 
Old 12-30-2013, 05:48 AM   #3
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
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 :-(
 
Old 12-30-2013, 09:11 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
Have you installed cups-filters package?
 
3 members found this post helpful.
Old 12-30-2013, 11:50 AM   #5
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Bingo.

Thanks willysr.
 
Old 12-31-2013, 03:53 PM   #6
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
Smile

Quote:
Originally Posted by willysr View Post
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.
 
Old 12-31-2013, 06:19 PM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
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
 
Old 01-01-2014, 09:12 PM   #8
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
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.

Last edited by francois.e; 01-01-2014 at 09:13 PM.
 
Old 01-01-2014, 10:44 PM   #9
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
does porteus have root group ?
 
Old 01-01-2014, 11:49 PM   #10
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
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

Last edited by francois.e; 01-01-2014 at 11:58 PM.
 
Old 01-02-2014, 01:05 AM   #11
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
so that's the reason why it failed. You can edit the SlackBuild to use other group instead of root.
 
Old 01-02-2014, 11:56 AM   #12
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
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?
 
Old 01-02-2014, 06:09 PM   #13
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
No, there are group with a label of 0
check the available group by running
cat /etc/group
 
Old 01-02-2014, 08:59 PM   #14
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
Code:
root@porteus:~# cat /etc/group
slocate::21:
root@porteus:~#
 
Old 01-03-2014, 06:09 AM   #15
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
Did you install porteus on your HD or do you run it via livecd?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS, option to print self-test page and clean print heads greyed out? BallsOfSteel Linux - Software 1 08-13-2008 03:22 PM
CUPS wont print test page rswier Linux - Software 5 12-13-2006 04:36 AM
CUPS: prints test page, can't print otherwise anders_ant Slackware 1 08-11-2004 11:31 AM
cups printing: can print test page, but printer not available in openoffice hamish Linux - Software 4 07-05-2004 11:50 AM
cups: test page prints fine but other programs don't intense Slackware 10 03-30-2004 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration