---
title: "Deploy Ubuntu 22.04 Terminal [Update Jun'26]"
description: "Browser-based Ubuntu 22.04 terminal with persistent storage."
category: "Starters"
url: https://railway.com/deploy/ubuntu-2204-terminal
---

# Deploy Ubuntu 22.04 Terminal [Update Jun'26]

Browser-based Ubuntu 22.04 terminal with persistent storage.

**[Deploy Ubuntu 22.04 Terminal [Update Jun'26] on Railway](https://railway.com/template/ubuntu-2204-terminal)**

- **Creator:** Tasha
- **Category:** Starters
- **Total deploys:** 80

## Template content

### ubuntu22-railway

- **Source:** Amritasha/ubuntu22-railway
- **Public domain:** Yes

## Documentation

# Deploy and Host Ubuntu 22.04 Terminal on Railway

Ubuntu 22.04 Terminal gives you a full browser-accessible bash shell running on Ubuntu 22.04 LTS — no SSH client, no local setup, no configuration needed. Files and packages you install persist across restarts thanks to a built-in volume mounted at /root. Just open the URL, enter your credentials, and you're in a live Linux terminal from anywhere.

## About Hosting Ubuntu 22.04 Terminal

Hosting Ubuntu 22.04 Terminal on Railway spins up an Ubuntu 22.04 LTS Docker container with a ttyd web terminal exposed over HTTP. Railway handles the HTTPS proxy, domain, and container lifecycle automatically. A persistent volume is mounted at /root, meaning anything you install or create survives redeploys. You simply set your username and password, deploy, and access your terminal via the Railway-provided URL. The container comes pre-installed with a full set of commonly used CLI tools, making it ready for immediate use without any additional setup.

## Common Use Cases

- Run and test shell scripts from any device without a local Linux environment
- Quickly explore or debug Linux CLI tools and package behavior on Ubuntu 22.04 LTS
- Use as a lightweight persistent remote development environment accessible from a browser

## Dependencies for Ubuntu 22.04 Terminal Hosting

- Docker (handled automatically by Railway)
- A Railway account with an active project

### Deployment Dependencies

- [ttyd — Terminal over HTTP](https://github.com/tsl0922/ttyd)
- [Ubuntu 22.04 LTS Docker Image](https://hub.docker.com/_/ubuntu)
- [Railway Docs — Dockerfiles](https://docs.railway.com/builds/dockerfiles)

### Implementation Details

The container starts ttyd bound to the Railway-injected $PORT, protected by $USERNAME and $PASSWORD:

/bin/ttyd -p $PORT -c $USERNAME:$PASSWORD /bin/bash

A volume is mounted at /root to persist all user files across restarts.

Pre-installed tools:

Editors: vim, nano
System: htop, tree, lsof, strace, less, man
Files: unzip, zip
Build: gcc, g++, make, build-essential
Network: ifconfig, ip, ping, dig, openssh-client, telnet, netcat
Data: jq
General: sudo, python3, pip, git, curl, wget, neofetch

Need more? Install anything with:

apt-get install -y 

No sudo needed — the container runs as root. Files saved inside /root persist across restarts. Note that packages installed via apt-get are stored outside /root and will not survive a full redeploy.

| Variable | Description |
|---|---|
| PORT | Port ttyd listens on (default: 7681) |
| USERNAME | Login username for the web terminal |
| PASSWORD | Login password for the web terminal |

## Why Deploy Ubuntu 22.04 Terminal on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Ubuntu 22.04 Terminal on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/ubuntu-2204-terminal
