grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit c4b055c8e4d6222a9a5440cf0f892da16549c402
parent e0776c64378a5f723755dff47968e1e6c5abc1ea
Author: pyratebeard <root@pyratebeard.net>
Date:   Tue, 29 Nov 2022 12:30:54 +0000

updates

Diffstat:
Munix/openbsd.md | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+), 0 deletions(-)

diff --git a/unix/openbsd.md b/unix/openbsd.md @@ -1,5 +1,45 @@ # openbsd +## setting up new system +### pre install +* [softraid encryption][] with keydisk +* select `(S)hell` from install menu +``` +cd /dev && sh MAKEDEV sd0 +dd if=/dev/urandom of=/dev/rsd0c bs=1m +fdisk -iy sd0 #mbr +disklabel -E sd0 + Label editor (enter '?' for help at any prompt) + sd0> a a + offset: [64] + size: [976773104] * + FS type: [4.2BSD] RAID + sd0*> w + sd0> q + No label changes. +sh MAKEDEV sd2 #keydisk +fdisk -iy sd2 #mbr +disklabel -E sd2 + Label editor (enter '?' for help at any prompt) + sd2> a a + offset: [64] + size: [7831488] 1024 + FS type: [4.2BSD] RAID + sd2*> w + sd2> q + No label changes. +bioctl -c C -k sd2a -l sd0a softraid0 +sh MAKEDEV sd3 #softraid +dd if=/dev/zero of=/dev/rsd3c bs=1m count=1 +exit +``` +* continue with [installation][], selecting softraid disk (`sd3`) for install + +### post install +``` +echo "permit nopass <username> > /etc/doas.conf +pkg_add -u +``` ## firewall ``` vi /etc/pf.conf @@ -18,3 +58,21 @@ sysctl hw.disknames ``` disklabel <device> ``` +* creating msdos partition +``` +disklabel -E <disk> + Label editor (enter '?' for help at any prompt) + sd2> a b + offset: [1088] + size: [7830464] * + FS type: [4.2BSD] msdos + sd2*> w + sd2> q + No label changes. +newfs_msdos /dev/rsd2b +``` + +## misc +* hostname - /etc/myname + +[softraid encryption]: https://www.openbsd.org/faq/faq14.html#softraidFDE