.Dd Created:2025-10-03|Updated:2025-10-06| .de ocsi \\$* , .. .de oxr .ocsi .Xr \\$* .. .de oit .It \\$* .. .de obdi .Bl -dash -compact .oit \\$* .. .de obdl .Bd -literal -compact \\$* .. .de onote .Bl -hang -compact .oit \\$* .El .. .de ocomm .Bl -diag -compact .oit \\$* .El .. .de opsy .Pp .Sy - \\$* .. .de obc .Bl -column \\$* .. .de obc2 .obc opt desc .. .de obc3 .obc option arguments description .. .Dt LINUX_TO_OPENBSD oh .Os OpenBSD 7.7 linux| .Nm linux to openbsd .Nd migration from linux to OpenBSD, differences and tips .Sh DIFFERENCES AND TIPS .Bl -column -compact ".Sy updatedb " ".Sy do not show the scrollbar on xterm xterm xterm " .It pager Ta | default pages is more, change it on .profile Ta | export PAGER=less .It updatedb Ta | is run weekly, to run manually Ta | Pa /usr/libexec/locate.updatedb .It completion Ta | path Ta | Pa /usr/local/share/bash-completion/bash_completion .It bc Ta | cannot be killed with ^c , type Ta | quit or ^d .It lsblk Ta | is not core. .It realpath Ta | use Ta | readlink -f .It halt Ta | halt waits for keypress to reboot, to halt Ta | halt -p .It halt Ta | halt waits for keypress to reboot, use: Ta | Bf -literal halt -p .El .Sh SUDO .obdi sudo is replaced by doas .oit add wheel group to the users that need root access .Dl usermod -G wheel user .oit create the config .Dl cp /etc/examples/doas.conf /etc/ .oit modify config to not ask the password everytime you run doas .Dl permit persist :wheel .El .Sh BASH .Ss change shell from ksh to bash .Dl chsh -s /usr/local/bin/bash for scripts change: .Dl #!/bin/bash to .Dl #!/usr/bin/env bash if it still shows error: .Dl bad interpreter find the location of bash and use the resulting path instead .Dl whereis bash .Sh MOUNT ISO .obdl vnconfig $iso_file mount -t cd9660 /dev/vnd0a /path_to_iso_mount .Ed .Sh SEE ALSO .oxr openbsd oh .oxr linux oh .Xr user_management oh .opsy OpenBSD manpages: .oxr vnconfig 8 .oxr doas 1 .oxr usermod 8 .Xr readlink 1 .El .Sh AUTHORS .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com