• Welcome to Valhalla Legends Archive.
 

AHAHA CUPS WORKS! + Instructions

Started by nslay, August 08, 2005, 04:17 AM

Previous topic - Next topic

nslay

Comprehensive instructions for local 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 http://localhost:631/admin, 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


Newby

Heh. I need to get my printer working in Linux.

Good documentation, though.
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

nslay

Quote from: Newby on August 08, 2005, 04:54 AM
Heh. I need to get my printer working in Linux.

Good documentation, though.

Well, its a similar process...

Newby

Yesyes, I figure I'll follow this as a sort-of-guideline. :P
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

nslay

Quote from: Newby on August 08, 2005, 04:58 AM
Yesyes, I figure I'll follow this as a sort-of-guideline. :P

What printer and by what means do you communicate with it?

Newby

Lexmark p707 over USB (IIRC it's USB, I haven't hooked it up yet)
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

nslay

Quote from: Newby on August 08, 2005, 05:18 AM
Lexmark p707 over USB (IIRC it's USB, I haven't hooked it up yet)

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 :)

Newby

Yeah. Hmm. I think I will sleep too.
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

nslay

#8
Quote from: Newby on August 08, 2005, 05:57 AM
Yeah. Hmm. I think I will sleep too.

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

http://gentoo-wiki.com/HOWTO_Lexmark_Printers
Probably want to use the Z705 driver...supposedly the P700 and Z700 are similar