Le Mardi 27 Juin 2006 05:38, rblythe a écrit : Hi ! > I found out that I need hplip in order for the system to see the scanner > portion of my HP 1410v PSC. > The shell script (called hplip) that comes with the source code works. > > When I moved to /etc/rc.d/init.d and created a symlink (ln -s > ../init.d/hplip S23hplip) in rc3.d I get an error stating that I should > not be reading an error and it points out that the error comes from > S23hplip (sorry about not having the exact syntax of the error, I did > not write it down and I am e-mailing from my host system).
I could bet that this comes from the shell hplip that can't find the programs it wants to run. You should check out which commands are ran from this script, and where they are placed on your system. I don't know if you understand me, so let's take an example : if I have a script in /etc/rc.d/init.d that calls the command hplip, and that the command hplip is located in /usr/local/hplip/hplip, I can have for sure that the script won't work provided I give either the full command, or I set the PATH variable before calling the command. > > After viewing the hplip script, I realized that it does not look like > the blfs bootscripts at all. I believe this is my problem. I have > never written scripts like these before, but my thinking is this: I am > going to use the cups bootscript as a template to create a blfs > compatible hplip bootscript. Well, if you want a homogeneous system, you can, but if you follow what I wrote just up there, you should be OK. > > My questions are: Has anyone had success with this before? Is there > another method that someone has done to get the result of having hplip > start before CUPS (it must start before cups)? > If you want hplip to start before cups, then, you should ensure that both links respect this : /etc/rc.d/rc3.d/SXXhplip /etc/rc.d/rc3.d/SYYcups with YY > XX They are treated in alphabetical order ! > Currently, after I boot the system, I have to issue these two commands > as root: > /etc/rc.d/init.d/hplip start # this starts hsiod and hpssd > /etc/rc.d/init.d/cups restart # this makes cups aware of hplip > > Printing an scanning then function as normal. > > Any input on this would be greatly appreciated. > > rblythe So far, I hope that what I wrote will help. In my case, I've some HP OfficeJet G55 and G85 installed here and there at work, and I can work all of these with hpoj and hpij. No daemon are to be launched like hplip. But it could be that I'm not up to date !
pgpDdqpxQaHpy.pgp
Description: PGP signature
-- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page