WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: samsung SCX-4521F connect to TC almost there  (Read 30642 times)

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
samsung SCX-4521F connect to TC almost there
« 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.

t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: samsung SCX-4521F connect to TC almost there
« Reply #1 on: July 23, 2011, 09:54:34 AM »
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:
Code: [Select]
$ sudo cp /tmp/tcloop/foomatic-rip/user/local/bin/foomatic-rip /usr/local/bin
..and see if things work

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: samsung SCX-4521F connect to TC almost there
« Reply #2 on: July 23, 2011, 10:03:06 AM »
btw, I just had a look at the foomatic-rip extension and it looks OK to me:
Code: [Select]
$ 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
« Last Edit: July 23, 2011, 10:06:42 AM by Juanito »

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F connect to TC almost there
« Reply #3 on: August 23, 2011, 08:11:48 AM »
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!
===================================================



t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: samsung SCX-4521F connect to TC almost there
« Reply #4 on: August 23, 2011, 11:00:40 AM »
Hi beerstein
Did you remember to set the root password?

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F connect to TC almost there
« Reply #5 on: August 24, 2011, 08:20:30 AM »
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?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: samsung SCX-4521F connect to TC almost there
« Reply #6 on: August 24, 2011, 12:46:52 PM »
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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: samsung SCX-4521F connect to TC almost there
« Reply #7 on: August 24, 2011, 02:16:59 PM »
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.
« Last Edit: August 26, 2011, 07:30:15 PM by Rich »

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: samsung SCX-4521F connect to TC almost there
« Reply #8 on: August 25, 2011, 02:41:29 AM »
This topic sounded so familiar I thought I was experiencing deja vu.
http://forum.tinycorelinux.net/index.php/topic,9065.0.html
   

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F connect to TC almost there
« Reply #9 on: August 25, 2011, 08:45:25 AM »
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
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: samsung SCX-4521F connect to TC almost there
« Reply #10 on: August 25, 2011, 09:04:24 AM »
Hi beerstein
smbclient  and  rpcclient  are part of samba.

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F connect to TC almost there
« Reply #11 on: August 25, 2011, 09:40:57 AM »
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
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F connect to TC almost there
« Reply #12 on: August 25, 2011, 09:55:43 AM »
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
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: samsung SCX-4521F connect to TC almost there
« Reply #13 on: August 25, 2011, 01:22:14 PM »
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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: samsung SCX-4521F connect to TC almost there
« Reply #14 on: August 25, 2011, 05:49:27 PM »
on boot:
...
cups-smb
..
libgs

you don't need cups-smb and you (most probably) don't need libgs