16
Jun
05

I have a printer!

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. ^_^

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: