OpenBSD на рабочей станции

Материал из OpenBSD-Wiki
Перейти к навигации Перейти к поиску

Вольный перевод статьи Eric Radman An OpenBSD Workstation.

Power Button Shutdown

This nifty option in /etc/sysctl.conf can only be set before entering securelevel 1, and allows you to shut off your computer gracefully by pressing the power button.

     hw.allowpowerdown=1

No More Annoying Beep

One of the many useful and unexpected things you'll learn in Absolute OpenBSD 2nd Edition is how to disable the annoying UNIX bell in /etc/wsconsctl.conf

     keyboard.bell.volume=0

As of the 5.4 release wsconsctl no longer seems to work. You an also disable the bell using

     # .xinitrc
     xset -b

or

     # rc.conf.local
     mixerctl inputs.spkr.mute=on

User-Mounted Media =

It's nice to be able to mount DVDs or flash media without switching to root, which is what the operator group is for.

     # usermod -G operator eradman
     # chmod g=rw /dev/cd0*

Then flip a kernel option and you're all set.

     # sysctl kern.usermount=1

     $ mkdir -p mount/cdrom
     $ mount /dev/cd0c mount/cdrom

Suspend & Resume

OpenBSD has very good ACPI support, see apmd(8). zzz and ZZZ are shortcuts for suspend and hibernate if apmd is run at startup.

     apmd_flags=""