Last active
April 26, 2023 16:02
-
-
Save frenata/9618e36077d202e8cffe1671f2423722 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 0. create and install OpenBSD on QEMU | |
host$ qemu-img create openbsd.img 10G | |
host$ qemu-system-x86_64.exe -hda .\openbsd.img -boot d -cdrom .\<BSD_INSTALL_IMG>.iso -m 1024 | |
bsd$ <INSTALL BSD AND THEN HALT> | |
host$ qemu-system-x86_64.exe -drive file=openbsd.img,if=virtio,format=raw -boot c -m 1024 -net nic -net user,hostfwd=tcp::2222-:22 -nographic -monitor telnet::45454,server,nowait -serial mon:stdio | |
host$ ssh <USER>@localhost -p 2222 | |
-- 1. configure doas | |
bsd$ su | |
bsd# echo permit :wheel > /etc/doas.conf | |
bsd# usermod -G wheel <USER> | |
bsd# exit | |
-- 2. install git | |
bsd$ doas pkg_add git | |
-- 3. setup pkgset, see https://dataswamp.org/~solene/2022-05-05-openbsd-declarative-packages-with-pkgset.html | |
bsd$ git clone https://tildegit.org/solene/pkgset.git | |
bsd$ cd pkgset && doas make install && cd .. | |
bsd$ doas touch /etc/pkgset.conf | |
bsd$ doas chmod g+w /etc/pkgset.conf | |
bsd$ echo 'vim--no_x11' >> /etc/pkgset.conf | |
bsd$ doas pkgset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment