[SOLVED] Help with CUPS for Epson Stylus TX115

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Pai Mei
Donor
Posts: 22
Joined: 13. Jan 2012, 02:17
Location: Brazil

[SOLVED] Help with CUPS for Epson Stylus TX115

Post by Pai Mei »

Hi Salix users.

I'm trying to make my Epson Stylus Tx115 to work in Salix, and (now) I'm stucked in CUPS.
Since I searched the internet, and I didn't find any tutorial about how to install this printer in Salix/Slackware's distros, I will (try) describe what I have done (and the problems that I solved), for further reference.

1) I downloaded the epson-inkjet-printer-stylus-nx110-series-1.0.0-1lsb3.2.x86_64.rpm driver from openprinting.org (I know that Slackware is not LSB compatible, but the ESC/P-R driver - what is recommended in this case for the Epson site - is not compatible with my printer model (and don't have the .ppd inside). And the LSB driver have the .ppd file.

2) Then I done:
# rpm2tgz -d -n epson-inkjet-printer-stylus-nx110-series-1.0.0-1lsb3.2.x86_64.rpm
and
# installpkg epson-inkjet-printer-stylus-nx110-series-1.0.0-1lsb3.2.x86_64.txz
(the system didn't broke, and installed fine).

3) Checked if my printer is detected:
$ lsusb
...
Bus 005 Device 002: ID 04b8:084d Seiko Epson Corp. Stylus SX115
4) Went to CUPS (in Firefox, using localhost:631 and installed the printer (Administration -> Add printer)
Fine, my printer was detected (Epson Stylus TX115 in USB port), BUT when I enter the the Make and Model selection box, my printer was not listed here (even with the driver installed).

5) After some days searching the answer, I found (in a Arch Linux forum) that the .ppd files (sometimes) are not installed in the corrects location (/usr/share/cups/model/). So I went to /opt/epson-inkjet-printer-stylus-nx110-series/ppds/Epson, extracted the correct file (Epson_Stylus_TX115.ppd.gz) and moved it to /usr/share/cups/model/Epson/ (according to the forum, is necessary to create the /Epson folder).

6) Now my printer appears in Make and Model box selection. Excellent. I finished the installation, and tried to print a test page. It didn't print. When I went to see the active jobs, it says "(ID)Epson Stylus TX115 - (State) Stopped". So I cancelled the job (as root).

