Things to Do After New OpenBSD Install
So you have installed OpenBSD as main OS. Most of the things will work out of the box. But still you have to configure some things.
Lock screen on suspend/hibernate/resume
Login as root and create
/etc/apm directory if it isn’t there already.
On lid closure, machines mostly get suspended. But once you open it up, they won’t be locked. Due to these scripts we just created, they will be locked now.
Add your user to
In OpenBSD, we have alternative of
sudo. Although you can install and use
sudo but it has security issues.
We have already added our user to
wheel group so now we will configure
wheel group members runnig privileged commands without password.
Add this line to
Power management with
apmd is Advanced Power Management Daemon. You can use it to save some power and also for cooling CPU.
I have found this settings very useful for my laptop.
You can adopt it to your needs.
-C flag will increase or decrease CPU speed depending on CPU load.
The CPU speed with this will be increased to 50% every second if the load is over 70%. Once the load drops under 70%, apm will decrease the CPU speed 20% every second till the CPU is at its lowest speed.
If you’re working and want to make sure CPU is running at full, just execute
apm -H. And it will clock the CPU to full speed. After you’re done, just execute
apm -C to put the system back into cool running mode.
-z 45 flag, well, I’m a lazy person. Sometimes I leave my laptop opened and fell asleep and in the next hour there might be a power shutdown for hours. This flag actually allows you to put your machine into suspend mode once battery level goes below 45% saving you some battery juice.
There is also
-Z flag for hibernate. You can try both of them. The last one will supersede the other.
datasize-cur values to
Disable console log
xenodm is default display manager. It enables a console log once
X is started. You can disable it by commenting the line like this.
Ending this post
There are lot more things I have configured by hand. This list is still not completed. I’ll keep it updated as I get some free time :)
Thanks for reading…