Adding a printer on a server install
Mitch Contla
mcontla at gmail.com
Fri Oct 27 18:17:19 UTC 2006
Anthony Yarusso said the following on 10/27/2006 10:54 AM:
> Hi, I'm trying to make my server box function as a print server for a
> USB printer (HP PSC 1310 - known to work with desktop Ubuntu). I'm
> having a hard time wrapping my head around how to set it up though. I
> have cups installed, and am trying to configure the printer with the
> printconf utility. I am getting the following in response to 'sudo
> dpkg-reconfigure printconf':
>
> *** glibc detected *** double free or corruption (!prev): 0x08179528 ***
> Unable to read printer database. Please ensure the "foomatic-db"
> package is installed properly.
>
> The package mentioned is installed just fine. Additionally, I have
> confirmed that the ppd file exists, at
> /usr/share/cups/model/hpijs/HP/HP-PSC_1310-hpijs.ppd.
>
> I basically just need to replicate whatever the Gnome Add Printer
> dialogue does, since that works perfectly with this printer. Any help
> managing that on cli appreciated!
You can use lpadmin from a shell prompt like this:
user at ubuntu:~$ sudo lpadmin -p HP-PSC-1310 -E -v parallel:/dev/lp0 \
> -m hpijs/HP/HP-PSC_1310-hpijs.ppd -u allow:all
This assumes you want to name your printer HP-PSC-1310, and that it's
connected at parallel. If you are connected to the printer in some other
way, you can get info on available device uri's using lpinfo:
user at ubuntu:~$ lpinfo -v
Good Luck
--
Mitch
More information about the ubuntu-users
mailing list