Skip to content

๐Ÿ“‘ Automation to set up dev machine - Arch Linux, i3, tmux, Neovim, etc...

License

Notifications You must be signed in to change notification settings

nixpig/playbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

playbook

๐Ÿ—๏ธ Ansible playbook to set up dev machine

  1. Add SSH key from local machine to GitHub.
  2. Ensure SSH key in running agent: eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa
  3. Clone repo: git clone [email protected]:nixpig/playbook.git && cd $_
  4. Install pre-requisite packages: ./install.sh
  5. Run playbook: ansible-playbook local.yml --ask-vault-pass --ask-become-pass

Note: when installing in default Arch running on WSL2, may need to also set LC_ALL="C.UTF-8".

Assumes a working base Arch install...

  1. Boot from install image
  2. Set keyboard layout: loadkeys uk
  3. Set root password: passwd
  4. Partition hard disk:
  5. Run partitioning utility: fdisk
  6. Add a new EFI boot partition: n
  7. Select primary: p
  8. Set partition number: 1
  9. Set first sector: 2048
  10. Set last sector: +512M
  11. Add a new root partition: n
  12. Select primary: p
  13. Set partition number: 2
  14. Set first sector as default: <enter>
  15. Set last sector as default: <enter>
  16. Write the partition table: w
  17. Format partitions:
  18. Format EFI partition as FAT: mkfs.fat /dev/sda1
  19. Format the root partition as ext4: mkfs.ext4 /dev/sda2
  20. Mount the partitions:
  21. Mount root partition: mount /dev/sda2 /mnt
  22. Create mount point for EFI boot partition: mkdir /mnt/boot
  23. Mount the EFI boot partition: mount /dev/sda1 /mnt/boot
  24. Bootstrap the base system: pacstrap /mnt base linux linux-firmware dhcpcd openssh vim ..

Installing virtualbox/vagrant

  1. Install kernel headers: pacman -S linux-rt-headers

  2. Install virtualbox: pacman -S virtualbox

  3. Load modules: modprobe vboxdrv

  4. Install vagrant: from Hashicorp package - pacman version is outdated and doesn't work

  5. Add user to group: usermod -aG vboxusers $USER

  6. Reboot!

About

๐Ÿ“‘ Automation to set up dev machine - Arch Linux, i3, tmux, Neovim, etc...

Topics

Resources

License

Stars

Watchers

Forks