Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th December 2010, 05:36 AM
ColbyCurtis Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxfirefox
Kodak ESP 5250 (Help)

OK Let me first apologize for being such a Linux NOOB! because I am. The funny thing is I have A+ Network+ and MCSA. I am a pro in all versions of Windows and about three months ago I finally got so fed up with Windows I wiped everything and started distro hopping until I settled in on Fedora Fusion.

So I finally have everything working except for one thing. I have a Kodak esp 5250 WiFi Printer. Kodak doesn't support Linux in any way at all and I won't buy another one but that's for another time.

I found some homegrown cups driver that others said works one person even said they compiled and installed it in Fedora 14 so it should work fine on my system if I new what the heck I was doing when it comes to compiling and installing from terminal.

I tried the command "Make" I get this error
colby@Fedora c2esp15$ make
#
# Compile Dependencies...
#
***
*** Error: /usr/include/cups/raster.h is not installed!
***
*** Install cups raster library package
*** for Ubuntu: sudo apt-get install libcupsimage2-dev
***
make: *** [all-test] Error 1

I have tried using the add/remove gui for finding and installing libcupsimage2-dev but I can't seem to find it.

So I am stuck I have the files extracted all neat in a folder I just have to get past the make and ./configure part...I think? then I should be able to run install and then add the printer right??

OH Man I need some help here anyone want to walk me through this?
Reply With Quote
  #2  
Old 26th December 2010, 07:37 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,024
linuxopera
Re: Kodak ESP 5250 (Help)

In Fedora, when you get something like missing raster.h you can find what supplies it with

yum provides */user/include/cups/raster.h

It turns out (on CentOS, where I tried it) that this require the cups-devel package. So...

yum -y install cups-devel

This may solve the problem. Afterwards, you may get other dependency errors--some programs have a configure script where they first tell you what's missing, but many, unfortunately, stop at the first error, then after you fix that, you get another.

At this point, I'd ignore their suggestions for Ubuntu packages, and if you get more missing errors after you fix raster.h, just do the yum provides */whatever again.

