How to install printer in FreeBSD

1. Install the next packages

cups cups-filters system-config-printer

=================================

2. Create a directory to store files while they are being printed (as root of cource)
Code:
mkdir -p /var/spool/lpd/lp
chown username_here:cups /var/spool/lpd/lp
chmod 770 /var/spool/lpd/lp
As root, create /etc/printcap with these contents
Code:
lp:\
lp=/dev/unlpt0:\
sh:\
mx#0:\
sd=/var/spool/lpd/lp:\
lf=/var/log/lpd-errs:

3. Edit /etc/devfs.rules file
Code:
[system=10]
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups
add path 'usb/*' mode 0660 group cups
add path 'unlpt*' mode 0660 group username_here
add path 'ulpt*' mode 0660 group username_here
add path 'lpt*' mode 0660 group username_here
add path 'usb/*' mode 0660 group username_here

4. Add to /etc/rc.conf file lines
Code:
cupsd_enable="YES"
devfs_system_ruleset="system"
lpd_enable="YES"

5. Restart devfs and cups
Code:
service devfs restart
service cupsd restart
service lpd start
========================================

6. Open system-config-printer and add the printer

========================================

An another way via browser

http://localhost:631/admin

 
Back
Top