WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F connect to TC almost there
« Reply #45 on: September 12, 2011, 08:05:47 AM »
Hi:
I can see:

parallel:/dev/lp0

in cups 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
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 #46 on: September 12, 2011, 03:18:08 PM »
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?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: samsung SCX-4521F connect to TC almost there
« Reply #47 on: September 12, 2011, 05:58:55 PM »
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

Quote
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 (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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: samsung SCX-4521F connect to TC almost there
« Reply #48 on: September 12, 2011, 11:25:48 PM »
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..

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F connect to TC almost there
« Reply #49 on: September 19, 2011, 07:28:48 AM »
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?
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 #50 on: September 19, 2011, 08:51:37 AM »
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
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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: samsung SCX-4521F connect to TC almost there
« Reply #51 on: September 19, 2011, 10:19:29 AM »
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
Code: [Select]
$ ldd `which gs`give?
« Last Edit: September 19, 2011, 10:45:02 AM by Juanito »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: samsung SCX-4521F connect to TC almost there
« Reply #52 on: September 19, 2011, 10:33:36 AM »
Hi Juanito
I don't think you meant to put that quote mark in front of the ldd command, did you?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: samsung SCX-4521F connect to TC almost there
« Reply #53 on: September 19, 2011, 10:43:39 AM »
In fact I meant to put quotes before and after it..

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F connect to TC almost there
« Reply #54 on: September 19, 2011, 12:38:35 PM »
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.
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: samsung SCX-4521F connect to TC almost there
« Reply #55 on: September 19, 2011, 12:53:13 PM »
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.

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F connect to TC almost there
« Reply #56 on: September 19, 2011, 01:20:03 PM »
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)
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 #57 on: September 19, 2011, 01:26:20 PM »
when I try to print a test page ---- no error in web 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"    
 
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: samsung SCX-4521F connect to TC almost there
« Reply #58 on: September 19, 2011, 01:29:54 PM »
Hi beerstein
Sounds like your path may have gotten hosed.
What is the output for
Code: [Select]
/bin/echo $PATH

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: samsung SCX-4521F connect to TC almost there
« Reply #59 on: September 19, 2011, 02:42:26 PM »
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:~$

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