This is a script for setting up my laptop. It works in conjunction with my dotfiles repo
This is intended to be used on a brand new machine so you'll have to curl the project and unzip it.
$ curl -o ~/settop-master.zip -Lk https://github.com/ryanhedges/settop/archive/master.zip
$ unzip -j ~/settop-master.zip -d ~/init-settop
$ rm ~/settop-master.zip-
Set up ssh key for github. The script is based on the directions found on github's documentation.
$ source ~/init-settop/settop_ssh.sh
This will:
- Generates a ssh key
- Creates the
.ssh/configfile - Adds key to a ssh-agent using
--apple-use-keychainfor passphrase - Copy contents of
id_ed25519.pubto your clipboard for pasting into GitHubs account settings.
If there is anything in the ssh directory, it will NOT generate a key. You may want to copy from your keys over from an existing computer if possible.
After setting up the new SSH key with github you can test it with:
$ ssh -T git@github.comContinue by adding 'github.com' to the list of known hosts and you should see..
Hi RyanHedges! You've successfully authenticated, but GitHub does not provide shell access
Open app store and ensure that the apple account that downloads Mac apps is signed in. This can be triggered by going to Account Settings. I have to switch my personal Apple ID to my application Apple ID for this to work.
- Run the settop script
$ sh ~/init-settop/settop.sh-
Run the script to copy this repo for future development
$ sh ~/init-settop/clone_and_link.sh -
Remove the initial download
$ rm -rf ~/init-settop
Read the manual setup guide to run through the checklist