LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-06-2003, 07:47 PM   #1
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
CUPS all wacked out


OK, so CUPS that came with Slack 9 didnt work. It said it couldnt initiate the server, even though the server was running in the background. So I uninstalled and did a fresh compile, it all installed right, but same problem. I then used another Slack Package, it installed right, but same problem. What can I do?

Thanks.
 
Old 04-06-2003, 10:00 PM   #2
DonLuis
Member
 
Registered: Feb 2003
Location: Republic of Texas
Distribution: ZW-WBEL4-Slack-RHat-Puppy-Debian
Posts: 75

Rep: Reputation: 15
Re: CUPS Whacked Out

Do you have the " extra " CD? If you do, then <cd /cups> and <installpkg CUPS>. and give it another try.

IF you only have the ONE "install" CD, then give "apsfilter" a try. Do < su > <password______> < cd / >
then < /usr/share/apsfilter/SETUP >
and answer the questions about your printer.
 
Old 04-07-2003, 12:37 AM   #3
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Rep: Reputation: 30
I don't think Slackware 9.0 come with CUPS. At least for me it don't. You can download CUPS from http://ftp.man.olsztyn.pl/pub/linux/...are-9.0/extra/ . Use pkgtool and start rc.cups I think should be alright. I follow this way and its working. I hope you get it working.
 
Old 04-07-2003, 03:03 AM   #4
DonLuis
Member
 
Registered: Feb 2003
Location: Republic of Texas
Distribution: ZW-WBEL4-Slack-RHat-Puppy-Debian
Posts: 75

Rep: Reputation: 15
Re: CUPS Whacked Out

Here's a better solution that I just stumbled on by searching and reading other printer problem posts. This reccomendations was from Aussie our friend down under. Thank you, thank you mate.

Go to < www.turboprint.de/english > and download
the free copy of tuboprint-1.72.

This will install and setup your printer (provided it supported check the turboprint printer list).

I've hacking away for days with apsfilter and cups only to have problems from Slack applications like Abiword and Kword not wanting to print or printing junk (12 pages therof), even though the apsfiler test page and cups test page printed correctly.

HTH
 
Old 04-07-2003, 04:15 AM   #5
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
Cool

I never had any problems with cups on Slackware. Ever since I started using it on Slackware 7.2.
I wat basically just post few coments.
1) CUPS is not a part of oficial distribution (for slack) which is a shame imho. But it is probably available as "extra".
2) If you had cupsd running before you upgraded to 9.0 (probably you've installed it separately) you will have to reinstall/recompile cups because old installation will be probably broken. Mostly due to upgraded libraries plus if you were using USB printer without reinstall/recompile of cups cupsd usually cannot find usb printer. Dute to tha you will probalby have to reconfigure cupsd anyway and restart it (e.g. with "kill -HUP cupsd_pid").
3) At least 9.0 comes with hacked Ghostscript (the one that cups actually needs) you don't have to download it.
4) If cups is not in "extras" i strongly recomed to actually compile it from the source and not to use other "third party" *.tgz files especially if they were built for older versions of slack and with high probablity will be broken. Main reason because somtimes stuff gets linked to a speciific version version of some library (be it zlib. libpng or may be iven glibc). It is usually not a fault of a guy who provided the binary but a guy who prepared a config script.
5) When configuring other software packages with cups (like OpenOffice, Kword etc) do not use drivers that sometimes are available with the package (like StarOffice or OpenOffice) use "generic priter" driver , that is the one that will provide pstscript/enscript file and just specify a command for a pipe (lpr -Pprinter_name).
6) For most programs that just dump postscript file (like xpdf, acroread, gv etc.) just provide command for a pipe (lpr -Pprinter_name). If you managed to print a test page (which is a postscrip file) this will definetly work. Which also means that a2ps will work too (IMHO the best way to print the code).
7) Just to check i just printed a file from Kword. It works.
8) if you use [Star,Open]Office i recomend to use spadmin to configure printer. Among other things (like configuring fonts) it will let you set global paper format to a "Letter" if you are on that side of the Atlantic Ocean. spadmin finally works in OpenOffice 1.0.2 just make sure that you have proper permissions.
Good luck,
cheers
 
Old 04-07-2003, 04:23 AM   #6
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
Cool BTW, AbiWord

I just also checked AbiWord. Again as for any program that generates postscript output you just have to give the command to pipe this output to. that is lpr -Pprinter_name. Again if your test page went throug Ok (while configuring cupsd) this should work.
BTW I looked at AbiWord and Kword (that came with slack 9.0). I still thing that compared to OpenOffice 1.0.2 AbiWord lacks functionality (however it's small) and Kword is still "beta" software (also it's getting there) no matter what version number says.
cheers.
 
Old 04-07-2003, 04:29 AM   #7
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
Cool Also

If when printing specific document you still get garbage with cups (while test page from cups was OK). I recomend to dump the output to a postscript file and look at it with gs/gv/ghostview if they report you errors i guess you have to submitt a bug-report to respective developers' group.
Best regards,
Nick.
 
Old 04-07-2003, 12:16 PM   #8
DonLuis
Member
 
Registered: Feb 2003
Location: Republic of Texas
Distribution: ZW-WBEL4-Slack-RHat-Puppy-Debian
Posts: 75

Rep: Reputation: 15
RE: CUPS Whacked Out

Thanks notAcoolNick, I'll definately look into it ( I hate things I can't solve), I still have the apsfilter stp driver installed on one of my other boxes. I've used CUPS since Mandrake incorporated it (and printtool before that) and it works great, have it running smooth as silk on my Mandrake 9 box..

