Use to link your SLAC accounts to GitHub

What do we use GitHub for?

While production versions of operations software live in ~/opsTools, they also remotely live on GitHub, in the SLAC GitHub organization called SLAC Lab. Access to it isn't granted automatically, but it's pretty easy to get!

Step-by-step guide

Note that this requires internet access. One of the ways to do that from an OPI is to click on the MD Page icon on the toolbar, but you could also just do it from a personal or Windows machine.

  1. If you don't have a GitHub account, make one
  2. Send a message to #comp-general on Slack (slac.slack.com) with your username asking to be added to SLAC lab and to the "everyone" team therein
  3. Navigate over to the ops team on SLAC Lab and request to join
  4. Back in lcls-srv01 (the account on the OPIs), Run "set_profile [YOUR USERNAME]" then ssh into mcclogin
     
  5. From there, ssh into centos7 with "ssh centos7"
  6. From there, cat your ssh key with "cat .ssh/id_rsa.pub"
  7. Copy the entire output (starts with ssh-rsa and ends with your email address).
  8. Back on GitHub, go to your settings 
  9. And add a new SSH key
  10. Title it something descriptive, paste in the output you got from cat, and save it! 

    1. Note: the simplest way to do this is to use the MD Page browser on the OPI, but you could also work around it by emailing yourself the key or something (v not secure, but what can you do)