Skip to content

Latest commit

 

History

History
69 lines (49 loc) · 2.11 KB

README.md

File metadata and controls

69 lines (49 loc) · 2.11 KB

Host Configuration

UI

Complete the macOS setup

Use admin as the username for the initial user

Adjust the machine’s preferences:

  • General → Sharing → enable Screen Sharing
  • General → Sharing → enable Remote Login
  • General → Sharing → edit Hostname (gh-shr-XX)
  • General → About → edit Name (gh-shr-XX)
  • Displays → Advanced… → Energy → enable Prevent automatic sleeping when display is off
  • Energy Saver → enable Start up automatically after a power failure
Sharing Displays Energy Saver

CLI

Install SSH Key

From your local machine, copy your public SSH key (eg. ~/.ssh/id_rsa.pub) to the machine

# You’ll be prompted for admin’s password just this one time
$ ssh-copy-id -i ~/.ssh/id_rsa.pub admin@<HOST_IP>

Copy Files

Still from your local machine, copy a few files from this repository. The .env contains configurations for the runner (see .env.example for a template).

$ scp launch.sh admin@<HOST_IP>:vm
$ scp com.mirego.ekiden.plist admin@<HOST_IP>:vm
$ scp .env admin@<HOST_IP>:vm

Install Tools

On the remote machine, install Homebrew, wget, sshpass and tart

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
$ brew install wget cirruslabs/cli/tart cirruslabs/cli/sshpass

Start the Runner

Install the service and launch it.

$ sudo chown root:wheel launch.sh
$ sudo cp com.mirego.ekiden.plist /Library/LaunchDaemons
$ sudo launchctl load -w /Library/LaunchDaemons/com.mirego.ekiden.plist

You can now logout from the server.