Prerequisites
- Get a UNIX S3DF account and have it activated via coact
- Can connect using Putty, MobaXterm, terminus (recomended as you can pre configure hosts to ssh with one click) etc
- Note that this can be accomplished using Windows 10+ using SSH in CMD / Mac terminal.
- Security settings need to be specified
- Open Windows command line (type cmd in start menu) / mac terminal
- Type ssh <UNIX_USERNAME>@s3dflogin.slac.stanford.edu
- Enter UNIX password
- (You’re in! But to do anything useful, ssh away from login node.)
- ssh iana (Now you can do something) Iana is one of the interactive compute nodes for general tasks.
First time only - setup Conda
- ssh to an interactive cluster
ssh iana
- run the miniconda setup script
These four commands quickly and quietly install the latest 64-bit version of the installer and then clean up after themselves. To install a different version or architecture of Miniconda for Linux, change the name of the .sh installer in the wget command.
mkdir -p ~/miniconda3 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 rm -rf ~/miniconda3/miniconda.sh
initialize miniconda for bash
~/miniconda3/bin/conda init bash
- create your a conda env
conda create -n <NAME> python=3.11 conda activate <NAME> #install some packages conda install numpy scipy matplotlib h5py jupyterlab
More information on conda:
ARD's S3DF + conda + beamphysics tutorial and Getting Started on s3df with Python/Jupyter