(Another hint to speed it up a bit you can do it with

yum --disablerepo=\* --enablerepo=fedora provides */whatever

The reason for this is to stop it from searching the other repos you might have, especially when there's a good chance that it's all in the Fedora main repo. If you do that and get the error that it can't find a match, then do it again without the --disable --enable options.
Reply With Quote
  #3  
Old 26th December 2010, 04:59 PM
ColbyCurtis Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxfirefox
Re: Kodak ESP 5250 (Help)

OK That helped allot. I ran "Make" again and I got this, this time.

colby@Fedora c2esp15$ make
#
# Compile Dependencies...
#
# ... OK!
#
cc -O2 -Wall -c -o c2esp.o c2esp.c
cc -O2 -Wall -c -o jbig85.o jbig85.c
cc -O2 -Wall -c -o jbig.o jbig.c
cc -O2 -Wall -c -o jbig_ar.o jbig_ar.c
cc -O2 -Wall -o c2esp c2esp.o -lcupsimage -lcups -lcupsdriver jbig85.o jbig.o jbig_ar.o
cc -O2 -Wall -c -o myopldecode.o myopldecode.c
cc -O2 -Wall -g myopldecode.o jbig85.o jbig.o jbig_ar.o -o myopldecode

It is possible that certain products which can be built using this
software module might form inventions protected by patent rights in
some countries (e.g., by patents about arithmetic coding algorithms
owned by IBM and AT&T in the USA). Provision of this software by the
author does NOT include any licences for any patents. In those
countries where a patent licence is required for certain applications
of this software module, you will have to obtain such a licence
yourself.


So now I think I need to run "./configure" and then install it correct?/ Whats the command to install it? I read somewhere you can use one command to configure and install all at once?

I will search google while I wait for a response here. Thanks again I am one step closer.
Reply With Quote
  #4  
Old 26th December 2010, 05:53 PM
ColbyCurtis Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxfirefox
Re: Kodak ESP 5250 (Help)

OK I finally got it installed after your help..Much appreciated.
Now when I try to print I get this error
[IMG][/IMG]

So I want to generate a local policy to allow this driver to work. "SIGH" How the heck do I do that now? I tried some instructions in google but got lost.
Reply With Quote
  #5  
Old 26th December 2010, 11:34 PM
JamesNZ's Avatar
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Age: 16
Posts: 889
windows_7chrome
Re: Kodak ESP 5250 (Help)

Open a terminal and run:
Code:
grep /usr/lib/cups/filter/c2esp /var/log/audit/audit.log | audit2allow -M mypol
and then

Code:
semodule -i mypol.pp
SELinux is paranoid about these things but I don't recommend you disable it. When a message like this pops up and you're sure you want to allow whatever SEL is blocking, just run the 'fix command'. In this case the the fix command is the above script.
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus
Reply With Quote
  #6  
Old 27th December 2010, 02:28 AM
ColbyCurtis Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxfirefox
Re: Kodak ESP 5250 (Help)

I tried the script this was the result.

colby@Fedora Documents$ grep /usr/lib/cups/filter/c2esp /var/log/audit/audit.log | audit2allow -M mypol
grep: /var/log/audit/audit.log: Permission denied
could not write output file: [Errno 13] Permission denied: 'mypol.te'
colby@Fedora Documents$ su
Password:
[root@Fedora Documents]# grep /usr/lib/cups/filter/c2esp /var/log/audit/audit.log | audit2allow -M mypol
compilation failed:
mypol.te:6:ERROR 'syntax error' at token '' on line 6:


/usr/bin/checkmodule: error(s) encountered while parsing configuration
/usr/bin/checkmodule: loading policy configuration from mypol.te
[root@Fedora Documents]# semodule -i mypol.pp
semodule: Failed on mypol.pp!
[root@Fedora Documents]#
Reply With Quote
  #7  
Old 27th December 2010, 03:14 AM
David Batson Offline
Registered User
 
Join Date: Jul 2009
Posts: 1,158
windows_7opera
Re: Kodak ESP 5250 (Help)

Here is the SELINUX FAQ for F13 (and F14 AFAIK).

http://docs.fedoraproject.org/en-US/...l/SELinux_FAQ/
__________________
Fedora 18 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)
Reply With Quote
  #8  
Old 27th December 2010, 03:23 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,024
linuxchrome
Re: Kodak ESP 5250 (Help)

Hrm, seems a heck of a lot of reading to find the particular necessary part---to do the basic task of installing a printer. However, they do give pretty clear instructions there in the error message, at least for the temporary fix. No idea if it's permanent.

I think that it probably has to be run as root or with sudo, and that's why you got the permission denied errors. Just follow the instructions they give, but first su to root.

There's a rather good and understandable selinux article on the CentOS wiki at

http://wiki.centos.org/HowTos/SELinux

Not sure how much its evolved in Fedora (and it definitely has evolved and become easier to use--in the old days, I don't remember it telling you how to fix it, even temporarily, though my memory isn't good, and I could be wrong about that.).

Last edited by smr54; 27th December 2010 at 03:25 AM.
Reply With Quote
  #9  
Old 27th December 2010, 03:43 PM
ColbyCurtis Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxfirefox
Re: Kodak ESP 5250 (Help)

Quote:
Originally Posted by smr54 View Post
Hrm, seems a heck of a lot of reading to find the particular necessary part---to do the basic task of installing a printer. However, they do give pretty clear instructions there in the error message, at least for the temporary fix. No idea if it's permanent.

I think that it probably has to be run as root or with sudo, and that's why you got the permission denied errors. Just follow the instructions they give, but first su to root.

There's a rather good and understandable selinux article on the CentOS wiki at

http://wiki.centos.org/HowTos/SELinux

