LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB Printer Problems (https://www.linuxquestions.org/questions/linux-newbie-8/usb-printer-problems-188019/)

drogers8 05-31-2004 10:44 AM

USB Printer Problems
 
I recently install Fedora C2 on a dual boot system. Xp prints to my HP Office Jet G55 printer connected on my USB port,. On the fedora side I installed hpoj-0.91-7 rpm and libsane-hpoj-0.91-7 rpm with the LANG=C. When the system boots up I see that hpoj is running. As su I run /usr/sbin/ptal-init setup. Ptal does not see any usb devices connected. I assume this needs to happen before I can successfully run the printer config gui.

I also download a USBVIEWER program an it sees the usb hubs.

What causes ptal to not see any USB devices?

I really world like to get this working because I HATE windows and want to get completely on Linux based system for all my programming projects.

TroelsSmit 05-31-2004 11:53 AM

This is how I see attached USB devices:

cat /proc/bus/usb/devices | less

I hope this helps...

urka58 06-01-2004 05:16 AM

I installed some days ago the hpoj driver for my HP PSC 2110 on Slackware.
I did that compiling the driver from sources, so I cannot report any detail installing it by binaries.
You must also be noticed hpoj driver works fine with cups spooling system. According to instruction lpd system is not fully compatible.
Anyway this is what I did

Uncompressed the tar.gz archive
then from the installation directory
./configure --with-usblib=/lib/modules/2.4.22/kernel/drivers/usb *
°°° this is mandatory since the driver needs to be compiled with the usb transporter interface you're using. May be you have a different path. What you should check is that path leads to /.../.. /usb/printer.o.gz finally °°°
make
make install
*This will install hpoj into /usr/local that is usually OK. If a different installation path is required add --prefix=/usr or --prefix=/opt
At this point hpoj deriver should be correctly installed and you should be able to configure it by
ptal-init setup
Once finished configuring you have to restart cups in order it can recognize the new ptal device.
On slackware this can be done by
/etc/rc.d/rc.cups stop
/etc/rc.d/rc.cups start
Please note on fedora this should be different as it uses SystemV init scripts.
If I'm not wrong it should be something like,
/etc/rc.d/init.d/cups(d)
but I strongly suggest you check first
Wait a couple of minutes to make sure cups is actually enabled
At this point you should be able to configure your printer (cups) by the web interface opening a web browser (ie konqueror) at
localhost:631
and follow instructions. Take care when asked what connection/transporter you want to be used, you choose ptal + something.
For you it could be "ptal:hp office jet series" or something similar. Do not choose usb_lp as it doesn't work.
As the configuration step is finished you should be able to print a test page.
Now the problem is to enable ptal device at boot possibly before the cups spooling system in order it can properly recognize it.
For the purpose I created a soft link by
ln -s /usr/local/sbin/ptal-init /etc/rc.d/ptal-init
and added
if [ -x /etc/rc.d/ptal-init ]; then
/etc/rc.d/ptal-init start
fi
just before the cups section to my /etc/rc.d/rc.M file.
I'm not experienced at all with fedora System V init scripts, so I cannot give some good suggestions.
Try posting to fedora forum section, I'm sure you'll find someone experienced.
Hope this helps
Ciao


All times are GMT -5. The time now is 08:00 AM.