Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: beerstein on July 23, 2011, 09:46:12 AM
-
Hi:
I worked on this guy for a while to hook it up to my TC. 3.7.1 running perfectly
This printer is cheap and working perfect.
I installed and run all the stuff described in the wiki
I choose cups1311.tcz ---less mess with the root password
I downloaded the Samsung SCX-4500 PPD file from the linux printer dot org site (or s0)
I installed the SCX 4521F via USB using the http://localhost:631
the set up procedure showed several other Samsung printers, but
not mine - as ever
So I selected the field below and used the downloaded PPD file,
which is sitting in my /tc folder
While continuing with the setup a message showed up that foomatic-rip
was missing. I loaded that too and the green light came up on the printer and it looked
like the printer was installed successfully. But.... No testpage !
The error showing up was:
/usr/local/lib/cups/filter/foomatic-rip failed
After looking at that folder I saw foomatic-rip but this was not a file it was a link to:
/tmp/tcloop/foomatic-rip/usr/local/lib/cups/filter/foomatic-rip
HUUU --- but this foomatic-rip here was not a file but a link back to the foomatic-rip
link I just mentioned above. No wonder. Two links pointing at each other??
I do not understand that. May be this is my problem here?
So I searched for the "real" foomatic-rip file and found it in:
/tmp/tcloop/foomatic-rip/user/local/bin/foomatic-rip
I can smell that this might be the reason for my problems.
What should I do? How can I change the link to the real file?
Any suggestions? Thank you so much in advance.
-
So I searched for the "real" foomatic-rip file and found it in:
/tmp/tcloop/foomatic-rip/user/local/bin/foomatic-rip
I can smell that this might be the reason for my problems.
What should I do? How can I change the link to the real file?
As a test: $ sudo cp /tmp/tcloop/foomatic-rip/user/local/bin/foomatic-rip /usr/local/bin
..and see if things work
-
btw, I just had a look at the foomatic-rip extension and it looks OK to me:
$ unsquashfs -l /tmp/test/foomatic-rip.tcz
Parallel unsquashfs: Using 1 processor
4 inodes (23 blocks) to write
squashfs-root/usr/local/bin/foomatic-rip
squashfs-root/usr/local/etc/foomatic/filter.conf
squashfs-root/usr/local/etc/foomatic/filter.conf.sample
squashfs-root/usr/local/lib/cups/filter/foomatic-rip
-
Hi: Thank you for your reply
Now I discovered that Foomatic is not the problem.
I suspected that the new cups and the old cups 1311 interfere if installed together or one after the other.
I need to stay with one of the two versions and can not play around with both cups.
So I started a new setup with a new /tce and installed only : 1) the new cups 1.4.5 , ghostscript, ghostscript-common, firefox and some other utilities. dbus was installed and I started dbus and cups.
The Samsung printer driver was still somewhere on a partition and I included it (Samsung ML 4500-gdi.ppd) during the "add printer"process during http://localhost:631"
The error log shows that the problem might be related to permission- and ownership problems.
Can somebody help me here - I found that hooking up a printer is not always easy, especially for non HP printers.
===============================================================
error log
================================================================
E [22/Aug/2011:20:04:03 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
E [22/Aug/2011:20:04:22 +0000] [CGI] smbclient not found!
E [22/Aug/2011:20:04:22 +0000] [CGI] rpcclient not found!
E [22/Aug/2011:20:04:32 +0000] [CGI] smbclient not found!
E [22/Aug/2011:20:04:32 +0000] [CGI] rpcclient not found!
E [22/Aug/2011:20:04:41 +0000] cupsdAuthorize: Authentication failed for user "root"!
E [22/Aug/2011:20:05:33 +0000] [CGI] smbclient not found!
E [22/Aug/2011:20:05:33 +0000] [CGI] rpcclient not found!
E [22/Aug/2011:20:06:44 +0000] Filter "/usr/local/lib/cups/filter/rastertogutenprint.5.2" for printer "hpj5p" not owned by root
E [22/Aug/2011:20:06:49 +0000] Filter "/usr/local/lib/cups/filter/rastertogutenprint.5.2" for printer "hpj5p" not owned by root
E [22/Aug/2011:20:06:59 +0000] Unable to execute /usr/local/lib/cups/filter/rastertogutenprint.5.2: insecure file permissions (0100755)
E [22/Aug/2011:20:06:59 +0000] [Job 1] Unable to start filter "rastertogutenprint.5.2" - Operation not permitted.
E [22/Aug/2011:20:06:59 +0000] [Job 1] Stopping job because the scheduler could not execute a filter.
E [22/Aug/2011:20:07:12 +0000] [CGI] smbclient not found!
E [22/Aug/2011:20:07:12 +0000] [CGI] rpcclient not found!
E [22/Aug/2011:20:08:38 +0000] [CGI] smbclient not found!
E [22/Aug/2011:20:08:38 +0000] [CGI] rpcclient not found!
E [22/Aug/2011:20:10:36 +0000] [CGI] smbclient not found!
E [22/Aug/2011:20:10:36 +0000] [CGI] rpcclient not found!
E [22/Aug/2011:20:13:27 +0000] Unable to execute /usr/local/lib/cups/filter/rastertogutenprint.5.2: insecure file permissions (0100755)
E [22/Aug/2011:20:13:27 +0000] [Job 2] Unable to start filter "rastertogutenprint.5.2" - Operation not permitted.
E [22/Aug/2011:20:13:27 +0000] [Job 2] Stopping job because the scheduler could not execute a filter.
E [22/Aug/2011:20:13:54 +0000] Unable to execute /usr/local/lib/cups/filter/rastertogutenprint.5.2: insecure file permissions (0100755)
E [22/Aug/2011:20:13:54 +0000] [Job 3] Unable to start filter "rastertogutenprint.5.2" - Operation not permitted.
E [22/Aug/2011:20:13:54 +0000] [Job 3] Stopping job because the scheduler could not execute a filter.
E [22/Aug/2011:20:14:27 +0000] [CGI] smbclient not found!
E [22/Aug/2011:20:14:27 +0000] [CGI] rpcclient not found!
===================================================
-
Hi beerstein
Did you remember to set the root password?
-
thank you so much
yes - but I set the root password during the http://localhost:631 setup procedure.
May be I need to set that root password before I start the cups config thing in firefox and make it permanent
that it is there when I set up the printer?
BTW: I have /opt /home and /tce - persistance Do I still need to have the passwd line: usr/bin/passwd
in my .filetool.lst?
-
May be I need to set that root password before I start the cups config thing in firefox and make it permanent
that it is there when I set up the printer?
Yes, you need to set the root password before you start the cups daemon
-
Hi beerstein
I believe these are the lines you want to add to /opt/.filetool.lst
etc/passwd
etc/group
etc/shadow
etc/gshadow
I think it might be considered to be bad practice to set your password using filetool.lst.
-
This topic sounded so familiar I thought I was experiencing deja vu.
http://forum.tinycorelinux.net/index.php/topic,9065.0.html
-
yes you are correct / I had a fight already with this subject but I think I am getting closer
to victory:
Here is a summary of what I have done so far:
on boot:
cups
gutenprint * i think this is not needed here
ghostscript
ghostscript-common
cups-smb
poppler - I learned that somewhere
dbus
libgs
I moved the samsung M4500 ppd file to /usr/local/etc/cups/ppd
and changed ownership to root
Now my last error log was:
==========================================================
E [25/Aug/2011:15:10:11 +0000] [CGI] smbclient not found!
E [25/Aug/2011:15:10:11 +0000] [CGI] rpcclient not found!
E [25/Aug/2011:15:10:27 +0000] [CGI] smbclient not found!
E [25/Aug/2011:15:10:27 +0000] [CGI] rpcclient not found!
E [25/Aug/2011:15:11:10 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
E [25/Aug/2011:15:11:17 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
E [25/Aug/2011:15:12:03 +0000] Filter "/usr/local/lib/cups/filter/foomatic-rip" for printer "Samsung_SCX-4x21_Series" not owned by root
E [25/Aug/2011:15:12:03 +0000] Filter "/usr/local/lib/cups/filter/foomatic-rip" for printer "Samsung_SCX-4x21_Series" not owned by root
E [25/Aug/2011:15:12:03 +0000] Filter directory "/usr/local/lib/cups/filter" for printer "Samsung_SCX-4x21_Series" not owned by root
E [25/Aug/2011:15:12:09 +0000] Filter "/usr/local/lib/cups/filter/foomatic-rip" for printer "Samsung_SCX-4x21_Series" not owned by root
E [25/Aug/2011:15:12:09 +0000] Filter "/usr/local/lib/cups/filter/foomatic-rip" for printer "Samsung_SCX-4x21_Series" not owned by root
E [25/Aug/2011:15:12:23 +0000] Unable to execute /usr/local/lib/cups/filter/foomatic-rip: insecure file permissions (0100755)
E [25/Aug/2011:15:12:23 +0000] [Job 5] Unable to start filter "foomatic-rip" - Operation not permitted.
E [25/Aug/2011:15:12:23 +0000] [Job 5] Stopping job because the scheduler could not execute a filter.
E [25/Aug/2011:15:12:30 +0000] [CGI] smbclient not found!
E [25/Aug/2011:15:12:30 +0000] [CGI] rpcclient not found!
===============================================
the system is searching for a smb client and rpc client ==== what does this mean_
for foomatic-rip I can see that the ownership is tc and staff
the real file (no link) sits in /tmp/tcloop/foomatic-rip/usr/local/bin
but I am not able to change ownership
-
Hi beerstein
smbclient and rpcclient are part of samba.
-
hi: thank you for this hint - I will install it
btw: I never heard that one needs to install samba in order to get cups printers running
I even remember an article saying === print server without samba just cups
-
I installed samba on boot / did not start the daemon
and tried a new printer install = here is the error log - better than ever but I do not know how to fix this
---------------------------------------------------------------------
after installing samba but not starting just installed on boot
now this error message>
E [25/Aug/2011:17:05:17 +0000] Unable to execute /usr/local/lib/cups/filter/foomatic-rip: insecure file permissions (0100755)
E [25/Aug/2011:17:05:17 +0000] [Job 4] Unable to start filter "foomatic-rip" - Operation not permitted.
E [25/Aug/2011:17:05:17 +0000] [Job 4] Stopping job because the scheduler could not execute a filter.
If somebody could help me on how to change the permission on this read only file I might have the solution WOW
-
btw: I never heard that one needs to install samba in order to get cups printers running
I even remember an article saying === print server without samba just cups
You are quite correct Samba is not required for printing via CUPS. They are both able to work independently of each other.
To illustrate this...
Scenario 1
In a commercial situation file and print sharing may be provided to a common group of employees. In such circumstances, CUPS provides the ability to print to a shared printer while Samba provides the same group with networked shares. Access to the shares is normally controlled by Samba. To prevent unauthorised use of the printing facilities it is common practice to also control access via Samba. It is because Samba is already installed plus the requirement for control that the printer is made available via Samba.
Scenario 2
In a domestic situation file and print sharing may be provided to a husband and wife. Here, CUPS provides the ability to print to a shared printer while Samba provides to networked shares. Access to the shares is controlled as usual by Samba. Access control to the printer is not regarded as important, therefore uncontrolled access to the printer is provided directly via CUPS rather than via Samba.
If uncontrolled access to the printer is OK in your situation Samba is not required.
...now this error message>
E [25/Aug/2011:17:05:17 +0000] Unable to execute /usr/local/lib/cups/filter/foomatic-rip: insecure file permissions (0100755)
E [25/Aug/2011:17:05:17 +0000] [Job 4] Unable to start filter "foomatic-rip" - Operation not permitted.
E [25/Aug/2011:17:05:17 +0000] [Job 4] Stopping job because the scheduler could not execute a filter.
According to your previous attempt you have overcome this problem. See reply #22 onwards:
http://forum.tinycorelinux.net/index.php/topic,9065.15.html
-
on boot:
...
cups-smb
..
libgs
you don't need cups-smb and you (most probably) don't need libgs
-
Thank you for this samK:
I have not done this and forgot about it. You recommended it in post #23 in this other thread. I only remember that I was not able to rename and delete that foomatic-rip thing. So I stopped following this line.
I will do this now and post results:
Try something like...
1)
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
IOn the samba part - I think foomatic-rip is the filter which needs smb.
Thank you so much for the concise explanations here samK
-
IOn the samba part - I think foomatic-rip is the filter which needs smb.
I am not familiar with either the physical printer or the PPD file you are using but would not expect this reliance on Samba to be part of the PPD. What makes you suspect Samba is required by the PPD file? Is it documented somewhere?
For the purposes of troubleshooting, I would lean towards using the most simple setup possible in order to obtain a local working configuration. In this regard I am inclined towards the advice offered by, Juanito in reply #14. Dropping all Samba elements may simplify the initial set-up stage. Once the printer is working correctly as a local printer, it may then be easier to make it operate as a networked printer.
-
Hi: I did the following:
------------------------------------------------------------------------------------------------------------------------------------------------------------
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
----------------------------------------------------------------------------------------------------------------------------------------------------------
although it took a while to learn how to link a file (symlink or hard link) I used sym link in ROX Filer.
When I try to print a test page - no error messages - job completed but no print out.
I tried to use the LPT1: and the USB port.
Now I do not know what to do any more. Maybe somebody has an idea?
-
I can see that the existence of the cups1311 and cups extensions and their different deps and different "raison d'etre" is causing some grief.
I believe that one of the ideas behind the cups1311 extension (and thus foomatic-rip, which is not required for a lot of/most/all printer drivers using the cups extension) was that the user did not need to be root to perform some of the tasks - this probably explains why there seems to be a permissions issue.
As I recall, the foomatic-rip extension required libgs_ps (as opposed to libgs), is it loaded?
Things may work with libgs, but you'll probably need a symlink /usr/local/lib/libgs.so.8 -> libgs.so.9
-
@Juanito
I believe that one of the ideas behind the cups1311 extension (and thus foomatic-rip, which is not required for a lot of/most/all printer drivers using the cups extension) was that the user did not need to be root to perform some of the tasks - this probably explains why there seems to be a permissions issue.
Not meaning to be in any way contentious, I may simply have missed your point...
Only cups.tcz (CUPS 1.4.5) is used here and at least one printer requires Foomatic-Rip to be coaxed into life. This produces the permissions symptoms reported by the OP. Relocating to /opt (as previously described) resolves the matter completely and enables printing to be conducted as expected.
@beerstein
although it took a while to learn how to link a file (symlink or hard link) I used sym link in ROX Filer.
Not sure why this is so. In http://forum.tinycorelinux.net/index.php/topic,9065.15.html:
- Reply #23 gave the steps that you quote in this current thread
- Reply #24 requests guidance on how to conduct the steps
- Reply #25 gives the commands to conduct the steps
When I try to print a test page - no error messages - job completed but no print out.
I tried to use the LPT1: and the USB port.
When printing via the parallel port the kernel module lp is required. To confirm whether it is loaded:
lsmod
If it is not loaded have a look at:
http://forum.tinycorelinux.net/index.php/topic,9112.0.html
Is the printer known to work OK? Does it produce a paper print using only its inbuilt self-test function?
-
Not meaning to be in any way contentious, I may simply have missed your point...
Only cups.tcz (CUPS 1.4.5) is used here and at least one printer requires Foomatic-Rip to be coaxed into life. This produces the permissions symptoms reported by the OP. Relocating to /opt (as previously described) resolves the matter completely and enables printing to be conducted as expected.
That's good to know - looks like we need a foomatic-rip1311 and foomatic-rip extension - the latter having the correct permissions (i.e. those produced by make install).
..or we bin cups1311 in tc-4.x
-
That's good to know - looks like we need a foomatic-rip1311 and foomatic-rip extension - the latter having the correct permissions (i.e. those produced by make install).
Preventing the permissions issue will be a welcome step.
..or we bin cups1311 in tc-4.x
Doing this in isolation would still leave the permissions issue with the current cups.tcz in conjunction with foomatic-rip.
-
Hi:
I eliminated almost all problems. - with your help - thank you
I fixed the ownership problem.
gs.tcz is installed on boot
the error log looks good exept the following:
============================================================
envp[28]="FINAL_CONTENT_TYPE=printer/samsung"
D [01/Sep/2011:17:23:51 +0000] [Job 4] Started filter /usr/local/lib/cups/filter/pdftops (PID 5893)
D [01/Sep/2011:17:23:51 +0000] [Job 4] Started filter /usr/local/lib/cups/filter/foomatic-rip (PID 5894)
D [01/Sep/2011:17:23:51 +0000] [Job 4] Started backend /usr/local/lib/cups/backend/parallel (PID 5895)
D [01/Sep/2011:17:23:51 +0000] [Job 4] STATE: +connecting-to-device
D [01/Sep/2011:17:23:51 +0000] [Job 4] Started filter gs (PID 5896)
D [01/Sep/2011:17:23:51 +0000] [Job 4] Started filter pstops (PID 5897)
D [01/Sep/2011:17:23:51 +0000] [Job 4] Set job-printer-state-message to "Unable to execute gs program: No such file or directory", current level=ERROR
D [01/Sep/2011:17:23:51 +0000] [Job 4] PID 5896 (gs) stopped with status 1!
D [01/Sep/2011:17:23:51 +0000] [Job 4] PID 5897 (pstops) stopped with status 1!
D [01/Sep/2011:17:23:51 +0000] [Job 4] Getting input from file
D [01/Sep/2011:17:23:51 +0000] [Job 4] foomatic-rip version 4.0.2.211 running...
D [01/Sep/2011:17:23:51 +0000] [Job 4] Parsing PPD file ...
D [01/Sep/2011:17:23:51 +0000] [Job 4] Added option Manualfeed
D [01/Sep/2011:17:23:51 +0000] [Job 4] Added option Resolution
D [01/Sep/2011:17:23:51 +0000] [Job 4] Added option Economode
======================================================
this is just part of the error log with strange behavior.
BTW: I need perl also on boot.
I have the newer cups running.libgs, fibgsf and libgs_ps are also on boot.
I think I am close. I will not give up.
Any ideas how I can continue?
-
You need either libgs or libgs_ps, but not both.
I would suggest you try loading the ghostscript extension and, if that doesn't work, load the ghostscript_common extension as well
-
Hi - thanks for the help.
I cleaned up the on-boot stuff and now have only the following cups related tcz´s left:
cups 1.4.5
ghostscript
foomatic-rip
libgs_ps
all modules related to lp are loaded. Now I have the ownership problem again. After reboot the "real" foomatic-rip file
in /opt/foomatic-rip/foomatic-rip shows root/staff instead of root/root ownership.
The same applies to the link (/usr/local/lib/cups/filter/foomatic-rip). Is there a way to keep the ownership alive after reboot?
BTW: I was able to print to a cups server on a remote machine - but only the print out of the test page worked. I was not able to print from a TC application on my machine. On that remote server a HP 5P LJ is installed and working in Suse Linux. I think this is related to an "allowed users" problem within the cups.conf on the cups print server.
-
but only the print out of the test page worked.
Are you able to print a test page on the local machine?
-
no - I was not able to print anything to the local Samsung printer.
The error messages when printing a test page showed the ownership problems
But when the ownership problem was fixed (manually) and I tried to print from Leafpad
I got a longer message output where everything looked ok exept a few lines where it said
something like "empty file printed"
here is a print out:
==========================================================================
Closing foomatic-rip.
D [28/Aug/2011:15:26:57 +0000] [Job 19] End of messages
D [28/Aug/2011:15:26:57 +0000] [Job 19] printer-state=3(idle)
D [28/Aug/2011:15:26:57 +0000] [Job 19] printer-state-message="Empty print file!"
D [28/Aug/2011:15:26:57 +0000] [Job 19] printer-state-reasons=none
E [28/Aug/2011:15:33:30 +0000] Filter "/usr/local/lib/cups/filter/rastertogutenprint.5.2" for printer "samsung2" not owned by root
E [28/Aug/2011:15:33:38 +0000] Filter "/usr/local/lib/cups/filter/rastertogutenprint.5.2" for printer "samsung2" not owned by root
E [28/Aug/2011:15:33:48 +0000] Unable to execute /usr/local/lib/cups/filter/rastertogutenprint.5.2: insecure file permissions (0100755)
E [28/Aug/2011:15:33:48 +0000] [Job 20] Unable to start filter "rastertogutenprint.5.2" - Operation not permitted.
E [28/Aug/2011:15:33:48 +0000] [Job 20] Stopping job because the scheduler could not execute a filter.
E [28/Aug/2011:15:35:33 +0000] Filter "/usr/local/lib/cups/filter/rastertogutenprint.5.2" for printer "samsung2" not owned by root
E [28/Aug/2011:15:35:39 +0000] Unable to execute /usr/local/lib/cups/filter/rastertogutenprint.5.2: insecure file permissions (0100755)
E [28/Aug/2011:15:35:39 +0000] [Job 21] Unable to start filter "rastertogutenprint.5.2" - Operation not permitted.
E [28/Aug/2011:15:35:39 +0000] [Job 21] Stopping job because the scheduler could not execute a filter.
=======================================================================
-
I just sent you a pm with a foomatic-rip extension with the correct permissions - note that it has libgs as a dep. not libgs_ps
-
Hi Juanito: thanks for the new foomatic-rip. I replaced the old one and the ownership problem
seems to be solved. I also loaded libgs instead of libgs_ps.
Now the only error message I am getting, when I try to print a test page:
E [06/Sep/2011:14:24:19 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
E [06/Sep/2011:14:25:20 +0000] [cups-driverd] Unable to open driver directory "/usr/local/lib/cups/driver": No such file or directory
E [06/Sep/2011:14:25:20 +0000] [cups-driverd] Unable to open driver directory "/usr/local/lib/cups/driver": No such file or directory
I did not know that the system expects a driver in addition to the PPD file. I always thought that the PPD file is the driver.. There is a driver on the CD which came with the printer, but this is an .rpm
with an install script which does not completely install on my TC.
I downloaded a linux driver for this model from the samsung website. This is a binary tgz file and I need to install that first. I have not done it before but I will try.
What do you think I should do next?
Thank you
-
Hi beerstein
::1:631
I think that notation is for IP6. I don't know if it doesn't support IP6, or if it just doesn't like that address.
At any rate, unless you are running billions of computers locally, you probably should be using IP4.
-
I don't think any of those errors are a problem, do you have the log level set to debug in cupsd.conf?
-
Hi Rich: Thanks´s
I did not set up IP6 on purpose - I need to change that - but where?
In panel network set up? or ?
-
I have to check cupsd.conf - but I remember that I had probles with read only errors when I tried to modify that file
Ich will check and post here
Thank you
-
Hi beerstein
Maybe you are loading the IPV6 extension?
-
Hi:
I fixed the IPV6 problem. This was set in /etc/hosts
I did not set this up. This comes with the installation
here is the line:
#::1 ip6-localhost ip6-loopback
Now I only get that missing driver error:
E [08/Sep/2011:16:53:39 +0000] [cups-driverd] Unable to open driver directory "/usr/local/lib/cups/driver": No such file or directory
E [08/Sep/2011:16:53:39 +0000] [cups-driverd] Unable to open driver directory "/usr/local/lib/cups/driver": No such file or directory
E [08/Sep/2011:16:55:00 +0000] [Job 2] Unable to execute gs program: No such file or directory
E [08/Sep/2011:16:55:00 +0000] [Job 2] Empty print file!
E [08/Sep/2011:16:55:00 +0000] [Job 2] Job stopped due to filter errors; please consult the error_log file for details.
D [08/
I did set the LogLevel in cupsd.conf to debug!
I think I need to install a driver in addition to the PPD file. A PPD file is probably not enough to install a printer.
-
Hi beerstein
I just checked on my machine. /usr/local/lib/cups/driver is a path it's looking for, not a file.
On my machine that driver subdirectory contains a link to gutenprint.5.2
-
thank's I will try that.
BTW: There was a package with linux drivers on the CD which came with the printer.
I tried to start the ./install.sh script, but I received funny and buggy responses on the screen
-
Hi beerstein
but I received funny and buggy responses on the screen
You mean like "Knock knock, who's there" and "Leave me alone, I'll install the drivers later"?
-
yes - strange things happen:
I put gutenprint.tcz on boot and after reboot there was a:
/usr/local/lib/cups/driver/
folder with the gutenprint 5.2 link
After that the "missing driver" error disappeared, but another error showed up:
"unable to execute gs program" - this was easy - I just added gs.tcz to onboot.
After all that the printer made some noise after I printed a testpage - but no testpage.
I think the problem could be related to the foomatic-rip / gutenprint and ghostscript versions.
I will dig into this and post back
-
another error showed up:
"unable to execute gs program" - this was easy - I just added gs.tcz to onboot.
After all that the printer made some noise after I printed a testpage - but no testpage.
I think the problem could be related to the foomatic-rip / gutenprint and ghostscript versions.
My fallible memory may be playing tricks but I have a vague recollection of these symptoms (way back when). IIRC replacing gs.tcz with ghostscript.tcz and ghostscript_common worked here.
-
Hi: I replaced gs.tcz with both extensions you mentioned. But then the error log asked for ps again.
So I needed ps.tcz also and put this one "on boot" again.
printing through lp0 a noise indicates that something arrived at the printer. printing via usb no reaction at all.
I think the problem is related to the foomatic-rip function. There is a filter.conf file
in /usr/local/etc/foomatic which is not edited and is the same as the filter.conf.sample
It seems to me that this file need attention and modified. What do you think?
-
Hi samK: here is part of what I get in error log:
=================================================
D [10/Sep/2011:15:33:56 +0000] [CGI] http=0xb7d52948
D [10/Sep/2011:15:33:56 +0000] [CGI] org.cups.sid cookie is "e619adfd7bfe7f685f24c49358191bd5"
D [10/Sep/2011:15:33:56 +0000] [CGI] No form data, showing main menu...
D [10/Sep/2011:15:33:56 +0000] cupsdReadClient: 16 POST / HTTP/1.1
D [10/Sep/2011:15:33:56 +0000] cupsdAuthorize: No authentication data provided.
D [10/Sep/2011:15:33:56 +0000] cupsdReadClient: 16 1.1 Get-Subscriptions 1
D [10/Sep/2011:15:33:56 +0000] Get-Subscriptions ipp://localhost/
D [10/Sep/2011:15:33:56 +0000] Get-Subscriptions client-error-not-found: No subscriptions found.
D [10/Sep/2011:15:33:56 +0000] Returning IPP client-error-not-found for Get-Subscriptions (ipp://localhost/) from localhost
D [10/Sep/2011:15:33:56 +0000] Script header: Content-Type: text/html;charset=utf-8
D [10/Sep/2011:15:33:56 +0000] Script header:
D [10/Sep/2011:15:33:56 +0000] cupsdReadClient: 16 WAITING Closing on EOF
D [10/Sep/2011:15:33:56 +0000] cupsdCloseClient: 16
D [10/Sep/2011:15:33:56 +0000] cupsdSetBusyState: Dirty files
D [10/Sep/2011:15:33:56 +0000] PID 5164 (/usr/local/lib/cups/cgi-bin/admin.cgi) exited with no errors.
D [10/Sep/2011:15:33:58 +0000] cupsdReadClient: 10 GET /admin/log/error_log HTTP/1.1
D [10/Sep/2011:15:33:58 +0000] cupsdSetBusyState: Active clients and dirty files
D [10/Sep/2011:15:33:58 +0000] cupsdAuthorize: No authentication data provided.
-
D [10/Sep/2011:15:33:56 +0000] Returning IPP client-error-not-found for Get-Subscriptions (ipp://localhost/) from localhost
This looks strange - what uri are you using for your printer?
(i.e. something that looks similar to: hp:/usb/OfficeJet_K80?serial=ES0911401VOH)
-
Hi: How can I find the uri of my printer?
Where do I have to look for?
When I print through lp0 (parallel printer) the printer makes a noise which indicates the "printer warm up is initiated"
after that nothing happens. On screen the progress bar moves perfectly and it seems that the page is going to be printed.
-
I'm not at a linux machine right now, but if you use the cups browser interface, you should be able to find the printer(s) you created and look at their properties to find the uri cups is trying to use.
-
Hi:
I can see:
parallel:/dev/lp0
in cups http://localhost:631 (http://localhost:631)
the errors I now can see are also somehow related to localhost. as you mentioned already.
My /etc/hosts file shows 127.0.0.1 and the IPv6 stuff, which I always have to #-out after reboot.
I have not found a way to make this permanent.
this is my /etc/hosts:
--------------------------------------------------------
127.0.0.1 box localhost
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#f02::2 ip6-allrouters
#ff02::3 ip6-allhosts
--------------------------------------------------------------
I have two NICs installed eth0 and eth1
-
when I looked at other lin distris I discovered that their latest
versions still use the older version of cups together with a foomatic-rip
file which is Perl script.
The TCL foomatic-rip file seems to be another executable file but not a Perl script.
I might go back to the older cups version and try their foomatic-rip filter?
What do you think?
-
I can't help with the CUPS related problems, but you mention that you have two NICs. In this case it might be prudent to show us the output of ifconfig ; route
I have not found a way to make this permanent.
If you want to make a changes to a file in '/etc' persistent it's the same story as for passwords (http://wiki.tinycorelinux.net/wiki:passwd#save_passwords_using_backup) (of course replacing file names accordingly). Or you could add a command like sed -i '/::/s/^/#/' /etc/hosts to '/opt/bootlocal.sh', which would ensure to comment out all lines in '/etc/hosts' that contain '::' each time your system starts.
-
I might go back to the older cups version and try their foomatic-rip filter?
What do you think?
Since I moved from cups-1.3.x to cups-1.4.x, I don't use foomatic-rip so it's hard to say..
-
Hi: I fixed the IPv6 problems by making the hosts file permanent - thanks for your hint
After all this work I think the problem is foomatic-rip related. The cups forum has some
posts about foomatic-rip problems. So as a recommendation I would say that printer drivers
which need foomatic-rip are not easy to install in TCL.
these are the errors I am now left with:
E [18/Sep/2011:18:11:04 +0000] Filter directory "/usr/local/lib/cups/filter" for printer "Samsung_SCX-4x21_Series" not owned by root
E [18/Sep/2011:18:17:22 +0000] [Job 3] Unable to execute gs program: No such file or directory
E [18/Sep/2011:18:17:22 +0000] [Job 3] Empty print file!
E [18/Sep/2011:18:17:22 +0000] [Job 3] Job stopped due to filter errors; please consult the error_log file for details.
D [18/Sep/2011:18:17:22 +0000] [Job 3] Started filter gs (PID 5578)
D [18/Sep/2011:18:17:22 +0000] [Job 3] Started filter pstops (PID 5579)
D [18/Sep/2011:18:17:22 +0000] [Job 3] Getting input from file
D [18/Sep/2011:18:17:22 +0000] [Job 3] Set job-printer-state-message to "Unable to execute gs program: No such file or directory", current level=ERROR
D [18/Sep/2011:18:17:22 +0000] [Job 3] PID 5578 (gs) stopped with status 1!
D [18/Sep/2011:18:17:22 +0000] [Job 3] PID 5579 (pstops) stopped with status 1!
D [18/Sep/2011:18:17:22 +0000] [Job 3] foomatic-rip version 4.0.2.211 running...
D [18/Sep/2011:18:17:22 +0000] [Job 3] Parsing PPD file ...
D [18/Sep/2011:18:17:22 +0
any ideas?
-
these are the errors I am now left with:
E [18/Sep/2011:18:11:04 +0000] Filter directory "/usr/local/lib/cups/filter" for printer "Samsung_SCX-4x21_Series" not owned by root
...
Referring back to the previous thread on this topic:
http://forum.tinycorelinux.net/index.php/topic,9065.15.html (http://forum.tinycorelinux.net/index.php/topic,9065.15.html)
you reported the same error message in reply #22
In replies #23 and #25, a way to deal with this described. It is difficult to give further advice due to your use of the foomatic-rip private extension supplied by, Juanito.
-
E [18/Sep/2011:18:17:22 +0000] [Job 3] Unable to execute gs program: No such file or directory
This looks like either gs or, more likely, a dep of gs is missing:
1. Do you have ghostscript and ghostscript_common loaded?
2. What does $ ldd `which gs`
give?
-
Hi Juanito
I don't think you meant to put that quote mark in front of the ldd command, did you?
-
In fact I meant to put quotes before and after it..
-
hi juanito: here is what i got:
tc@box:~$ ldd 'which gs'
./which: error while loading shared libraries: ./which: cannot open shared objec t file: No such file or directory
./gs: error while loading shared libraries: ./gs: cannot open shared object file : No such file or directory
I think I am running in circles. Now I have encountered the ownership problem again and I need to fix this first. I also googled foomatic-rip and samsung and learned that foomatic might need
hpijs or foomatic might be included in hpijs?
foomatic needs ghostscript this is for sure
another thing I learned is that the Samsung ML 4500 is similar to ML 4300 and even ML 2250
and there is a website with samsung drivers called "spliX"
Now I need to fix the ownership problem again.
-
Hi beerstein
You used the apostrophe, you want the single quote mark, it's on the ~ key.
Or you cut and paste it from Juanito's original post.
-
ok thanks - I did that and got no output:
tc@box:~$ ldd `which gs`
tc@box:~$
somehow ps can not be executed. I have no idea where the executable is located.
It shows that it is installed along with all the other stuff such as:
libcups,libgs,ghostscript, ghostscript_common.gutenprint,foomatic-rip (special version)
-
when I try to print a test page ---- no error in web http://localhost:631 (http://localhost:631) error.log
but when I try to print in Leafpad I get this:
samsung-4 Leafpad job #1 tc 6k Unknown stopped
"Unable to execute gs program: No such file or directory"
-
Hi beerstein
Sounds like your path may have gotten hosed.
What is the output for
/bin/echo $PATH
-
hi:
here is what I got:
tc@box:~$ /bin/echo $PATH
/home/tc/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/mnt/hda9/tce/ondemand
tc@box:~$
-
aha!
I searched for gs using mc and found a broken link in:
/usr/local/bin/gs
the link pointed to:
/tmp/tcloop/gs-8.7/usr/local/bin (is not accessible)
because there is no /gs-8.7 folder
instead of that there is a gs folder which leads to the real gs file.
So - how can I change that and make it permanent?
-
Hi beerstein
Try this
sudo rm /usr/local/bin/gs
sudo ln -s /tmp/tcloop/gs/usr/local/bin /usr/local/bin/gs
-
/tmp/tcloop/gs-8.7/usr/local/bin (is not accessible)
This implies you loaded an extension named gs-8.7 - there is an extension named gs-8.70 in the tc-2.x repo..
Are you using scatter mode by any chance? Otherwise it's hard to imagine how you have the remnants from a tc-2.x extension present
-
I have no idea how this extension got into my setup.
I am using frugal and I have /home/tc shared with another Linux distribution on the same partition (hda5) the other user in home
has /home/other_user. This way I can easily exchange data between my two distributions.
My /tce sits on hda9 and I boot from /boot on hda3
Since I have /opt also on hda9 it shares the /opt from that other Linux distri on hda9 - is this a no no ?
Thank's
-
Hi:
I tried almost everything to get this Samsung working on my TinyCore 3.8.x but I ran into all kinds of problems.
When I was able to fix one glitch I descovered two new ones. I am aware that printing in Linux is not an easy thing.
Interesting discoveries along the way: (I used cups 1311 and the latest version - cups- from the repo)
1) On some machines even an old HP laserJet3 is not listed in the drivers list. (gutenprint.tcz installed)
2) At this moment the openprinting.org site which holds the drivers is down
3) sometimes the Testpage printing works on a HP DJ 690C but Leafpad does not print, when I install Abiword then Abiword all of the sudden is able to print.
4) On some machines I was able to get a HP LJ 5P and a Canon i550 to work perfectly. Even Leafpad was able to
print on these two printers. (cups 1311)
So I decided to start from scratch using TCL 4.01. When I use the newer cups I run into the ownership problems again, the error message even asks for an smb client and some pdf stuff. The older 1311 version seems to work better and I was able to print a Testpage on a HPLJ 690C but Leafpad did not print.
I will continue to work on this until I can come up with a clear step by step description on how to set up some specific printers.
Everyone who wants to help me is welcome
Thank you
-
When I use the newer cups I run into the ownership problems again
did you load foomatic-rip? If so, the ownership problems come from here - it was made to work with cups1311, not cups
the error message even asks for an smb client and some pdf stuff.
the smb client message is harmless, it allows samba printing when samba3 is present.
-
I suggest we remove cups1311 from the tc-4.x repo and replace the current foomatic-rip with one with the correct permissions.
The current situation (cups1311 and cups) is confusing and makes it very difficult to troubleshoot users problems.
-
Hi: Along the way I also dicovered that Abiword has the new cups extension as a dependency.
So when I start out using cups1311 and install a printer, later when I install abiword the other cups is installed too.
Somewhere in the posts I red that it is not recommended to have both cups installed?
What do I have to do if just want to install a postscript driver? or a pdf driver?
to generate a postscript or pdf document file ?
-
So when I start out using cups1311 and install a printer, later when I install abiword the other cups is installed too.
Somewhere in the posts I red that it is not recommended to have both cups installed?
Having a cups1311 and cups has generated a lot of confusion so cups1311 and cups-pdf1311 have been removed from the tc-4.x repo.
A revised version of foomatic-rip with the original permissions has been uploaded to the tc-4.x repo.
It will be easier to help you (for me at least) if you do not use cups1311
What do I have to do if just want to install a postscript driver? or a pdf driver?
to generate a postscript or pdf document file ?
Several applications will generate ps or pdf files and the ghostscript_common extension has pdf2ps and ps2pdf convertors. You could also use the cups-pdf extension
-
Hi: Thank you for helping me here. In the meantime I was able to install a HP LaserJet3 and a
HP Deskjet390C on a pc using TCL 4.01. I had to to switch to the old cups1311 and used gutenprint and hpijs-dynappds.tcz. I was not able to install the HPLJ3 from the newer cups. I will ty that again. When I got this working I will jump back to the Samsung printer.
On that HPLJ3 I can print a test page and in abiword but I am not able to print in Leafpad. (empty page) I saw a thread on that problem and need to study this one too.
-
In the meantime I was able to install a HP LaserJet3 and a HP Deskjet390C on a pc using TCL 4.01. I had to to switch to the old cups1311 and used gutenprint and hpijs-dynappds.tcz. I was not able to install the HPLJ3 from the newer cups.
Since hpijs-dynappds is by the same maintainer as cups1311, I would guess that its permissions have been changed, which might explain why it will not work with the standard cups extension.
For hp printers, I'd suggest using cups + hplip-2.7