grimoire

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

commit aa0daf15f18d76c4eab5913ebd24af0742990705
parent c4b055c8e4d6222a9a5440cf0f892da16549c402
Author: pyratebeard <root@pyratebeard.net>
Date:   Wed, 30 Nov 2022 17:41:02 +0000

updates

Diffstat:
Munix/openbsd.md | 101++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 95 insertions(+), 6 deletions(-)

diff --git a/unix/openbsd.md b/unix/openbsd.md @@ -10,7 +10,7 @@ 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 + sd0> a a offset: [64] size: [976773104] * FS type: [4.2BSD] RAID @@ -18,14 +18,25 @@ disklabel -E sd0 sd0> q No label changes. sh MAKEDEV sd2 #keydisk +dd if=/dev/urandom of=/dev/rsd0c bs=1m fdisk -iy sd2 #mbr disklabel -E sd2 Label editor (enter '?' for help at any prompt) - sd2> a a - offset: [64] - size: [7831488] 1024 + sd2> a a + offset: [64] 31205376 #total - 2048 + size: [2048] 1024 FS type: [4.2BSD] RAID sd2*> w + sd2> a b + offset: [64] 31206400 #total - 1024 + size: [1024] * + fs type: [swap] RAID + sd2*> w + sd2> a i + offset: [64] + size: [31205312] * + fs type: [swap] msdos + sd2*> w sd2> q No label changes. bioctl -c C -k sd2a -l sd0a softraid0 @@ -38,8 +49,69 @@ exit ### post install ``` echo "permit nopass <username> > /etc/doas.conf -pkg_add -u ``` + +``` +doas pkg_add -u +doas pkg_add \ + git \ + vim \ + herbstluftwm \ + rxvt-unicode \ + stow \ + zsh \ + unclutter \ + xbindkeys \ + keychain \ + dmenu \ + gnupg \ + irssi \ + qutebrowser \ + sacc \ + xcape \ + mpv \ + wget +doas ln -s /usr/local/bin/zsh /usr/bin/zsh +git clone git://git.pyratebeard.net/dotfiles.git dot +cd dot +stow * +mkdir ~/.fonts +cd ~/.fonts +wget https://pyratebeard.net/trigon-font/trigon8x15r.bdf +# cp .xinitrc to .xsession +doas chsh pyratebeard +# urxvt LANG +``` + +#### wifi +* on arch +``` +lftp "http://firmware.openbsd.org/firmware/7.2/" +cd ok, cwd=/firmware/7.2 +lftp firmware.openbsd.org:/firmware/7.2> mget * +69709649 bytes transferred in 124 seconds (549.2 KiB/s) +Total 26 files transferred +lftp firmware.openbsd.org:/firmware/7.2> quit +quit +cd ../ +tar czf ./firmware.tgz openbsd_firmware +scp firmware.tgz laptop: +``` + +* in openbsd +``` +tar xzf firmware.tgz +doas fw_update -p openbsd_firmware/ +doas vi /etc/hostname.iwm0 + join "<ssid>" wpakey "<password>" + #join "<ssid>" wpakey "<password>" + #join "<ssid>" wpakey "<password>" + inet autoconf +doas sh /etc/netstart iwm0 +``` + +#### gui + ## firewall ``` vi /etc/pf.conf @@ -47,6 +119,14 @@ vi /etc/pf.conf ## packages * `pkg_info` show all packages installed by `pkg_add` +* use `pkg_info -Q <package_name>` or `pkglocate <package_name>` (requires installing `pkglocatedb`) for searching +* mirror in `/etc/installurl` + +## daemons +``` +rcctl ls all +rcctl start sshd +``` ## devices * list attached devices @@ -74,5 +154,14 @@ newfs_msdos /dev/rsd2b ## misc * hostname - /etc/myname - +* changing terminal font + * on arch + ``` + pacman -S cabel-install ghc + git clone "https://github.com/polachok/bdf2wscons" + cd bdf2wscons + cabel install + bdf2wscons trigon8x15.bdf > + ``` + [softraid encryption]: https://www.openbsd.org/faq/faq14.html#softraidFDE