How to add an HP printer from command line?
Masao Kitamura
masaok at gmail.com
Thu Nov 11 19:45:30 UTC 2010
Thanks Ric!
This worked:
# hp-setup -i -a -x -d hp:/net/hp_color_LaserJet_3500?zc=NPIF944C5
Also, you must open port 11371 since this will request a GPG key from
an HKP server to verify the driver.
And to fully automate with expect:
#!/usr/bin/expect -f
spawn hp-setup -i -a -x -d hp:/net/hp_color_LaserJet_3500?zc=NPIF944C5
expect "Enter option"
send \n
expect "Do you accept the license terms"
send y\n
interact
On Thu, Nov 11, 2010 at 1:44 AM, Ric Moore <wayward4now at gmail.com> wrote:
> On Thu, 2010-11-11 at 01:09 -0800, Masao Kitamura wrote:
>> I'm trying to add printers via Kickstart/Preseed to multiple
>> installation clients on Ubuntu Desktop 10.10.
>>
>> Kickstart/Preseed works fine and I can run any script at first boot by
>> editing rc.local, but I'm not sure how the typical printer setup GUI
>> adds printers.
>>
>> I've run the GUI like this:
>>
>> # system-config-printer --debug
>>
>> ...to see what commands it could be calling, but there's a lot of
>> output and no obvious system commands.
>>
>> I've also tried various forms of lpadmin:
>>
>> lpadmin -p hp2055dn -E -v lpd://hp2055dn
>>
>> (based on the settings I see when I add the printer via the GUI and
>> check the properties)
>>
>> ,,,but I have not been able to add a working printer by using lpadmin.
>>
>> Printers I'm trying to add:
>>
>> HP Laserjet P2055dn
>> HP Color Laserjet 3500
> Crank open synaptic and search on HP, you want to install the utils
> which will setup your HP printer just peachy. Or, goto HP's website and
> install their linux Ubuntu version of tools from there. Ric
>
>
> --
> My father, Victor Moore (Vic) used to say:
> "There are two Great Sins in the world...
> ..the Sin of Ignorance, and the Sin of Stupidity.
> Only the former may be overcome." R.I.P. Dad.
> Linux user# 44256
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
More information about the ubuntu-users
mailing list