Printing, Sound and Power Three things a desktop is expected to get right, and three things NetBSD leaves to the administrator: a printer, sound, and what happens when the machine is idle or the battery is low. Printing with CUPS Makronix uses the Common UNIX Printing System. The packages cups and cups-filters are on the medium; the service is cupsd in /etc/rc.conf. With the service running, a printer is added with lpadmin8: # echo 'cupsd=YES' >> /etc/rc.conf # /etc/rc.d/cupsd start # lpadmin -p office -E -v ipp://printer.example/ipp/print -m everywhere # lpadmin -d office # lpstat -t asks the printer for its own description, which is the modern way; a printer that does not answer it needs a driver package and a PPD file. The web interface at http://localhost:631 does the same through a browser, and lpoptions -p office -l lists the options of the printer. Printing a file is lpr1: $ lpr -P office document.pdf $ lpq -P office CUPS keeps its queues and its logs in /var/spool/cups and /var/log/cups. A job that stays in the queue is usually a wrong device address or a printer that is off; the error log says which. Sound NetBSD's audio device is configured with audioctl1 and mixerctl1; audiocfg1 lists the devices and lets you test them: $ audiocfg list $ audiocfg test 0 $ mixerctl -a $ mixerctl -w outputs.master=180 MCDE shows the volume in the bar at the top: a slider in the menu, a mute switch, and the wheel over the speaker. The setting is the same mixer that mixerctl changes. The package pulseaudio and its volume control pavucontrol are on the medium for programs that expect a PulseAudio server; MCDE itself does not need one. audioplay1 plays a WAV file without a server, and aucat1 records and plays audio and can act as a sound server. Power and temperature envstat8 shows the sensors the machine has: temperatures, fan speeds, voltages and the battery. powerd8 adjusts the CPU frequency to the load, which is what keeps a laptop cool and quiet: # echo 'powerd=YES' >> /etc/rc.conf # /etc/rc.d/powerd start $ envstat $ sysctl -a | grep -E 'cpu.frequency|machdep.cpu' A desktop machine can run at full speed all the time; a laptop should not. The MCDE bar shows the battery when the machine has one, and System Settings has the screen and sleep settings. On a machine that supports it, apm8 reports the battery and the AC state as well. A machine that shuts down without warning is usually hot or has a failing power supply. Read envstat before you blame the software; the temperatures are the first number to look at.