7) For a more detailed info, I went to etc/cups/cupsd.conf, set the LogLevel to Debug, and have the log (from /var/log/cups/error_log. I found the following errors (I tried to post the log, but it's exceed the maximum characters allowed for the post):

Code: Select all

(...)
 "Filter "/opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter" for printer "Epson_Stylus_TX115" not owned by root"
(...)
and
(...)
Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported (...)
Now what should I do?

What means "Filter "/opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter" for printer "Epson_Stylus_TX115" not owned by root". Should I have to change the permission em /opt/epson.../lib/filter/epson_inkjet_printer_filter ? And "Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported" (???? - I read in some Slax (distro) forums that it should be a missing component in ACL, but in Salix all this components are installed and Ok,...)

My CUPS knowledge is basic (only Add printers with the web browser...).

Any suggestion / advice are welcome.

PS1: Sorry for my English. I'm from Brazil.
PS2: Sorry for strange use of quotes - I rarely use forums.

Salix 13.37 64 bits / Multilib
Last edited by Pai Mei on 15. Jan 2012, 04:33, edited 2 times in total.
Linux User #551004
Pentium Core i5-6400
Salix 15 XFCE 64 bits
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Help with CUPS for Epson Stylus TX115

Post by thenktor »

Pai Mei wrote:What means "Filter "/opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter" for printer "Epson_Stylus_TX115" not owned by root".
First guess: change the owner of the epson files to root: chown -R root:root /opt/epson-inkjet-printer-stylus-nx110-series/ ;)
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: Help with CUPS for Epson Stylus TX115

Post by Andyun »

Take a look here, and the manual.
The scanner works?
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: Help with CUPS for Epson Stylus TX115

Post by Andyun »

Try to build a package using the script SlackBuild (epson-inkjet-printer-stylus-tx550w-series.tar.gz).
This requires two files: "epson-inkjet-printer-stylus-nx110-series-1.0.0-1lsb3.2.x86_64.rpm" and "epson-inkjet-printer-stylus-nx110-series-1.0.0-1lsb3.2.src.rpm".
Install the package "rpm" and "rpm2tgz" from Gslapt.
1. Place them in the same folder with the script SlackBuild.
2. Rename the "epson-inkjet-printer-stylus-tx550w-series.SlackBuild" in the "epson-inkjet-printer-stylus-nx110-series.SlackBuild".
3. Edit "epson-inkjet-printer-stylus-nx110-series.SlackBuild". In the line "PRGNAM=epson-inkjet-printer-stylus-tx550w-series" replace with "epson-inkjet-printer-stylus-nx110-series.SlackBuild".
4. Run the script and get ready package in the /tmp.

See also Installing Epson SX425W drivers on Salix.
User avatar
Pai Mei
Donor
Posts: 22
Joined: 13. Jan 2012, 02:17
Location: Brazil

Re: Help with CUPS for Epson Stylus TX115

Post by Pai Mei »

Thanks for the fast answer to my topic :D

To thenktor: You do a hole-in-one with chown -R root:root /opt/epson-inkjet-printer-stylus-nx110-series/ !! The two messages dissapear. Thanks!
To Andyun: I looked in the manual and the faq from avasys site (believe me, it's not the first time). It covers only installation issues - CUPS issues don't. But I really apreciate your sugestion.
I don't installed the scanner yet (first I want the printer working, and the scanner installation is another procedure, that requires package compilation and others "tweaks"...). I will try later.

Basically, two another problems appear (or I don't see it yesterday...or whatever):

1) When I tried to print a new test page, don't print, but now says (in CUPS localhost:631 page):
Job stopped .
"/opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter failed"
So I went (again) to /var/log/cups/error_log. and found:
D [13/Jan/2012:17:01:45 -0200] [Job 12] /opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter: No such file or directory
D [13/Jan/2012:17:01:45 -0200] PID 2741 (/opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter) stopped with status 22!
Searching in the internet what means "status 22", in many forums, I found that this could be a problem related to foomatic-filters. In Arch Linux CUPS wiki, it says that status 22 occurs because the absence of foomatic-filters,and installing it solves the problem, but in Salix it comes installed "by default". Searching more, I found a topic in a Slackware forum, that the only way to make a Lexmark printer work is installing foomatic-db, foomatic-db-engine, foomatic-filters, and foomatic-filters-ppds.So I'm really thinking in install this packages from source in my system.

2) The another issue (or problem, because I don't know if it's is related to CUPS, or not).
I went to /opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter: The folder exists, and have a file, so I began to think "what means: No such file or directory???". So a searched the internet (and forums), and do a:
$ ldd /opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter
the answer was one error/absence:
libjpeg.so.62 => not found
Then, I done a:
$ find / -name "libjpeg.so.62"
and the answer was:
/usr/lib/libjpeg.so.62

So, I began to think that the message "No such file or directory" occurs because the library libjpeg.so.62 cannot be found. So, I spend one hour trying to create a symbolic link (never used ln -s); but I can't do (because I never tried - sorry but I'm still learning terminal commands).

Researching more, I found that /usr/lib/llibjpeg.so.2 is already a symbolik link in my system(??? with the Thunar -> properties in over the file libjpeg.so.2 , but I don't know where it's links); and researching more again, that this library exists and is part of the package libjpeg (??? - that is already installed, according GSlapt...), and this error occurs normally when we use rpm2tgz and .rpm packages in Slack (the conversion is not perfect...).