Not sure how much its evolved in Fedora (and it definitely has evolved and become easier to use--in the old days, I don't remember it telling you how to fix it, even temporarily, though my memory isn't good, and I could be wrong about that.).
Yes it is a lot of reading, So I assume you missed two important parts in my post. One it isn't a basic printer install since Kodak doesn't support Linux this is a driver someone made that is being reported as very good but you have to compile it and install the driver yourself.

Two if you look closely at my previous post you will see I did run it as root. I logged in as su. It still doesnt work. Funny thing is it's not installing the driver that is giving me headaches I have gotten past that part the driver is installed. The printer is installed it has a nice green checkmark on it and I can tell it to print a test page. Now my problem is this security policy stuff is stopping the driver from doing it's job and I am tottaly unfamiliar with selinux.

By the way the temporary fix it lists doesn't work either even run as root.

I don't intend to sound brash if I am coming across that way I am just frustrated at the moment. I still have to dual boot into Windows just to print.

Last edited by ColbyCurtis; 27th December 2010 at 03:45 PM.
Reply With Quote
  #10  
Old 27th December 2010, 05:09 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,024
linuxopera
Re: Kodak ESP 5250 (Help)

Yup, you're right, I missed the su part.

Next step might be to try setting SELinux to permissive which shows what errors you would havae gotten, but should let you print.

Sorry I can't be more help here. I don't have SELinux on any machines that I use for printing.
Reply With Quote
  #11  
Old 27th December 2010, 08:29 PM
pythagorean Offline
Registered User
 
Join Date: Aug 2010
Posts: 272
windows_xp_2003ie
Re: Kodak ESP 5250 (Help)

I would be very interested to see if you get that Kodak working because I had an ESP and after several months of trying different things on an off I gave it away and just went and got a Canon Pixma MP250 for $50. I mean, sure, the Kodak printer itself might have been cheap and the ink seems like a good deal but if you factor in costs associated with personal time spent installing drivers and troubleshooting that printer must have cost me at least a thousand dollars.
__________________
Phenom II x4 B55 BE Win7/Fedora 14 dual boot
Compaq CQ62-220US Vista Ultimate/Fedora 13 dual boot
Acer Aspire One D250 Ubuntu 10.04
www.pythagoreanmetronome.com
Reply With Quote
  #12  
Old 27th December 2010, 11:37 PM
jakebpg Offline
Registered User
 
Join Date: Feb 2009
Location: Northeast
Posts: 292
linuxfedorafirefox
Re: Kodak ESP 5250 (Help)

Colby, since you have moved to Linux I would suggest in the future to by devices that have support for Linux, and windows at the least.

I have the MS certs also but I didn't leave, just like learning new stuff to further my skill set even though I'm retired now. When I get tired in one system I flip over to the other. Don't let the frustration of Linux get to you it is a very powerful system, so much so that you can actually break windows with it.

So be careful of what you do if you have a windows network and server running at home like I do. I have already gotten a free years worth of internet access for pointing out holes in my isps dns because my redhat box took complete control of the ISP's DNS for a month at minimum before they noticed that all traffic was being routed to my IP and to top it off this was a very old Compaq server with a 200Mghz processor in it with only 512 meg of ram. I'm still searching for ways to get in again so I can get another year of access for free.

Have fun and good luck. Oh and do read all you can find it is very helpful in trouble shooting and what you can't figure out through reading this site and google are you friends to help in solving problems.
Reply With Quote
  #13  
Old 28th December 2010, 05:23 AM
ColbyCurtis Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxfirefox
Re: Kodak ESP 5250 (Help)

Quote:
Originally Posted by smr54 View Post
Yup, you're right, I missed the su part.

Next step might be to try setting SELinux to permissive which shows what errors you would havae gotten, but should let you print.

Sorry I can't be more help here. I don't have SELinux on any machines that I use for printing.
No Problem, Hey let me first say Thanks to everyone for trying to help. I really do appreciate the replies. In the future I will buy a printer that is linux compatible. I hear Brother printers work great on Linux anyone know if this is true?