What's funny it worked correctly with Kwrite. But both Abiword and Kword, the minute I hit print it wasn't my document I wanted to print. (appears to be a driver file) it began: %!PS-Adobe-2,0 (CR )%%Creator: Abiword (CR) %%Title: Untitled --> and on and on for 12 pages to empty the queue (let it run the full course just to see).

My Linux printers are Canon bjc-210 that are fully supported and don't require a filter, nothing exotic.

Altho a relative Linux novice, I've been into computer's since 1978 when I built (soldered and wire wrapped my Z-80) and wrote my printer drivers. This is my first printer s/w problem and perhaps had I stayed with Slack back with 7.0, I would have learned something (Mandrake dulls the mind), and thats why I'm back, ramping up (hopefully)

But, for those having problems with limited time and resources (and exasperated) turboprint-1.72 is a viable, quick solution requiring a minuscule user input, installs quickly and works without problems.

Really appreciate your input, thanks again.
 
Old 04-07-2003, 05:30 PM   #9
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
DonLuis,
Actually what you see *is* a postscript output. It just for some reason is not being recognized as one. You seem to be an inquireing type of person. I would suggest you to do follwoing.
1) first of all turn on debug options for cupsd.config as high as possible. IIRC the config file you need to edit is /etc/cups/cupsd.config (the syntax examples are in the file and pretty straightforward).
2) restart cupsd (kill -HUP cupsd_pid). Maker sure it runs after restart (ps aux | grep cupsd) if not start it (/usr/sbin/cupsd, i guess).
3) start tailing cups log file: tail -f /var/log/cups/error_log
4) Try to print some other postscript file. I'd suggest :
lpr -Pcups_printer_name /usr/share/ghostscript/7.05/examples/tiger.ps. (uh... this is pretty standard procedure).
5) watch error_log and printing output. note that there will be a lot of stuff in the log most of it is just an information. just look for errors. if you for some reason do not see any activity at all that means some other deamon+filters actually controlling printing. probability of that are low but you never know.
6) if everything went actually well (you've got the same tiger picture i have on my wall plus you saw in error_log file that actually cpsd was responsible for that) the last step is to check AbiWord. That is dump output to a ps file.
if you open this file in emacs or vim you will see at the top something like :
%!PS-Adobe-2.0
%%Creator: AbiWord
%%Title: Untitled1
%%Orientation: Portrait
%%Pages 1
%%DocumentPaperSizes: Letter
%%DocumentSuppliedResources: font NimbusRomNo9L-Regu
%%EndComments
%%BeginProlog
....
etc.

open this file in gv and verify that this is what you would expect. if not it's AbiWord's fault. If everything is ok. then print this postscript file from the command line and watch what is happenning. It could be a filter problem. If gimp-print supports your printer try to use it.
7) if you see that actually cupsd complains about wrong version of ghostscript consider upgrading: http://sourceforge.net/project/showf...group_id=18073

Hope thisi all helps.
 
Old 04-07-2003, 06:27 PM   #10
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Original Poster
Rep: Reputation: 46
Ive tried all that before. It was working with the kernel image, but when I recompiled, it hasnt worked. Is there a kernel module I have to enable?
 
Old 04-07-2003, 09:27 PM   #11
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
contrasutra,
is it printer on a network, parallel port or usb port? respectively you definetly should have support in your kernel (as a module or in case of parport or network this can be in kernel itself) for network card or parallel port or usb printer. Tailing logs (tail -f /var/log/messages) usually helps to catch this kind of erros.
best regards,
Nick.
 
Old 04-08-2003, 02:47 AM   #12
shenlong
LQ Newbie
 
Registered: Feb 2003
Posts: 18

Rep: Reputation: 0
i'm using slack 9.0, and i don't think it comes with cups. i downloaded the sources and the gimp print drivers, and then i created the folder /rc.d/rc.x<replace this with the runlevel number you use> copied the cups startup script there. it works perfectly now.

hope this helps
 
Old 04-08-2003, 08:45 AM   #13
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Rep: Reputation: 30
I had my printer install using cups configure it through 127.0.0.1:631.
But today when I try to go into this page it show me:

Not Found
The requested resource was not found on this server.

I went to /etc/rc.d and did a ./rc.cups status it show :

cups: scheduler is running.

So if it is running why I cant access the admin page? Do I need to have my printer connect to my system inorder to go into the admin page for cups?

And I just found out that I cant print now!!

Last edited by Sifvion; 04-08-2003 at 11:56 AM.
 
Old 04-08-2003, 01:14 PM   #14
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Rep: Reputation: 30
Just want to tell you guys. I reinstall CUPS and it seem to be working fine now. I wonder what had happened.
 
Old 04-08-2003, 04:36 PM   #15
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
Silvion,
a lot of things could happen. in general i would suggest to do more diagnostic reinstall is too radical action (this is not windows after all).

things to do in such case (i am a bit repeating myself here)

1) check error_log (especially in your case important to check the time stamp of the last entry). keep an eye on /var/log/messages too (in that regard i think anyone who cares what's going on on his/her box should constantly run some kind of log monitoring programm such as "tail -f", root-tail, colortail etc., there is wide sellection).
2) make sure that cupsd is running using general tools and not scripts. (run "top" or "ps aux | grep cupsd".
3) resturt cupsd, and watch logs, again, use tools as general as possible (kill -HUP cupsd_pid).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 09:01 AM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 09:31 AM
SuSe 9.0 Clock is wacked levenger Linux - Newbie 2 01-07-2004 02:08 PM
Slackware 9 and CUPS (CUPS=crap) - printing carboncopy Slackware 21 07-29-2003 04:27 PM
Wacked out monitor degaussing abyss General 3 05-27-2001 10:09 AM

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

All times are GMT -5. The time now is 03:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration