2005年 6月 16日

I have a printer!

Posted in General at 12:14 am by TBBle (Visited 502 times)

I bought a second-hand HP LaserJet 1200 series for $80 from an Internet cafe which was going out of business. An evening spent with cups, and I can print from windows, have driver auto-download going (for Win2K+ at least) and also got a PDF-output print which writes to /home/tbble/cups-pdf for output. ^_^

The hardest bit was the driver-upload. I had root disabled in samba (sensibly) but the samba drivers directory /var/lib/samba/printers/ is only writable by root, as you'd expect. I ended up enabling root for samba for the moment.

rpcclient -U root -c 'adddriver "Windows NT x86" "CUPS-pdf:pscript5.dll:PostscriptColor.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript.ntf" 3' 192.168.0.1

rpcclient -U root -c 'setdriver Keitarou CUPS-pdf' 192.168.0.1

And in a reversal, jobs are spooled in /tmp, since everyone can write there.

I'll look forward to samba4 for slightly more sensibility. ^_^

1 Comment »

    a gravatar
  1. 文字馬鹿: A fool of words » Blog Archive » Time flies like an arrow, fruit flies like an apple. said,

    October 7, 2005 at 1:21 am

    [...] I’m now running Debian when I can on my desktop box. The only things I use windows for now are Quickbooks (I’ve gotta get Quickbooks going in wine, I just haven’t bothered yet) and video games. I’ve got the machine using libpam-mount (with a couple of patches which I submitted to the Debian BTS) to mount directories from Keitarou. I migrated my email from Outlook onto my fileserver with IMAP, and now use mutt-ng for all my email, which is a big improvement. This also means I revoked my old @Pobox.Com PGP key and added the email address to my newer GPG key. I can sync my phone against Evolution, although I never fire up Evolution, and I can print using CUPs happily to my HP LaserJet 1200. The only other thing I can’t do on my desktop machine from Linux is wireless multiboot my Nintendo DS, and I’m working on that. [...]

Leave a Comment

Or use your OpenID: