Skip to content

sud0x0/mac-linux-setup

Repository files navigation

mac-linux-setup

A collection of shell scripts to automate development environment setup on macOS and Ubuntu (ARM).

Structure

mac/
  initial-setup.sh       # macOS dev environment setup
  vscode-setup.sh        # VS Code extensions and settings
  zshrc-template.sh      # zsh config template for macOS

linux/
  os-setup.sh            # Ubuntu dev environment setup
  setup-vscode-server.sh # VS Code Server extension installer for Ubuntu VM
  zshrc-template.sh      # zsh config template for Ubuntu

Usage

macOS:

cd mac

chmod +x initial-setup.sh 
./initial-setup.sh 

chmod +x vscode-setup.sh
./vscode-setup.sh

cp zshrc-template.sh ~/.zshrc

Ubuntu (ARM):

The Ubuntu script is ARM only and does not support AMD.

cd linux

chmod +x os-setup.sh
./os-setup.sh

cp zshrc-template.sh ~/.zshrc

# once you connect VSCode in the local machine to the VM via SSH, run setup-vscode-server.sh
chmod +x setup-vscode-server.sh
./setup-vscode-server.sh

Development Pattern

  • Connect to the development server via SSH and do the development there: https://code.visualstudio.com/docs/remote/ssh
  • Repositories will live in the VM and the repository manager.
  • Podman will be used to run and build the code.
  • Why: This way the main host is minimal and reduces the blast radius of potential supply chain attacks

About

My custom MacOS and Ubuntu Development VM setup

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages