_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | en |
| mdoc file |
| search |
linux to openbsd —
migration from linux to OpenBSD,
differences and tips
DIFFERENCES AND TIPS
| pager | | default pages is more, change it on .profile | | export PAGER=less |
| updatedb | | is run weekly, to run manually | | /usr/libexec/locate.updatedb |
| completion | | path | | /usr/local/share/bash-completion/bash_completion |
| bc | | cannot be killed with ^c, type | | quit or ^d |
| lsblk | | is not core. | |
| realpath | | use | | readlink -f |
| halt | | halt waits for keypress to reboot, to halt | | halt -p |
| halt | | halt waits for keypress to reboot, use: | | Bf -literal halt -p |
SUDO
- sudo is replaced by doas
- add wheel group to the users that need root access
usermod -G wheel user - create the config
cp /etc/examples/doas.conf /etc/ - modify config to not ask the password everytime you run doas
permit persist :wheel
BASH
change shell from ksh to bash
chsh -s
/usr/local/bin/bashfor scripts change:
#!/bin/bash#!/usr/bin/env bashbad interpreterwhereis bashMOUNT ISO
vnconfig $iso_file mount -t cd9660 /dev/vnd0a /path_to_iso_mount
SEE ALSO
openbsd , linux , user_management
- OpenBSD manpages: vnconfig(8) , doas(1) , usermod(8) , readlink(1)