sudo pkg_add -i [gmake-package-name]
If pkg_add is unable to access gmake's dependencies, you will need to install them manually as well.
NOTE: source packages are typically compressed. This guide assumes you have decompressed the source into an appropriate build directory. For information on how to decompress source distributions prior to installation, see this tutorial../configure [options]
It is NOT recommended that you install CUPS in a non-standard location, as Ghostscript and Gimp-Print may not be able to find the files they need.
gmake
sudo gmake install
./configure --without-gimp-print [--without-x]
Disable X support if you don't intend to use X windows. Gimp-print is disabled as it isn't installed yet. This order of installation of installation will not affect the funcationality of CUPS and avoids an issue with compiling Ghostscript with Gimp-print's libaries.
gmake
sudo gmake install
./configure --without-gimp --without-translated-ppds
Disable GIMP support unless you intend to use the package with The GIMP image software. Disabling translated ppds is not absolutely necessary, but significantly reduces the build time and avoids a bug where BSD systems will build multiple copies of the English language ppds.
gmake
sudo gmake install
sudo cupsd
If /usr/sbin is not in your path, you'll need to specify the full pathname: /usr/sbin/cupsd
ps auxw | grep cupsd
...and there are no errors in the log file:
cat /var/log/cups/error_log
Also check that the 'direct' connections are being detected by CUPS:
lpinfo -v
Point your browser of choice to http://localhost:631/. If you have trouble connecting, make sure your firewall settings allow traffic on TCP port 631. If you're prompted to authenticate, use the system's root login. Access control can be fine-tuned later with /etc/cupsd.conf
If everything has been installed correctly, you should be able to add a printer and print a test page.
To have CUPS start on boot, add the following to /etc/rc.local:
if [ -x /usr/sbin/cupsd ]; then
echo "Starting cupsd..."
/usr/sbin/cupsd
fi
If your printer and motherboard support bi-directional communication, the printer should show up in dmesg--type 'dmesg' at the command prompt to see this output. 'dmesg | grep lpt' should also produce output for parallel connections, if not, check that your parallel port is enabled in the system BIOS settings.
You can test a parallel connection by redirecting text from standard output to the device node:
top > /dev/lpt0