Juanito
Group: Members
Posts: 1601
Joined: Sep. 2005 |
|
Posted: Mar. 30 2008,10:13 |
|
OK, so I finally got cups-1.3.5 to print after I realised my OfficeJetG85/OfficeJetK80 would need hpoj as well as hpijs. Now I can print from a 2.4MB extension (cups+hpijs+hpoj+foomatic) as opposed to a 20MB extension (cups+hplip+libusb+foomatic+epsgs, plus python, plus...).
In case anybody is interested, the trick is:Code Sample | $ sudo /opt/cups-1.3.5/sbin/ptal-init setup Probe for USB-connected devices ([y]/n)?
Probing "/dev/usb/lp0"... Found "OfficeJet G85" with serial number "SGG13E0C49VL". Starting the HP OfficeJet Linux driver. mlc:usb:OfficeJet_G85
$ sudo /opt/cups-1.3.5/lib/cups/backend/ptal direct ptal:/mlc:usb:OfficeJet_G85 "Hewlett-Packard OfficeJet G85" "PTAL mlc:usb:OfficeJet_G85"
|
...and now on restarting cups admin, the printer is found automatically
Device URI: ptal:/mlc:usb:OfficeJet_G85.
I've started to set up an extension named cups-1.3.5.uci with a menu item/icon that calls a script that creates the folders cups requires (or else it will not work) in /var.
The next thing I would like the script to do is:
IF /etc/cups does not exist THEN create /etc/cups and copy cupsd.conf to it ELSE IF /etc/cups/cupsd.conf does not exist THEN copy cupsd.conf to /etc/cups
and
IF cupsd is not running THEN start cupsd [maybe it should be restarted anyway?]
I be grateful if somebody could spare me several hours of messing around with bash, trying to figure out how to do this
|