freebsd-ports/print/cups-base/pkg-message
Dirk Meyer 4a4d617c26 - add hints for usb on FreeBSD 8.x
PR:		149896
Submitted by:	Berend de Boer
2010-08-28 09:18:38 +00:00

42 lines
1.5 KiB
Text

======================================================================
To enable printing with local printer you need to give group 'cups'
r/w access to printer device:
1) Add following to /etc/devfs.rules (create if it doesn't exist):
[system=10]
# FreeBSD 7.x
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups
# FreeBSD 8.x
add path 'usb*' mode 0770 group cups
add path 'ugen*' mode 0660 group cups
2) And following to /etc/rc.conf:
devfs_system_ruleset="system"
3) Restart devfs: /etc/rc.d/devfs restart
If your system supports 'devd' you can copy
$PREFIX/share/examples/cups/lpt-cupsd.conf to $PREFIX/etc/devd/
To enable printing under Gimp and MS-Windows clients do the following:
1) Uncomment application/octet-stream line in mime.types
2) Uncomment application/octet-stream line in mime.convs
3) Restart cupsd
If you are using libusb, it is important that no device driver, e.g.
ulpt(4) is attached to the device you wish to use. In this case please
ensure the cups user and group has read/write access to /dev/ugen*
If you are using a USB printer wtih FreeBSD 8.0 or later, you will
need to find the proper /dev/usb/* device pointed at by the /dev/ugen*
entry. Follow the instructions for devfs.rules as above, but append a
rule similar to the following for a printer attached as /dev/ugen0.2:
add path 'usb/0.2.*' mode 0660 group cups
======================================================================