summaryrefslogtreecommitdiff
path: root/nspawn/post-install.txt
blob: de3b2cebd150ad60ed1995387b3cd4de0929c277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# set root passwd from local shell
sudo systemd-nspawn -D /var/lib/machines/{$machine} /usr/bin/passwd

# do sudo systemd-nspawn -b -D /var/lib/machines/{$machine} to log in as root and do...
/usr/sbin/useradd -m -s /usr/bin/fish brad
passwd brad
apt install locales sudo tmux git fish git-delta tig keychain
/usr/sbin/usermod -a -G sudo brad
/usr/sbin/dpkg-reconfigure locales

edit /etc/hosts to add 'debian' to first two lines

# do this as root AND as brad (not needed if you are running keychain!)
# systemctl --user enable ssh-agent.service
# systemctl --user start ssh-agent.service

loginctl enable-linger brad

# make a tarball of stuff to cp over
tar -rvf d.tar .gitconfig .tmux.conf .ssh .gnupg .config/fish .config/nvim bin/pull-git.pl bin/push-git.pl repos/bradclawsie/dotfiles-public/.git/config