|
|
před 1 měsícem | |
|---|---|---|
| scripts | před 1 měsícem | |
| .env.example | před 1 měsícem | |
| .gitignore | před 1 měsícem | |
| Dockerfile | před 1 měsícem | |
| README.md | před 1 měsícem | |
| docker-compose.yml | před 1 měsícem |
A headless Ubuntu 24.04 container with an XFCE desktop, TigerVNC, and a noVNC web client. Open a full desktop in the browser at http://localhost:6901/vnc.html.
cp .env.example .env # set VNC_PASSWORD (and optionally RESOLUTION)
docker compose up -d --build
Then open http://localhost:6901/vnc.html and log in:
ubuntuVNC_PASSWORD from your .envVariables are read from .env (see .env.example):
| Variable | Default | Description |
|---|---|---|
VNC_PASSWORD |
changeme |
Login password for the ubuntu user |
RESOLUTION |
1280x800 |
Desktop geometry |
The container starts with a warning if
VNC_PASSWORDis stillchangeme. Set it before using the box.
docker compose up -d --build # build and start
docker compose logs -f # follow container logs
docker exec -it xubuntu_sandbox bash # shell inside the desktop
docker compose stop # stop (keeps volume)
docker compose down -v # stop and delete the persistent volume
| Port | Service |
|---|---|
| 6901 | noVNC web client (browser access) |
| 5901 | TigerVNC (raw VNC, for native clients) |
scripts/xstartup via dbus-launch.:1. This build does not ship vncpasswd, so it uses VNC's Plain security type and authenticates against the Unix ubuntu account via PAM — which is why the login password is set with chpasswd from VNC_PASSWORD at container start (scripts/entrypoint.sh).websockify on port 6901, proxying to the VNC server.xubuntu_home is mounted at /home/ubuntu, so your files, installed packages, and settings survive container rebuilds. (The VNC password is not persisted — it is reapplied from VNC_PASSWORD on every start.)ubuntu user has passwordless sudo.Dockerfile Ubuntu 24.04 + XFCE + TigerVNC + noVNC
docker-compose.yml Service definition (ports, volume, env)
scripts/entrypoint.sh Sets password, starts VNC + websockify
scripts/xstartup XFCE session launcher for VNC
.env.example Default configuration