# First steps

These steps take about 15 minutes and leave you with a working session that has access to CMS data and analysis software.

[Log in to Purdue Analysis Facility](<https://cms.geddes.rcac.purdue.edu/hub>)

## 1\. Choose a login method

Choose one of the [supported login methods](<https://analysis-facility.physics.purdue.edu/login-methods/index.md>) and keep using it. A Purdue University account is recommended if you are a Purdue-affiliated user, since it unlocks the [features available only to Purdue accounts](<https://analysis-facility.physics.purdue.edu/login-methods/index.md#account-permissions-at-a-glance>). External collaborators working with Purdue research groups can also request a guest computing account.

## 2\. Select resources

After a successful login, you will be redirected to a page where you can select the number of CPU cores, the amount of RAM ([what the selection means](<https://analysis-facility.physics.purdue.edu/scaling-out/index.md#your-session>)), and (optionally) a [GPU](<https://analysis-facility.physics.purdue.edu/gpus/index.md>) for your session. You can also choose which web interface the session starts with: **JupyterLab** (default) or **VS Code (code-server)**.

The default values are enough to get started. If you need more resources later, shut down the session (`File → Hub Control Panel → Stop My Server`, or the `Shut Down` button in the top right corner) and recreate it with a different selection.

If the session fails to start, see [Troubleshooting](<https://analysis-facility.physics.purdue.edu/troubleshooting/index.md#sessions>).

## 3\. Review storage volumes

After the session has started, take a moment to understand the available storage. The default directory in the file browser and Terminal is your home directory, `/home/<username>`. It is small, and going over its [quota](<https://analysis-facility.physics.purdue.edu/storage/index.md#quotas>) prevents your session from starting — keep your data, environments, and large outputs on the other volumes described in [Storage volumes](<https://analysis-facility.physics.purdue.edu/storage/index.md>).

## 4\. Review kernels and software environments

The analysis software at Purdue AF is managed via Pixi and Conda environments and Jupyter kernels.

To get started, you can use the **global Pixi environment**, which contains all common HEP analysis packages and ML libraries. It is located at `/work/pixi/global/` and has its own [Jupyter kernel](<https://analysis-facility.physics.purdue.edu/software/index.md#jupyter-kernels>). To use the environment in Terminal, run the following commands:

```shell
cd /work/pixi/global/
pixi shell
cd /your/working/directory/
```

For your own analyses, we recommend creating project-specific Pixi environments — see the [Pixi guide](<https://analysis-facility.physics.purdue.edu/guide-pixi/index.md>).

See [Software stacks](<https://analysis-facility.physics.purdue.edu/software/index.md>) for a complete overview. If you need a package that is missing from the global Pixi environment, please [contact Purdue AF support](<https://analysis-facility.physics.purdue.edu/support/index.md>).

## 5\. Set up GitHub access

Follow these instructions:

- [Generating a new SSH key and adding it to the ssh-agent](<https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent>)
- [Adding a new SSH key to your GitHub account](<https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account>)

After you have generated an SSH key and added it to your GitHub account, run the following command in a Terminal to confirm that GitHub authentication was successful:

```shell
ssh -T git@github.com
```

## 6\. Set up a VOMS proxy

A VOMS proxy is required to access CMS data via XRootD, submit CRAB jobs, and use Rucio.

1. If you don't have a CMS VOMS certificate yet, obtain and install one following the instructions at the [CMS TWiki](<https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookStartingGrid>), specifically the section **"Obtaining and installing your Certificate"**. To upload the certificate files (`usercert.pem` / `userkey.pem`) to Purdue AF, see [Uploading and downloading files](<https://analysis-facility.physics.purdue.edu/interface/index.md#uploading-and-downloading-files>).
2. (Optional) Specify the path where your VOMS proxy will be stored. Dask Gateway workers and Slurm jobs can only read a proxy stored on a volume they [mount](<https://analysis-facility.physics.purdue.edu/storage/index.md#overview>). For Dask Gateway, see [Environment variables](<https://analysis-facility.physics.purdue.edu/guide-dask-gateway/index.md#environment-variables>).
3. Activate the VOMS proxy:

   ```shell
   voms-proxy-init --rfc --voms cms -valid 192:00
   ```

## 7\. Join user support channels

Join the Mattermost channel and the mailing list listed in [Support](<https://analysis-facility.physics.purdue.edu/support/index.md>).

## Next steps

- Ask an [AI agent](<https://analysis-facility.physics.purdue.edu/agents/index.md>) in your session: run `claude`, `codex` or `opencode` in a terminal.
- Learn the [interfaces](<https://analysis-facility.physics.purdue.edu/interface/index.md>) and the [analysis tools](<https://analysis-facility.physics.purdue.edu/software/index.md#analysis-tools>).
- Set up a [project-specific Pixi environment](<https://analysis-facility.physics.purdue.edu/guide-pixi/index.md>).
- When your analysis outgrows a single session, [scale out with Dask Gateway](<https://analysis-facility.physics.purdue.edu/guide-dask-gateway/index.md>) or [train on GPUs with Ray](<https://analysis-facility.physics.purdue.edu/guide-ray-train/index.md>).
