Web Terminal (ttyd)
This page allows you to start an interactive terminal session directly in your web browser using ttyd, running as a job on the HPC cluster.
Launching the Web Terminal
Section titled “Launching the Web Terminal”The main tab allows you to configure and start the ttyd job.
1. Apptainer Container Settings
Section titled “1. Apptainer Container Settings”These settings define the container environment where the terminal will run:
- Container Path (Prefix: code-server): Specifies the path to the Apptainer image (e.g.,
/home/Containers/code-server_latest.sif). It seems the terminal uses the same base image as CodeServer, providing a consistent environment. - New Environment Variable: Add any specific environment variables you want available in your terminal session.
2. Start Terminal
Section titled “2. Start Terminal”- Start Terminal Button: Clicking this button submits a request to the Slurm scheduler to launch the
ttydweb terminal instance within the specified container.
3. Connecting to Your Session
Section titled “3. Connecting to Your Session”Once the job is submitted and starts running, the interface will update to show connection options:
- Copy Password: Copies the temporary password (if authentication is configured) for this session.
- Connect: Opens the
ttydweb terminal in a new browser tab. - Stop Terminal: Terminates the running
ttydjob.
Click Connect. A new tab will open displaying the interactive terminal session running within the container on the HPC node:
You can now execute commands as you would in a standard Linux terminal.
(Note: Similar to CodeServer, specific job resource options might be configured under the “Setting” tab or use predefined defaults.)