davidemerson / dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workstation Configuration

This was last tested in OpenBSD 7.5 and Debian 12.

Build Procedure

  1. Run through standard install. On OpenBSD, You do want to use X, and you do want to allow xenodm to manage X. Make yourself a user. On Debian, install just the standard system utilities, and sshd.

  2. Log in as your user. su to root.

3(OpenBSD). Install curl, git, nano, vmwindowhelper

pkg_add curl nano git vmwh

3(Debian). Install curl, git, nano, sudo, xorg, lightdm, xterm

apt install curl nano git sudo xorg lightdm xterm

4(OpenBSD). Add your user to doas

echo "permit nopass [username] as root" > /etc/doas.conf

4(Debian). Add your user to sudoers

sudoedit /etc/sudoers

5(OpenBSD). Install salt-minion

pkg_add salt

5(Debian). Install salt-minion

mkdir /etc/apt/keyrings

sudo curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023.gpg https://repo.saltproject.io/salt/py3/debian/12/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg

echo "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://repo.saltproject.io/salt/py3/debian/12/amd64/latest bookworm main" | tee /etc/apt/sources.list.d/salt.list

apt update

apt install salt-minion
  1. Head back to your local user
exit
  1. Grab this repo. If you're going to fork this and make your own dotfiles, you might want to make a step before the cloning bit where you scp your ssh key to the workstation you're building so you can read/write the repo, and then push your changes back live. If you're just getting a system running, though, read alone is enough here.
git clone https://github.com/davidemerson/dotfiles.git

8(OpenBSD). Execute the execute.sh script, which refreshes the /srv/salt/ directory and applies highstate.

cd dotfiles
chmod 755 execute.sh
doas sh execute.sh

8(Debian). Execute the execute.sh script, which refreshes the /srv/salt/ directory and applies highstate.

cd dotfiles
chmod 755 execute.sh
sudo sh execute.sh
  1. Debian only, run fc-cache to update fonts.
fc-cache
  1. Keep salt-minion from starting (unnecessary since we're using salt-check). Use your editor of choice to comment out the pkg_scripts=salt_minion line in /etc/rc.conf.local.

  2. Make your hostname appropriate by editing /etc/myname with the editor of your choice.

12(OpenBSD). Reboot

doas reboot

12(Debian). Reboot

sudo reboot

Notes

  • You'll note that my .muttrc and .msmtprc refer to "~/.secrets/mailpass" for credentials. This is a one liner file containing my mail app password, keeping it out of this repo, and allowing me to do things like encrypt it on disk. You can substitute any form of password management here, to accommodate your personal preferences.
  • I've always hopped between Debian and OpenBSD for my personal workstation, with the majority of my time spent in Debian for practical reasons. I prefer OpenBSD philosophically, though, and at release 7.1, its warts have never been fewer, so it's what I'm running at the moment. If you used a previous version of this repo, it used to be Debian-centric until recently, and the current iteration will break some of that.

Additional References

Check out how others have done this kind of thing, for inspiration and documentation:

About


Languages

Language:SaltStack 65.0%Language:Shell 35.0%