Auto Load USB Printer Firmware When Printer Turned On – Linux

5 pts.
Tags:
Bash
Linux
Linux Desktop
Printing
Puppy Linux
I am using a derivative of Puppy Linux. I compiled the driver for the HP Laserjet 1020 printer. For the printer to work the firmware has to be loaded every time the printer is turned on. I have added the following command to the rc.local file in Puppy Linux which runs every time Puppy Linux boots up:
cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0
This works fine if the printer is on when I boot into Puppy Linux. If the printer is not on when I boot up then I have to run the code in a shell before the printer will print. This is OK for me but my family members need to be able to just turn on the printer any time and have it print. They do not even know what a shell is and cannot be expected to issue shell commands to get the printer to work. My question is this: Can I put the above code in a script that will execute every time the USB printer is turned on? Knowing the kind of operating system that Linux is, I am sure that there is a way to do this. I'm just not skilled enough to know how to do it. Any help would be much appreciated. bdika

Answer Wiki

Thanks. We'll let you know when a new response is added.

Yes, u r right there is a way ! Don’t need to do all like that. Simply download hplip from HP this is a regular tarball file. And also download hplip-xxxx-plugin.run (xxxx means the version no) this is the main file which helps to overcome this kind of problems. Install the tarball by opening a terminal and pass the commands : ./configure and make then make install
Be aware of dependencies also. U can install it on-line by connecting Internet.
After installation, install the plug in called “hplip-xxxx-plugin.run”.
Remember, unplug the printer from computer before install and of course completely uninstall the printer also.
Reboot and replug the printer and pass the command as root:
hp-setup and install the printer as on-screen instructions.

Remember, the plug in must install to avoid this issue.

Now it never asks for anything wrong !

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following