Deploy Debian 12 Terminal
Lightweight Debian 12 browser terminal. No setup needed.
debian12-railway
Just deployed
/root
Deploy and Host Debian 12 Terminal on Railway
Debian 12 (Bookworm) is a stable, lightweight Linux distribution. This template gives you a full Debian 12 shell accessible from any browser — no local installation, no SSH client needed. Powered by ttyd with password protection and a persistent volume at /root.
About Hosting Debian 12 Terminal on Railway
Hosting Debian 12 Terminal on Railway deploys a Debian 12 container with ttyd serving a browser-based shell. Railway handles the build, networking, and uptime automatically. The container includes Python 3, Git, build tools (gcc, make), vim, nano, htop, jq, and common network utilities. A persistent volume mounted at /root ensures your files and projects survive restarts. Simply set your PORT, USERNAME, and PASSWORD and you have a private Linux terminal in the cloud within minutes.
Common Use Cases for a Browser-Based Debian 12 Terminal
- Cloud scripting and automation without a local Linux machine
- Debian-based build and test environments
- Learning Linux and shell scripting from any device
Dependencies for Debian 12 Terminal Hosting
- Docker (handled by Railway)
- ttyd v1.7.3 — browser-based terminal over HTTP
Deployment Dependencies
Implementation Details
```bash
Install additional packages
apt-get install -y ```
Configuration
| Variable | Description |
|---|---|
| USERNAME | Login name for the web terminal. Defaults to root. |
| PASSWORD | Login password. Generated for you at deploy time — read it from the service's Variables tab, or set your own before deploying. |
| PORT | Port ttyd listens on. Defaults to 7681; Railway maps it to the public URL for you. |
| INSTALL_CLAUDE_CODE | Set to true to install Claude Code on first boot (default: false). |
Opening the service URL prompts for USERNAME and PASSWORD over HTTP Basic
auth. The terminal is a root shell on the public internet, so treat that password
as the only thing standing between a stranger and your container — change it from
the generated value only to something stronger, never something weaker.
A volume is mounted at /root, so files you leave in the home directory survive
restarts and redeploys. Packages installed with the system package manager live
outside /root and do not survive a redeploy — reinstall them, or bake them
into the image if you need them permanently.
Claude Code in the terminal (optional)
Set INSTALL_CLAUDE_CODE to true and Claude Code is installed on first boot, into /root/.local/bin on the volume — so it survives restarts and keeps itself updated. It is off by default, which keeps the image small for everyone who does not want it.
The install happens at boot rather than at build time on purpose: /root is the mounted volume, so anything written there while building is hidden the moment the volume mounts.
You still need your own access — a Claude Pro, Max or Team account, or an ANTHROPIC_API_KEY with credit on it. Nothing in the install can stop the terminal from starting; if it fails, you get a message and a working shell.
Why Deploy Debian 12 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 Debian 12 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.
Template Content
debian12-railway
Amritasha/debian12-railway