So, in the end:
1) I will try to install the foomatic-db, foomatic-db-engine, foomatic-filters and foomatic-filters-ppds and wait to see whats happens.If they make the "status 22 error" disappear, ok. But I appreciate that someone who have got the same pŕoblem in CUPS give me any hint...

2) Anyone knows how to solve the message "libjpeg.so.62 not found" with a symbolik link (if this could be possible)? Or I will have to install it (lib2jpeg from source?).
Or I really gone too far with "No such file or directory" and ldd, and associate two things that are not correlated(??).

Thanks for any advice...

PS1: I'm extremely tired, since I searched a lot today to solve this problems (and get too much hypothesis). When I see the Andyun sugestion, to try to build a package using the SlackBuild, and looked inside the .SlackBuild script (fast look), I realize that I could save much time if I have done this. Anyway, thank you again Andyun for the sugestion.
Tomorrow I will try to examine the script with more attention, and look for more hints (sometimes the scripts moves or copy a folder to another location, and solves the problem...)

PS2: My english today is horrible. Sorry if I can't make me understood.
Linux User #551004
Pentium Core i5-6400
Salix 15 XFCE 64 bits
User avatar
Pai Mei
Donor
Posts: 22
Joined: 13. Jan 2012, 02:17
Location: Brazil

Re: Help with CUPS for Epson Stylus TX115 [SOLVED]

Post by Pai Mei »

PS: I was so excited that I blamed the rpm2tgz tool; the (big) problem is the installation without the script; the script is the KEY.

HAHAHA!! I solved the problem (with the help of the others, thanks)! :D :D :D

Sorry for my last post - I was very tired, and cannot thinking right... Today I solved the problem, and I share the solution to make the Epson Stylus TX 115 to work in Salix 64 13.37.
Many thanks to all people who give me hints, and specially to Andyun (without the script, it will be not possible to solve this). So, let's go:

FIRST THING: NEVER, NEVER do as I have done: don't install the driver converting it from ..rpm to .tgz, and then doing a installpkg. Why? Because the installation without the script is not perfect: it makes the installation files going to unusual places (like /opt/epson-inkjet-printer-stylus-nx110-series/...), and the PPD file (and others) DON'T POINT TO THIS LOCATIONS: it will never find the filters files, the watermark files, and will generate errors with libraries (like the libjpeg.so.62 on my last post); it will never find it, because the files are in wrongs locations...

SECOND THING: So, what should I have done? Installed following the sugestion of Andyun (great hint, man! :D ), using the script SlackBuild that he says in his tread. The only sugestion that I can do, is for downloadin the slack-desc file, since in the end of the process, the script will stop if don't find this file; place it together with the other files.
Follow the steps 1, 2 , 3, 4 (in the Andyun post). Get the package in /tmp, and install it with installpkg.

