Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: beerstein on March 24, 2011, 03:43:45 PM
-
Hello all:
I saw the many posts on all kind of cups problems. So far I was lucky with cups
until I tried to hook it to a samsung multi function printer.
cups 1.311 is installed and works
gutenprint and foomatic-rip is installed onboot but I only can see the gutenprint printers listed.
I can not see any foomatic entries?
USB port works
http://localhost:631
admin.. even sees the printer
but when it comes to slect the .ppd I can not see any foomatic related pdd?
therefore I downloaded several ppd for this printer and put them into /etc/cups/ppd
and because I could not find a ppd in that list I selected one of these ppd files and installed.
when trying to print a test page:
"/usr/local/lib/cups/filter/foomatic-rip failed" error message shows up
Can somebody please help?
Thank you
-
Did you try setting the log level to dubug in cupsd.conf, restarting cups and trying again - the error messages often help track down the problem
-
Thank you for this - I will look at this and post the results. What does not make sense to me is, that I see
the printers from the gutenprint.tcz but not from the foomatic-rip.tcz do I have to start the foomatic thing?
The .ppd files come from gutenprint and foomatic? Is this correct?
The .ppd files from gutenprint are in /etc/cups/ppd ?
Where do you think, are the foomatic .ppd files?
-
Where do you think, are the foomatic .ppd files?
As far as I know, you need to find your own, they are not supplied in the cups source tarball
-
therefore I downloaded several ppd for this printer and put them into /etc/cups/ppd
Put the ppd in another directory.
When you install, cups will put it in /etc/cups/ppd.
You obviously need the correct driver to start with.
-
Where do you think, are the foomatic .ppd files?
As far as I know, you need to find your own, they are not supplied in the cups source tarball
This site may help:
www.openprinting.org/printers
-
from the foomatic info tab
Comments: the foomatic-rip filter is used by some printer driver packages
requires libgs.tcz
libgs.tcz contains:
/usr/local/lib/libgs.so.9
/usr/local/lib/libgs.so
/usr/local/lib/libgs.so.9.00
however foomatic depends on libgs_ps which contains:
/usr/local/lib/libgs.so.8
/usr/local/lib/libgs.so
/usr/local/lib/libgs.so.8.71
These cannot co-exist, can they?
-
Usually they can, unless you want to compile. Apps usually want so.X instead of .so.
-
Hi curaga
I see, so even though libgs.tcz is not included as a dependency beerstein should install it.
-
I have a feeling there are a couple of choices to get foomatic-rip to work, either:
1. load libgs_ps and not libgs
or
2. load libgs and ghostscript_common
As a quick and dirty test, you could ensure libgs.so -> libgs.so.8.71
-
Hi: Thank you so much for the excellent help.
I changed the "info" to "debug" in /usr/local/etc/cups/cupsd.conf
then I tried to print via the USB port. (testpage)
Here is the error log - only ths part I think is relevant.
=============================================
21:36 +0000] Listening to ::1:631 (IPv6)
21:36 +0000] Listening to 127.0.0.1:631 (IPv4)
21:36 +0000] Listening to /var/run/cups/cups.sock (Domain)
21:36 +0000] Remote access is disabled.
21:36 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
21:36 +0000] Using default TempDir of /var/spool/cups/tmp...
21:36 +0000] Configured for up to 100 clients.
21:36 +0000] Allowing up to 100 client connections per host.
21:36 +0000] Using policy "default" as the default!
21:36 +0000] Full reload is required.
21:36 +0000] Loaded MIME database from '/etc/cups': 35 types, 38 filters...
21:36 +0000] Full reload complete.
21:36 +0000] Cleaning out old temporary files in "/var/spool/cups/tmp"...
E [25/Mar/2011:19:21:36 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
21:36 +0000] Listening to 127.0.0.1:631 on fd 4...
21:36 +0000] Listening to /var/run/cups/cups.sock on fd 6...
21:36 +0000] Resuming new connection processing...
24:02 +0000] Started "/usr/local/lib/cups/cgi-bin/printers.cgi" (pid=4376)
24:19 +0000] Started "/usr/local/lib/cups/cgi-bin/printers.cgi" (pid=4379)
24:19 +0000] [Job 1] Adding start banner page "none".
24:19 +0000] [Job 1] Adding end banner page "none".
24:19 +0000] [Job 1] File of type application/postscript queued by "anonymous".
24:19 +0000] [Job 1] Queued on "Samsung_SCX-4x21_Series_USB_1" by "anonymous".
24:19 +0000] [Job 1] Started filter /usr/local/lib/cups/filter/pstops (PID 4380)
24:19 +0000] [Job 1] Started filter /usr/local/lib/cups/filter/foomatic-rip (PID 4381)
24:19 +0000] [Job 1] Started backend /usr/local/lib/cups/backend/usb (PID 4382)
E [25/Mar/2011:19:24:19 +0000] PID 4381 (/usr/local/lib/cups/filter/foomatic-rip) stopped with status 1!
24:19 +0000] Hint: Try setting the LogLevel to "debug" to find out more.
E [25/Mar/2011:19:24:19 +0000] [Job 1] Job stopped due to filter errors.
24:21 +0000] Started "/usr/local/lib/cups/cgi-bin/printers.cgi" (pid=4390)
================================================
I am using a .ppd which works on the same computer/printer but in Suse 9.3
I will study your posts and report more.
thanks again
-
What does this give:
$ ldd /usr/local/lib/cups/filter/foomatic-rip
-
this is what I got:
$ ldd /usr/local/lib/cups/filter/foomatic-rip
linux-gate.so.1 => (0xb77cd000)
libgs.so.8 => /usr/local/lib/libgs.so.8 (0xb7500000)
libm.so.6 => /lib/libm.so.6 (0xb74da000)
libc.so.6 => /lib/libc.so.6 (0xb7397000)
libdl.so.2 => /lib/libdl.so.2 (0xb7393000)
libpthread.so.0 0> /lib/libpthread.so.0 (0xb737b000)
/lib/ld-linux.so.2 (0xb77ce000)
This is the .ppd file recommendet for this printer:
Samsung-ML-4500-gdi.ppd
Oi downloaded it from the website recommended by:SamK
-
That looks like it's using libgs_ps rather than libgs. Do you have ghostscript_common loaded?
If you try to execute foomatic-rip like this, what do you get: /usr/local/lib/cups/filter/foomatic-rip --help
-
I am uncertain whether any of the following is relevant to your circumstances as I use CUPS 1.4.5 rather than 1.3.11. I certainly do not wish to intrude on any of the advice you are receiving from others.
When using foomatic-rip PPD files, rather than looking for the leanest installation, I prefer a compromise that produces the fewest problems with the equipment here. The approach adopted is to load:
* CUPS
* foomatic-rip
* ghostscript
* ghostscript-common
* poppler-bin
When using foomatic-rip, my experience is that issues might be multi-layered. It is possible that overcoming your present difficulty may uncover an unrelated one. Here's hoping you are lucky and this is not the case for you.
-
Hi all and thank you Juanito and SamK:
1)the $ /usr/local/cups/filter/foomatic-rip --h (resulted in)
$ foomatic-rip version 4.0.2.211
this probably means, that this thing is alive and kicking.
ghostscript_common is not installed.
I played around for hours with cups and foomatic and I learned the following: (Please correct me, if I am wrong)
a) Installing and starting dbus and cups (no matter which version of cups) the system just needs a printer specific .ppd file to make the printer work. This .ppd file, in my case is Samsung-ML-4500-gdi.ppd for my SCX-4521F and I got it from the openprint website SamK recommended. I was able to search this site for my printer brand and model - nice.
So - now I think I should have everything I need to install and run my printer?
b) do I need gutenprint and foomatic-rip when I have all that mentioned in a) ??
c) I discovered that, when I load gutenprint several printer brand names show up in my cups web-interface http://localhost:631. The are listet in the window when it comes to select the Model in the Model Window. Underneath the Model window I have also an option to provide a PPD File:
So - here is a question: if my printer model is not listed in the window, why should I load gutenprint at all?
d) I also discovered that installing foomatic-rip did not alter the Model Window at all. No other printers were visible in that Model: window from the cups browser application. Although some info from the web say "use foomatic when it comes to Samsung printers !"
e) my conclusion is now, would it not be easier to just install cups, forget about all the other extensions and add the right PPD file when it comes to printer selection. Just ignore the Model window. Is my thinking correct? or do I need to load ghostscript, ghostscript-common and poppler-bin.
f) If after installing foomatic-rip my printer .ppd does not show up, why should I install it?
-
I never tried using gutenprint, so I'll stay away from commenting on that.
A printer needs a ppd file in order to work, but it usually requires something else as well, typically ghostscript and perhaps foomatic-rip.
I've seen that older ppd files require foomatic-rip and newer ones do not - you could try looking at the ppd file with a text editor to see if foomatic-rip is mentioned?
Since your cups error log shows a foomatic-rip error, I would assume it is required and it that case, I would try loading ghostscript, ghostscript-common and foomatic-rip, trying to print and examining the cups error log to see what you get.
-
As I mentioned in reply #14, I use CUPS 1.4.5. As the maintainer of CUPS 1.4.5 it may be reasonable to assume that Jaunito also uses that version. In such circumstances it is difficult to offer precise advise on a version of software which is not used. The advice is therefore generic in nature.
An imperfect summary of printing in TC might be:
- CUPS provides a means of configuring the print server and print queue. This is supported by some means of handling postscript (such as my compromise of using ghostscript, ghostscript_common and poppler-bin),
- A printer driver file is also used which might come from a Foomatic-RIP PPD (i.e. the one you downloaded from openprinting.org) or from bundles of drivers such as Gutenprint or HPlip.
If you decide to use a Foomatic-RIP driver PPD, then foomatic-rip.tcz must also be installed to make use of it. In this scenario neither Gutenprint nor HPlip is required.
You might try placing the Foomatic-RIP PPD in your home directory. Open the CUPS web GUI and again add a new printer. When you reach the option to select the printer manufacturer decline it, and instead move to the field "Or Provide a PPD File" and browse to the location of your PPD, then click the add printer button.
Again I give the caveats:
- I do not use the same version of CUPS as you,
- This may be the first layer of a multi-layered problem.
-
hi: thank you again. so I will remove the gutenprint and cups 1.311 just by removing them from onboot and ondemand. Then I will install the latest cups, ghostscript, ghostscript_common and poppler-bin from the repo and foomatic and will try again. I would like to leave the old cups in my /tce/optional.
I will post my results.
-
Hi:
Now I have the new cups 1.4.5 running. It was not easy, because I needed to get rid of the old version cups 1.311 which resides in another spot. I have foomatic-rip, ghostscript, ghostscript-common and poppler-bin on onboot.
I can start the cups browser app but I am not able to log in. Now I am back to that old password
problem. I am not able to set a new admin and a password. I followed a hint from a UK magazine which recommeded :
$ lppassword -a admin
input password twice (six characters and at least one number)
I did that several times, but no luck.
Please - can somebody help me here.
-
I can start the cups browser app but I am not able to log in. Now I am back to that old password problem. I am not able to set a new admin and a password.
It's not an insurmountable problem, and the solution is mentioned in the extension info file.
Try this...
Before opening the CUPS web interface, create a password for the root user. This is needed to conduct administrative tasks in the web GUI.
sudo passwd
It is not required but if it is preferred to have the password retained following a re-boot, back-up /etc/shadow and restore it at each boot-up.
-
Hi SamK: Thank you for your help. You are right - thats what I did. I set a new password for root and
then I was able to add a new printer.
I used the regular passwd command and not the lppasswd from LXF magazine.
Now my printer was recognized via one of the USB ports. I still do not know which one.
During set up of the printer I selected Samsung ML-4500 PPD and tried to print useung the Leafpad editor.
here is copy of my error-log file:
E [28/Mar/2011:20:02:57 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
E [28/Mar/2011:20:04:27 +0000] cupsdAuthorize: Authentication failed for user "root"!
E [28/Mar/2011:20:04:42 +0000] cupsdAuthorize: Authentication failed for user "root"!
E [28/Mar/2011:20:07:36 +0000] [cups-driverd] Unable to open driver directory "/usr/local/lib/cups/driver": No such file or directory
E [28/Mar/2011:20:07:36 +0000] [cups-driverd] Unable to open driver directory "/usr/local/lib/cups/driver": No such file or directory
E [28/Mar/2011:20:07:59 +0000] Filter "/usr/local/lib/cups/filter/foomatic-rip" for printer "Samsung_SCX-4x21_Series" not owned by root
E [28/Mar/2011:20:07:59 +0000] Filter "/usr/local/lib/cups/filter/foomatic-rip" for printer "Samsung_SCX-4x21_Series" not owned by root
E [28/Mar/2011:20:08:12 +0000] Filter "/usr/local/lib/cups/filter/foomatic-rip" for printer "Samsung_SCX-4x21_Series" not owned by root
E [28/Mar/2011:20:08:12 +0000] Filter "/usr/local/lib/cups/filter/foomatic-rip" for printer "Samsung_SCX-4x21_Series" not owned by root
E [28/Mar/2011:20:09:19 +0000] Unable to execute /usr/local/lib/cups/filter/foomatic-rip: insecure file permissions (0100755)
E [28/Mar/2011:20:09:19 +0000] [Job 1] Unable to start filter "foomatic-rip" - Operation not permitted.
E [28/Mar/2011:20:09:19 +0000] [Job 1] Stopping job because the scheduler could not execute a filter.
it look like that I have permission and owner ship problems. Do you have an idea what is wrong?
-
Hi:
From the error message I learned that a folder named: "driver" was missing in /usr/local/lib/cups
I added that folder and copied the Samsung PDD into it. Now after restarting smbd and cups I can not see this error message any more. I "only" have the error message:
Unable to execute /usr/local/lib/cups/filter/foomatic-rip: insecure file permissions (0100755)
E [28/Mar/2011:20:09:19 +0000] [Job 1] Unable to start filter "foomatic-rip" - Operation not permitted.
I looked this file up (in two different places)and was not able to change owner ship and/or permission because it is read-only?
Now what. Can somebody please help me here? Thank you so much
-
From the error message I learned that a folder named: "driver" was missing in /usr/local/lib/cups
I added that folder and copied the Samsung PDD into it.
That sounds as though the PPD file was not added during the configuration of the printer.
Unable to execute /usr/local/lib/cups/filter/foomatic-rip: insecure file permissions (0100755)
E [28/Mar/2011:20:09:19 +0000] [Job 1] Unable to start filter "foomatic-rip" - Operation not permitted.
I looked this file up (in two different places)and was not able to change owner ship and/or permission because it is read-only?
Have a look at the job when this stage is reached. If it is failing due to file ownership problems it will be confirmed here also. This seems to be a result of the way the foomatic-rip extension and TC interact.
Try something like...
Copy /tmp/tcloop/foomatic-rip/usr/local/bin/foomatic-rip to a location that allows the properties to be changed e.g. /opt/foomatic-rip/foomatic-rip
Delete the existing link at /usr/local/lib/cups/filter/foomatic-rip
Create a replacement link at /usr/local/lib/cups/filter/foomatic-rip pointing to /opt/foomatic-rip/foomatic-rip
Change the ownership of /opt/foomatic-rip recursively to be owned by root:root
-
HI: Thank you for your help. Couls you please give me a quick hint how to do the deleting and creating a link in TC?
=======================================================
Delete the existing link at /usr/local/lib/cups/filter/foomatic-rip
Create a replacement link at /usr/local/lib/cups/filter/foomatic-rip pointing to /opt/foomatic-rip/foomatic-rip
=========================================================
Thank you so much for this
-
...a quick hint how to do the deleting and creating a link in TC?
Try something like this...
Create a directory for foomatic-rip
mkdir /opt/foomatic-rip
Copy foomatic-rip to it
cp /tmp/tcloop/foomatic-rip/usr/local/bin/foomatic-rip /opt/foomatic-rip/foomatic-rip
Re-point the link to the new file
ln -f -s /opt/foomatic-rip/foomatic-rip /usr/local/lib/cups/filter/foomatic-rip
Change the ownership of the new structure
sudo chown -R root:root /opt/foomatic-rip
-
Hi: I tried "everything" to get this Samsung multi function work on my TC 3.51 PC.
No luck - so I gave up - at least for the time beeing. Here is a summary of what I have done. Maybe somebody else can go from here and save the headache I have suffered so far.
Before I quit I installed:
1. the cups.tcz (version 1.4.5) before I tried cups 1.3.11
2. foomatic-rip (because the ML 4500 PPD file mentioned foomatic rip in its source text)
3. ghostscript version 9.0 from repo (because I learned this is the driver which generates pixel output from post script, ghostscript is needed by foomatic-rip and the comamd line command:
$ gs -h
should generate a lising which shows your printer model. Not in my case!)
4. ghostscript-common ( I still do not know what this is for)
5. poppler-bin ( no idea what this for )
There are a few config files which need to be configured.
1. /etc/cups/cupsd.conf
2. /etc/cups/printers.conf (mostly done by the browser interface http://localhost:631
3. /etc/cups/ppd/ this folder needs the PPD file for this printer model - downloaded from www.linuxprinting.org/download/PPD - although this site had exactly the PPD file I needed - the solution was still not in sight.
4. /tmp/tcloop/foomatic-rip/local/etc/foomatic/filter/filter.conf
this config file needs to be configured to tell the systems where several applications are located. I could not find a description on how to do it. At the end of this filter.conf file I found an error where it said: "preferred_shell: /bin/ash instead of preferred_shell: /bin/bash" So when you work with foomatic so please take a look at this.
5. I was able to handle the "read only" problems of config files, scripts and binaries with the excellent help of our forum members, especially SamK.
(please see theprevious posts)
I have no plans yet how to continue with that SCX 4521F . In some cases it would be cheaper and easier to buy another HP, Canon, Epson or Brother printer. HP is probably the easiest to install under Linux.
Maybe I will try to go back to cups 1,311?
Maybe somebody has the time to add the Samsung SCX 4521F model to the ghostscript.tcz?
-
Sounds like quite a bout of wrestling.
Just a few thoughts and observations in case you decide upon a re-match. These are offered as a distillation of working TC printing using:
- Parallel and USB ports
- HP and Epson printers
- Various drivers (Foomatic included)
...
There are a few config files which need to be configured.
1. /etc/cups/cupsd.conf
2. /etc/cups/printers.conf (mostly done by the browser interface http://localhost:631
3. /etc/cups/ppd/ this folder needs the PPD file for this printer model - downloaded from www.linuxprinting.org/download/PPD - although this site had exactly the PPD file I needed - the solution was still not in sight.
4. /tmp/tcloop/foomatic-rip/local/etc/foomatic/filter/filter.conf
this config file needs to be configured to tell the systems where several applications are located. I could not find a description on how to do it. At the end of this filter.conf file I found an error where it said: "preferred_shell: /bin/ash instead of preferred_shell: /bin/bash" So when you work with foomatic so please take a look at this.
...
/etc/cups/xxx does not feature in the working set-ups I have created. Do you mean /usr/local/etc/cups/xxx
It has never been necessary to manually change cupsd.conf or printers.conf.
It has never been necessary to manually create .../cups/ppd or manually place the PPD file in it. This has always been stored in /opt. Selecting it in the appropriate CUPS section automatically places it in the needed directory /usr/local/etc/cups/ppd/.
It has never been necessary to edit filter.conf.
Bash has not been needed (or installed) to obtain a working set-up. The TC standard ash works fine.
Perhaps if you do decide to try again these may give you a starting point.
-
There are a few config files which need to be configured.
1. /etc/cups/cupsd.conf
2. /etc/cups/printers.conf (mostly done by the browser interface http://localhost:631
3. /etc/cups/ppd/ this folder needs the PPD file for this printer model - downloaded t this.
Since the cups extension only uses /usr/local/etc and if you have not loaded cups1311, then there is some kind of problem - maybe the files above are in your backup?
..anyway, you need to work with /usr/local/etc/cupsd.conf