LinuxQuestions.org
Register a domain and help support LQ
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 05-19-2006, 08:14 AM   #1
JonYCP
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Rep: Reputation: 0
packages needed for printing in Slack 10.2


I've installed 10.2 and want to set up printing. I looked on the Slack web site and found a listing in the FAQ about printing. It said make sure I have:

a1/lpr.tgz
ap1/apsfilt.tgz
ap1/ghostscr.tgz
ap1/gsfonts.tgz

I found that I didn't have some of these and went looking around. In my travels, I came across a reference to Slack 8.0 on the Slack ftp site, and found some of the packages in a1 directory there. There is no a1 directory in the Slack 10.2 directory and of course, the above packages are not under this directory at all. I am wondering if they have been superseded by other packages?

Not sure what to do at this point, because I don't want to install older code (from 8.0) and mess up the newer installation.

Thanks for any help.
 
Old 05-19-2006, 08:32 AM   #2
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
If you've got kde you can set it up through that. Or do it directly through the CUPS web interface. Go to http://localhost:631, sign in as root, and follow the instructions. Make sure your printer is turned on so CUPS can see it. Which printer are you using?
 
Old 05-21-2006, 04:03 PM   #3
JonYCP
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks. Found out a couple of things in the interim. I must have installed all (or most) of the required packages already when I installed Slack 10.2. I followed what must be dated instructions on the Slackware web site in the FAQs. I was able to set up my ancient HP DeskJet, but then I ran into trouble printing.

cupsd would generate a process ID but then abort seemingly immediately. I found that I could update cupsd.conf and change the LogLevel line from 'info' to 'debug' then found in the /var/log/cups/error_log:

/usr/bin/gs: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory

I had installed only the non-graphical portion of Slack, no X packages. I went back and installed recommended X packages, and the print started flowing... Talk about unexpected dependencies! Is there a list or diagram somewhere of package dependencies?

Be well.
 
Old 06-10-2006, 04:30 PM   #4
wundermac
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
Question Further question on Slackware / CUPS

I'm a newbee.

Installed Slackware 10.2 (full install so assume all packages). I've checked out basic Unix commands, launched KDE, installed Firefox and Open Office etc. so networking is OK. Now I'm ready to start printing. Reading around, it is clear to me that I want CUPS. Now when I go to KDE and try to access localhost:631 (Konqueror or Firefox) I get the error message

could not connect to host localhost (port 631)

If my understanding is correct, the way I installed Slackware should have installed CUPS. However, I've read admonitions to not "double install" and also possible interference between CUPS and older printing methods. Therefore I'm nervous about trying to install CUPS from scratch.

I'm looking for a step-by-step clean description of how to determine what I have or do not have (CUPS installed or yet to be installed) and how to proceed. I'm happy to use KDE or command line if it is step by step. Assume I'm very tech-savvy but NOT Unix savvy.

Thanks in advancce for any help.
 
Old 06-10-2006, 05:04 PM   #5
wundermac
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
Eureka

After posting this question (which in turn was posted after about three hours on-line trying to work this out), I found WindowMaker's shell script for post-Slackware installation (sorry i don't yet know how to embed a link to another post so use the search to find it in this forum).

For anyone who has experience of other systems but not UNIX/Linux, it is extremely useful and a quick study. I think it should be documented and included in the distro.

Anyway to complete the details:

log in to bash as root

then

chmod 755 /etc/rc.d/rc.cups
/etc/rc.d/rc.cups start

You now get a message letting you know it is running.

Now startx to get into KDE and the browser will connect to localhost:631 (my original problem)

 
Old 06-10-2006, 06:21 PM   #6
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
Is there a list or diagram somewhere of package dependencies?
any time I get a "file not found" error, I plug it into the Slackware package site and use the "find by file name feature".

For instance: libXt.so returns x11-6.8.2-i486-3.

regards,
...drkstr
 
Old 06-11-2006, 07:41 AM   #7
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Wundermac, basically the problem for you was that although you had CUPS installed, it wasn't set as executeable. If you have a look at the directory /etc/rc.d, you will see in there a lot of services, including CUPS. The ones with an 'x' in the permissions listed at the start of the line are all set to run at boot time. To make something execute at boot, you type something like

chmod +x /etc/rc.d/rc.cups

or

chmod -x /etc/rc.d/rc.cups

if you want to remove executable permission and stop in running at boot. Or you can use the method you used, by typing the octal numbers to set permissions.
 
Old 06-12-2006, 12:31 AM   #8
wundermac
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
Thank you

Cool tip Simcox1. I'm very computer savvy just no UNIX background so the learning curve is very steep. I know what can be done in principle, just not the tool and syntax. This is probably more frustrating than being a computer newbee since I get frustrated much faster :-) I'm just getting tired making command chart "cheat sheets" and printing lots of on-line tutorials.

Keep up the good work of tolerating and helping those of us who are learning.
 
Old 04-24-2007, 09:25 PM   #9
TenEighty
Member
 
Registered: Oct 2004
Location: Vancouver, B.C., Canada
Distribution: Kubuntu
Posts: 57

Rep: Reputation: 15
Quote:
Originally Posted by JonYCP
Thanks. Found out a couple of things in the interim. I must have installed all (or most) of the required packages already when I installed Slack 10.2. I followed what must be dated instructions on the Slackware web site in the FAQs. I was able to set up my ancient HP DeskJet, but then I ran into trouble printing.

cupsd would generate a process ID but then abort seemingly immediately. I found that I could update cupsd.conf and change the LogLevel line from 'info' to 'debug' then found in the /var/log/cups/error_log:

/usr/bin/gs: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory

I had installed only the non-graphical portion of Slack, no X packages. I went back and installed recommended X packages, and the print started flowing... Talk about unexpected dependencies! Is there a list or diagram somewhere of package dependencies?

Be well.
I had precisely the same frustrating experience with my dedicated slackware server. I knew the printer worked because I 'cat [textfile] > lp0' would print, but cups behaved as you explained. I found exactly the same line in the error log on debug level logging, so I installed the slackware base X package, which includes shared libraries, and it started working.
 
Old 04-24-2007, 11:59 PM   #10
north49er
Member
 
Registered: Apr 2003
Location: 60.47'N lat
Distribution: fedora 15 x86_64
Posts: 156

Rep: Reputation: 18
If your printer is hooked up to the parrallel port, you'll need to edit /etc/rc.d/rc.modules (whichever kernel your using). Uncomment the appropriate lines in the parrallel printer section.

A lot of program still have lpr as default printing system. The following works for me.

rm /usr/bin/lpr
ln -s /usr/bin/lpr-cups /usr/bin/lpr

If your printer is not listed in the localhost, then go to www.linuxprinting.org and read up on foomatic.

Last edited by north49er; 04-25-2007 at 12:00 AM.
 
  


Reply

Tags
cups, installation, slackware


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
Help Needed - Install packages from CD? JimCockfield Ubuntu 2 01-17-2006 03:37 PM
Gallery v1.5, which packages needed.. finchwizard Debian 1 05-09-2005 06:55 PM
Using Slack 10's 2.6.7 kernel packages on Slack 10.1? SocialEngineer Slackware 1 03-05-2005 12:53 PM
Minimum packages needed 1kyle Linux - Software 4 03-23-2004 07:17 PM
2.6.1 updated packages needed Dakota Mike Slackware 2 01-21-2004 05:19 PM


All times are GMT -5. The time now is 12:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration