Skip to content

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.

The main tab allows you to configure and start the ttyd job.

Web Terminal Job Submission Initial Screen

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.
  • Start Terminal Button: Clicking this button submits a request to the Slurm scheduler to launch the ttyd web terminal instance within the specified container.

Once the job is submitted and starts running, the interface will update to show connection options:

Web Terminal Connection Buttons
  • Copy Password: Copies the temporary password (if authentication is configured) for this session.
  • Connect: Opens the ttyd web terminal in a new browser tab.
  • Stop Terminal: Terminates the running ttyd job.

Click Connect. A new tab will open displaying the interactive terminal session running within the container on the HPC node:

Web Terminal Interface

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.)