Printer configuration with CUPs

geek geek at netcabo.pt
Sun Oct 19 08:47:57 PDT 2003


Is this process correct to install cups in a FreeBSD 4.9 server/workstation to install my printer (HP 5150):

# USB Stuff
device usb
device uhci
device ulpt

change this in the kernel (both workstation and server)

....

usbd_enable="YES" in /etc/rc.conf (server only)

....

install:
/usr/ports/print/ghostscript-gnu-nox11 (on server)
and
/usr/ports/print/ghostscript-gnu (on workstation)

......

install CUPS from ports in both, server and workstation

....

rm /usr/bin/lpr (on both, server and workstation)

....

cp /usr/local/etc/rc.d/cups.sh.sample /usr/local/etc/rc.d/cups.sh (on both, server and workstation)

...


Uncomment application/octet-stream in /usr/local/etc/cups/mime.types and /usr/local/etc/cups/mime.convs (both workstation and server)

....

Uncomment BrowseAddress @LOCAL in /usr/local/etc/cups/cupsd.conf (workstation and server)

is this all correct?!

but when i try to print:



lpr file
lpr:error - scheduler not responding!

or 

lp file
exec: /usr/bin/lpr: not found


# ps -wax | grep cupsd
100 ?? Ss 0:00:09 /usr/local/sbin/cupsd

... so i chek www.freebsddiary.org/cups.html

and i have to configure my printer in http://localhost:631/admin,
but when i try to links http://localhost:631/admin from my server, the answer is: "unauthorized" "this server could not verify that you're authorized to access the resource"

so .. what i have to do to have it working ?

thank u very much!


More information about the freebsd-questions mailing list