I also tried Permissive and tried to disable it completely I still get the same security error so I am clueless at this point.

I did notice today some of the fedora updates had to do with print management so maybe I will try again soon and see what happens maybe I will get lucky and fix it without knowing what I did to fix it. I've done that in Windows many times LOL.

---------- Post added at 11:15 PM ---------- Previous post was at 10:58 PM ----------

OH Progress...well sort of.

I had to reboot after disabling Selinux. Now when I print I don't get the error but when I look at the job in the print que it says stopped with no way to start it. I tried adding port 9100 to the firewall just to see if that was it but no luck there either still shows the print job as stopped.

By the way what did I do by disabling Selinux LOL

---------- Post added at 11:23 PM ---------- Previous post was at 11:15 PM ----------

OK It looks like it's the driver itself. I now get idle - /usr/lib/cups/filter/c2esp failed

Back to square one. Anyone wanna recommend a good printer I should buy that works out of the box with Fedora? I really need wireless printing though.
Reply With Quote
  #14  
Old 28th December 2010, 12:06 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,024
linuxopera
Re: Kodak ESP 5250 (Help)

The vast majority of HP's work out of the box with Fedora--for color, I have an HP C4795 all in one. Unfortunately, from time to time, the hplip provided by Fedora doesn't work with scanning (and other times it does, it's been random) but one can fairly easily install hplip from source, or even use the printer's web scanning feature--in the web interface, you can scan and then save it.

I also have a Brother wireless B&W laser that worked out of the box--I think Fedora picked it up without issue, on a CentOS machine, I had to get the driver from the Brother website, but they provide an rpm.

Generally, HP almost always works.

As for SELinux, I think there are some threads around about it--it's just another layer of security, which is always good, makes a usually unnoticeable impact on performance. Generally, though not always, of course, if you're not doing anything exceptional, you'll barely notice it.
Reply With Quote
  #15  
Old 28th December 2010, 12:36 PM
David Batson Offline
Registered User
 
Join Date: Jul 2009
Posts: 1,158
linuxopera
Re: Kodak ESP 5250 (Help)

I recently bought two wireless printers. A Brother B/W laser wireless printer, HL-2270DW and a Canon PIXMA MG8120 multifunction color inkjet wireless printer. The Brother printer works great. The Canon printer prints fine, but I didn't get the scanner working yet (only had a short time to work on it). In both cases I downloaded and installed the drivers from the manufacturer's website(s), then installed the printer(s) in CUPS. I didn't even try to let Fedora 14 or Mandriva 2010.1 discover the printers and install the drivers.

The Canon printer has scanner drivers which I installed, and sane-find-scanner sees the scanner, but sane-scanimage does not. I suspect I need an updated version of sane. The printer is quite new to the market - Staples didn't even have the ink cartridges on the floor yet (although they had them stocked in the back). My previous Canon PIXMA MP600 worked fine for printing and scanning. I did read online where someone got the scanner working on the Canon PIXMA MG8150 (related printer for outside the USA) by compiling sane-backends. Generally speaking, Canon-USA does not have any Linux drivers, but Canon-Australia, Canon-Europe, and Canon-Japan do have linux rpms and debs for some of the Canon model printers. Brother's website seems to have Linux drivers for all of their printers AFAICT.
__________________
Fedora 18 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)
Reply With Quote
Reply

Tags
5250, esp, kodak

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kodak ESP 7 DRSchooney Hardware & Laptops 4 27th November 2011 02:39 PM
Kodak printers rosswmcgee Using Fedora 4 20th December 2009 01:44 PM
Mobility FireGL 5250 zoccadoum Hardware & Laptops 7 4th December 2007 04:48 PM
Attempting to load some 5250 emulation but cant find a link to it after installing markpitchford Using Fedora 11 10th May 2007 01:13 PM


Current GMT-time: 12:36 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat