mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
0c79467dce
PR: 150891 Submitted by: Garrett Wollman - udpate to 1.4.6
43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
======================================================================
|
|
|
|
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/ulpt-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
|
|
======================================================================
|