Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005

    Autoconfiguring a LOCAL USB Printer

    I need to autoconfigure a LOCAL USB printer.My situation is like this.

    When a user connects the USB printer to a linux machine, the configuration work for that printer should be done automatically. Like choosing a printer name, printer device and printer driver all these steps should be done in the background without any interaction with the user. The user doesnot have to do any kind of configuration work. He just have to plug-in the USB cable and start using the printer.

    My plan was to grep the printer details when the user connects the USB cable, add printer name, printer device and printer driver to the /etc/printcap.local file. After restarting the lpd daemon /etc/printcap.local file contents will be added to /etc/printcap , so the user can continue using the printer.

    I want to know how I can grab the information from the printer. Is this kind of automation is possible? Are there some other ways to do this? I am looking for some suggestions. I dont have a clear idea now, but I am still trying to do this. If I get some ideas I can proceed further.


  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    St. Petersburg, FL
    I have a local usb printer, and I just run /etc/init.d/cupsd at bootup and it does all that stuff for me automatically. Have you investigated using something like CUPS or LPRng?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts