Server Desktop
A standalone Terminay Server on Debian can show a desktop. Run firefox, or any other graphical program, in a terminal on the server and its window appears there: a small XFCE session with a panel, an applications menu, a list of open windows, and a terminal launcher. You see and use it from any Terminay client, over the same connection as your terminals.
Opening The Desktop
Show desktop, the monitor icon beside the notifications bell, opens a dropdown with a live view of the desktop. Open in tab opens it as a tab in the project or Home you are looking at, where it moves, splits, and closes like any other tab; its menu can also move it to Home or another project. You can open as many desktop tabs as you like. They share one connection: the tab you used last gets the keyboard, mouse, and clipboard and sets the desktop's size, and the others show the same picture until you click one.
On a phone, open the drawer's Servers panel and choose Show desktop. It opens a desktop tab in the project in front, or in Home. Desktop tabs are listed as desktops in the drawer, the Tabs dashboard, and the Folders tree, and a desktop tab in Home has a back control to close it, because Home has no tab strip at phone width.
The desktop runs as ordinary processes on the same host and under the same account as the server and its terminals. There is no virtual machine and no container: a program on the desktop has that account's home, files, and network, exactly as the same program started from a terminal would. A browser on the desktop browses from the server.
Where It Is Offered
The desktop is offered on Debian Linux standalone servers and in the official container image. On any other host the dropdown says the desktop is not supported there and why, and nothing is started. The server built into Terminay Desktop has no desktop of its own, because its programs already open on your machine, so the icon appears only while the window is on a standalone server. See Installation to set one up.
Setting It Up
The first time you click Show desktop, the dropdown says what is needed and offers Set up desktop. Setup installs a fixed list of stock Debian packages: TigerVNC, a minimal XFCE session, fonts, and the chromium and firefox-esr browsers (about 700 MB between them). Nothing else is installed and no service is enabled. The dropdown shows each step and a progress bar; you can close it and setup carries on.
The server never runs the package manager itself. A system-scope install (terminay daemon install --system) includes a root setup helper with a fixed command line, and the official image runs the same fixed command through sudo. Where the server has no way to ask root, such as a user-scope install or a container without passwordless sudo, the dropdown shows the one command to run on the server instead, with Check again:
sudo terminay daemon desktop installIn a container, run it from the container's host:
docker exec -u root <container> terminay daemon desktop install
The command takes no options and exits at once when everything is already installed. A desktop set up before the browsers were part of setup keeps working; terminay daemon doctor says which browser is absent, and running the command again adds it. A container's packages live in the container, so recreating it from the image means setting the desktop up again.
Using It
New terminals on the server get DISPLAY and XAUTHORITY while the desktop runs, so graphical programs just work. A terminal opened before the desktop was set up does not have them; open a new one, or use the display number shown in a desktop tab's menu:
DISPLAY=:765 firefox
The number is 765 unless something else already has it. A shell profile that sets its own DISPLAY keeps it.
One device controls the desktop at a time. The first to open it has the keyboard and mouse; everyone else watches. Take control takes it from whoever has it, and they are told who took it. Give up control keeps you watching. Clipboard text is shared with the controlling device only.
The desktop keeps running when the server restarts or is upgraded, with its programs still open. Turn off desktop… in a desktop tab's menu closes every window on it, asking first when any are open, and Turn on starts it again. The choice is remembered across restarts.
Security
Pairing is the trust point. Any device paired with the server may use the desktop, because it can already open a shell there. The desktop belongs to the server, not to a project, so every project and every paired device sees the same windows.
Nothing listens on the network. Terminay starts its own display server and never uses or changes an X or VNC session you already run. It opens no TCP or UDP port, listens only on an owner-only unix socket, runs under a system-call filter that stops it opening network sockets, and accepts only X clients holding its cookie. Screen updates and input travel over your existing Terminay connection. terminay daemon doctor checks this on a running desktop.
Limits
- Software rendering. There is no GPU, so video and WebGL work slowly.
- No audio.
- One desktop. Every tab shows the whole desktop, not one program.
- The server must share
/tmpwith its terminals. A service unit withPrivateTmp=truemakes the desktop unsupported;sudo terminay daemon upgrade --systemrewrites the unit.
The standalone server runbook lists the exact packages, the setup helper, and what to check when the desktop does not start.