- Get an account on Github (if you do not have one yet).
- Fill this form to give us your github username
- Install packages
- Set-up your SSH keys
- Set-up your Github account
Install packages
- The Bash Shell
- Git
- Text editor
- Install Python
- Create a new conda environment with additional packages
Set-up your SSH keys
On your laptop:
- Checking for existing SSH keys
- Generating a new SSH key This stage is only necessary if you do not have SSH keys yet (see 1).
- Adding your SSH key to the ssh-agent
- Copy your SSH public key to NIRD (login.nird.sigma2.no)
# MAke sure you change directory (cd) to your HOME area on your laptop
cd
# remote copy your SSH public key to NIRD login.nird.sigma2.no
# Make sure you change USER by your username/login name on NIRD
# on NIRD the file is named tmp.key instead of id_rsa.pub
scp .ssh/id_rsa.pub USER@login.nird.sigma2.no:tmp.key
- Connect to NIRD login.nird.sigma2.no
In the same GIT-bash terminal (Windows) or Terminal (Mac-OSX and linux):
# option -Y is added to forward X over SSH to run graphics applications remotely on NIRD
# Make sure you replace USER by your username/login name on NIRD
ssh -Y USER@login.nird.sigma2.no
On NIRD (login.nird.sigma2.no):
- Check the machine name
After the previous command, you should be logged in on NIRD. To check:
hostname
The previous command should return something like:
tos-spw08.nird.sigma2.no
- Add your SSH public key to NIRD:
# cd without option change directory to your default HOME directory
cd
# create a new directory .ssh (option -p allows to avoid failure if
# .ssh directory already exists
mkdir -p .ssh
# set unix permissions (you only can read/write/access)
chmod 700 .ssh
# concatenate (using cat command) your public key to authorized keys
# the double sign > (>>) allows to keep any existing content and add tmp.key to
# the end of file authorized_keys
# if authorized_keys does not exist yet, it will be created
cat tmp.key >> .ssh/authorized_keys
# set unix permissions on the authorized_keys file
chmod 644 .ssh/authorized_keys
# remove (rm) temporary file tmp.key once it is concatenated to your authorized keys
# option -f allows to force removal (do not ask for confirmation)
rm -f tmp.key
Github
- If you do not have a github account yet, create a Github
-
Give us your github username so we ca add you as a collaborator to this repository
- Login on NIRD login.nird.sigma2.no and create new SSH keys.
- Add your public SSH key to your github account