Valhalla Legends Forums Archive | General Discussion | AHAHA CUPS WORKS! + Instructions

AuthorMessageTime
nslay
Comprehensive instructions for [u]local[/u] printing on FreeBSD using CUPS and a HP PSC 1350 printer with a print server (and maybe other versions of HP PSC or over different media)...perhaps someone will google this post and it will help them (since I had no help!)

Finally figured out how to get it to work after close examination of the CUPS log
For anyone who experiences problems with CUPS on FreeBSD, be sure to examine the error_log in /var/log/cups
for more detailed log information set LogLevel in /usr/local/etc/cups/cupsd.conf to debug or debug2.  Be sure you restart cups afterwards, you can do this by /usr/local/etc/rc.d/cups.sh restart (if you didn't link cups.sh.sample do so by: ln -s /usr/local/etc/rc.d/cups.sh.sample /usr/local/etc/rc.d/cups.sh)

Instructions:
1) Build cups, foomatic-filters, and hpijs

# cd /usr/ports/print/cups
# make && make install

# cd /usr/ports/print/foomatic-filters
# make && make install

# cd /usr/ports/print/hpijs
# make && make install

2)
Download HP PSC 1300 or 1310 ppds (with foomatic and hpijs) at linuxprinting.org
Links:
HP PSC 1300 ppd
HP PSC 1310 ppd

Note: They both work for the HP PSC 1350

and copy them to /usr/local/share/cups/model

# cp HP-PSC_13xx-hpijs.ppd /usr/local/share/cups/model

3)
Now start cupsd by
# /usr/local/sbin/cupsd

Add your printer with the following command:
# /usr/local/bin/lpadmin -p PrinterName -E -v socket://PrintServerIP:9100/ -m HP-PSC_13xx-hpijs.ppd

Now test your printer by either doing
# /usr/local/bin/lp somefile
or
browse [url]http://localhost:631/admin[/url], choose "Manage Printers" and select "Print Test Page"

Note: Unless you change your environment, FreeBSD will find lp in /usr/bin which won't work...that refers to LPD's lp

When printing from a browser or whatnot, be sure it calls /usr/local/bin/lp and not lp alone

If you want CUPS to load at startup
add: cups_enable="YES" in /etc/rc.conf

Related websites:
HP Linux Inkjet Driver Project
LinuxPrinting.org
CUPS Documentation

August 8, 2005, 9:17 AM
Newby
Heh. I need to get my printer working in Linux.

Good documentation, though.
August 8, 2005, 9:54 AM
nslay
[quote author=Newby link=topic=12469.msg123564#msg123564 date=1123494888]
Heh. I need to get my printer working in Linux.

Good documentation, though.
[/quote]

Well, its a similar process...
August 8, 2005, 9:57 AM
Newby
Yesyes, I figure I'll follow this as a sort-of-guideline. :P
August 8, 2005, 9:58 AM
nslay
[quote author=Newby link=topic=12469.msg123566#msg123566 date=1123495099]
Yesyes, I figure I'll follow this as a sort-of-guideline. :P
[/quote]

What printer and by what means do you communicate with it?
August 8, 2005, 10:02 AM
Newby
Lexmark p707 over USB (IIRC it's USB, I haven't hooked it up yet)
August 8, 2005, 10:18 AM
nslay
[quote author=Newby link=topic=12469.msg123569#msg123569 date=1123496313]
Lexmark p707 over USB (IIRC it's USB, I haven't hooked it up yet)
[/quote]

Well, I'll look it up for you...Linux and Unix USB support is very flaky still so it might not work at all...
I am going to sleep (at 7am? I stayed up all night working on that stupid CUPS)...perhaps later in the evening I'll post what I found :)
August 8, 2005, 10:55 AM
Newby
Yeah. Hmm. I think I will sleep too.
August 8, 2005, 10:57 AM
nslay
[quote author=Newby link=topic=12469.msg123571#msg123571 date=1123498672]
Yeah. Hmm. I think I will sleep too.
[/quote]

Do lpinfo -v for me and let me see what it prints out

[url]http://gentoo-wiki.com/HOWTO_Lexmark_Printers[/url]
Probably want to use the Z705 driver...supposedly the P700 and Z700 are similar
August 8, 2005, 6:07 PM

Search