THIRD THING: Now the drivers files are installed in the correct location: /usr/lib64 and other folders. I realize it when (today) I tried to correct the problem with libjpeg.so.62: the file /opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter is now in /usr/lib64/cups/filter/epson_inkjet_printer_filter; and when I done:
ldd /usr/lib64/cups/filter/epson_inkjet_printer_filter
The answer was zero errors: so now I don't need to worry now about missing libraries / in wrong places and symbolic links.
One problem less.
And the permissions for this new location are right (I looked in /var/log/cups/error_log - now the CUPS don't complain about epson_inkjet_printer_filter" for printer "Epson_Stylus_TX115" not owned by root. Doesn't need to do the # chown -R root:root /opt/epson-inkjet-printer-stylus-nx110-series/ command...)
Two problems less.

FOURTH THING: Now, the only problem is the PPD file. Why? In the first place, it isn't in /usr/share/cups/model/Epson/, but now in /etc/cups/ppd/.
In this place, it isn't necessary to create the /Epson folder (my first topic, step 5)), and place the PPD (it is already here, and the system knows its). But now, there is another problem (I discover this in a Debian blog about a Xerox printer): the PPD file come with the folders paths defined "by default", that didn't match to the actual locations of the files in my system; so I need to edit it manually, and correct this paths...

What should I have to do now? 1) Open a terminal and do:
$ su
# /etc/rc.d/rc.cups stop
# mousepad /etc/cups/ppd/Epson_Stylus_TX115.ppd
Now I can find:
*cupsFilter: "application/vnd.cups-raster 0 /opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter"
and change to (this explain why my /var/log/cups/error_log is showing me: "/opt/epson-inkjet-printer-stylus-nx110-series/cups/lib/filter/epson_inkjet_printer_filter: No such file or directory"):
*cupsFilter: "application/vnd.cups-raster 0 /usr/lib64/cups/filter/epson_inkjet_printer_filter
BUT this change wasn't enought to solve the problem. There another wrongs paths in the PPD file.
So, I scroll down and found:
*epcgWatermarkData Confidential: "/opt/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG00.EID"
*epcgWatermarkData Draft: "/opt/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG01.EID"
*epcgWatermarkData Urgent: "/opt/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG02.EID"
*epcgWatermarkData Priority: "/opt/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG03.EID"
*epcgWatermarkData Hot: "/opt/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG04.EID"
*epcgWatermarkData DoNotCopy: "/opt/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG05.EID"
*epcgWatermarkData ForYourEyesOnly: "/opt/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG06.EID"
*epcgWatermarkData ReviewCopy: "/opt/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG07.EID"
*epcgWatermarkData TopSecret: "/opt/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG08.EID"
*epcgWatermarkData Duplicate: "/opt/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG09.EID"
and changed to:
*epcgWatermarkData Confidential: "/usr/share/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG00.EID"
*epcgWatermarkData Draft: "/usr/share/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG01.EID"
*epcgWatermarkData Urgent: "/usr/share/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG02.EID"
*epcgWatermarkData Priority: "/usr/share/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG03.EID"
*epcgWatermarkData Hot: "/usr/share/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG04.EID"
*epcgWatermarkData DoNotCopy: "/usr/share/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG05.EID"
*epcgWatermarkData ForYourEyesOnly: "/usr/share/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG06.EID"
*epcgWatermarkData ReviewCopy: "/usr/share/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG07.EID"
*epcgWatermarkData TopSecret: "/usr/share/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG08.EID"
*epcgWatermarkData Duplicate: "/usr/share/epson-inkjet-printer-stylus-nx110-series/watermark/WEPCG09.EID"
This solved the errors in the PPD. Saved the file, closed mousepad and done:
# /etc/rc.d/rc.cups restart
(Much problems less...)

FIFTH THING: Go to localhost:631; uninstalled my old printer (don't know this is really necessary, but I'm afraid that the printer will be locked in the old configuration...).
Reboot (don't know this is really necessary, because I stopped CUPS, but I done).
Go (again) to localhost:631; reinstalled the printer; and do a print page test.
Now CUPS should print the page (this is what happened to me), and now I can use my Epson TX115 printer in Salix.

Happy printing with Salix!!! :D :D :D :D

PS: I used the name the packages to epson-inkjet-printer-stylus-nx110-series (even my printer is Epson Stylus TX 115), since the downloaded files (.rpm ) are the NX110 Series driver files (that are compatible with TX115, according the Epson site); modify the script following what like Andyun says, and the the slack-desc in agreement.

PS: Sorry by the excess of errors about some tools in Linux. I'm still learning, and sometimes I get very amazed by others opinions...
Linux User #551004
Pentium Core i5-6400
Salix 15 XFCE 64 bits
User avatar
aleXimon
Posts: 11
Joined: 3. Sep 2013, 01:53
Location: Rosario, Argentina

Re: [SOLVED] Help with CUPS for Epson Stylus TX115

Post by aleXimon »

Thanks, Pai Me (and, obviously, Andyun)!!
Your instructions helped me make my Epson L355 printer work in Salix 14.1 64 bits.
Post Reply