This script automates initial access setup to the HPC cluster via WALDUR. It generates an SSH key if needed, uploads the public key to WALDUR, creates a desktop shortcut for SSH login, and mounts the user’s HPC home directory using SSHFS.
- Linux or macOS
- Python 3.9 or newer
Install required Python package:
pip install waldur-api-clientThe script relies on SSH key generation, SSH connectivity checks, and mounting the HPC home directory using SSHFS.
The following tools must be available in PATH:
sshssh-keygensshfs(optional)
Install sshfs using your distribution package manager:
# RHEL / CentOS / Alma / Rocky
yum install sshfs
# Debian / Ubuntu
apt-get install sshfsInstall FUSE and SSHFS using Homebrew:
brew install --cask macfuse
brew install gromgit/fuse/sshfs-macNote: On macOS, macFUSE requires approval in
System Settings → Privacy & Security after installation.
Before running the script, ensure:
- You have a Waldur account with access to a project that has an active HPC allocation.
- You have a valid Waldur API token. You can obtain the token from the User Dashboard after logging in to Waldur.
-
Clone the repository:
git clone https://github.com/rtuhpc/configureHPC.git cd configureHPC -
Ensure
config.iniis configured correctly. -
Run the script:
python3 configure_HPC_v1.1.py
-
When prompted, paste your Waldur API token.
A pre-configured .desktop file is included for Linux systems.
- Save it to your Desktop and make it executable:
chmod +x ~/Desktop/Configure\ HPC.desktop
- Double-click to run the script in a terminal window.