CoCalc Account#

CoCalc is an online computing platform that allows collaborative computations. I highly recommend you create an account and explore it. For more details, see More about CoCalc, but please keep in mind that these notes are from a previous course and may not be completely relevant or up-to-date.

Get a CoCalc Account#

Create an account on CoCalc and sign in. For the seminar, we will share a provisioned product that you can copy for your own use later. Note: the free account will allow you to work with your project, running code (slowly), etc. but will lack internet access (people were abusing this). You can have full access for a fairly modest cost (~$40/year).

Create CoCalc Project#

  • Add License.

  • Add SSH keys (so that we can pull from GitLab.

  • Copy key c892e42f-a2db-4bf8-a298-caeb58d246e8 to ~/.ssh/config:

    # ~/.ssh/config 
    Host ccpwg
      User c892e42fa2db4bf8a298caeb58d246e8
      
    Host cc*
      HostName ssh.cocalc.com
      ForwardAgent yes
      SetEnv LC_HG_USERNAME="Michael McNeil Forbes <m.forbes+pwg@wsu.edu>
      SetEnv LC_GIT_USERNAME="Michael McNeil Forbes"
      SetEnv LC_GIT_USEREMAIL="m.forbes+pwg@wsu.edu"
      SetEnv LC_EDITOR=vi
      
    Host *
      IgnoreUnknown UseKeychain
      UseKeychain yes
      AddKeysToAgent yes
      AddressFamily inet
      # Force IPv4
      # https://www.electricmonk.nl/log/2014/09/24/
      #         ssh-port-forwarding-bind-cannot-assign-requested-address/