Build a Terminal Writer Deck on Linux (No Desktop)

A terminal writer deck is a Linux install with no desktop environment, using console tools such as Micro and WordGrinder for writing and git or rsync for syncing.

By
Brennan Kenneth Brown
Published
Reading time
5 minutes
Level
Intermediate
You need
  • A computer you can install Linux on
  • Basic terminal skills
Ink print of birds flying over hills with a train, titled November
November' by Karl Wiener. ca. 1920. | The Wien Museum Online Sammlung (edited by the Author)

A terminal writer deck is a computer that does one thing, writing, because it has no desktop environment to distract you. This guide covers how to get a terminal-only Linux install, which console programs to add, how to write with Micro and WordGrinder, and how to sync your files off the machine. I wanted this setup for longform work like a novel or memoir, which I find harder to sustain than blog posts.

Why build a writer deck from what you already have?

Many people want to cut back on unhealthy or unproductive screen time. There is an entire industry created for blocking apps and dumbphones and distraction-free devices.

Using hardware you already own avoids buying another distraction-blocking gadget. There is a wonderful growing trend of writer decks, which can be understood as devices dedicated to the act of writing and nothing else. Most people who look into this seem to end up buying expensive dedicated devices, or install the (now unmaintained) WriteDeckOS.

How do I remove the desktop environment from Linux?

One of the easiest ways to set up a writing machine is to remove the desktop environment entirely and use only a TTY (command-line interface).

There are many GNU/Linux-based operating systems that ship with this, most of which are designed for use as a server but can work perfectly fine here. Debian's netinst image is a good starting point: during setup you just skip the desktop environment screen entirely and select only "SSH server" and "standard system utilities," and you land at a login prompt with no GUI ever installed. This walkthrough covers the whole process.

Ubuntu Server does the same thing, though its installer assumes a fair bit more disk space and RAM than Debian's does. And Arch Linux installs almost nothing by default, so there is no "opt out of the desktop" step; you add whatever you need afterward.

For the smallest install, use Alpine Linux. A full disk install comes in around 130MB, against 500MB-plus for a minimal Ubuntu Server install, as it swaps out the usual GNU toolchain for musl libc and BusyBox.

In the terminal you keep access to useful tools but lose most of what is distracting.

Which terminal applications are worth installing?

To start, ranger handles file management with vim-style navigation and a three-pane view that previews whatever you've got selected.

For browsing the actual web, Lynx is the oldest web browser still being maintained, going back to 1992, and w3m is the newer and capable of showing inline images in terminals that support it. And Bombadillo is a combined Gopher, Gemini, and Finger client with vim-inspired keybindings.

For reading markdown properly, glow or mdcat will render with syntax highlighting. VisiData is for spreadsheets in the terminal, opening CSVs, TSVs, JSON, and even Excel files. epy reads EPUBs, FB2s, and MOBIs.

Email can be accessed with Alpine (the University of Washington's maintained successor to Pine, not the distro) or NeoMutt if you want something more configurable and scriptable.

For IRC, WeeChat is the scriptable, feature-heavy option and Irssi is the lightweight classic. Catgirl is a newer option with plenty of extensibility.

For music, cmus is a small standalone console player, or you can run MPD as a background daemon with ncmpcpp as the ncurses frontend, which allows music to keep playing after you close the client.

Newsboat is an RSS reader. For the weather, run curl wttr.in to print an ASCII forecast in your terminal, with nothing to install.

tmux to have multiple panes and persistent sessions you can detach from and reattach to later. A shell like fish gives you sane syntax highlighting and autosuggestions without any configuration, and Starship is a prompt that can show you git status, language versions, and battery life.

If you have never used the terminal, the learning curve is steep. Start with a desktop environment and run these programs in a terminal emulator such as kitty. Going terminal-only is a challenge even for regular terminal users, and it also makes the Tildeverse a first-class part of your workflow.

Which editors work best for writing in the terminal?

For blog posts I do my first draft on 750words.com and then finish my editing in Sublime Text, using the terminal to push to GitLab which then automatically publishes to Netlify.

For longform work such as a novel or memoir, which can't be finished in a day or a week, I struggle more with distraction, so a limited device makes sense.

Plenty of tutorials cover Vim or Emacs for this, but I use neither. My setup uses the simple text editor Micro and the full-fledged terminal word processor WordGrinder.

Micro is what I use for everything that isn't longform prose. Config files, scripts, notes. It is a spiritual successor to Nano and uses familiar keybindings: Ctrl+S to save and Ctrl+C and Ctrl+V to copy and paste, rather than a modal system. It has mouse support, syntax highlighting for over a hundred languages, and a Lua plugin system.

For prose I use WordGrinder, which its own author describes as being designed to get the hell out of your way and let you write. It isn't a text editor and it also isn't trying to be Word. There's no WYSIWYG, no font selection, barely any styling at all. Rather, it's a character-cell word processor that handles words: paragraph styles, a running word count, HTML and Markdown import and export, and a menu you can pull up with Esc.

How do I sync my writing off the machine?

Two easy ways are git and rsync. With git, a cron entry that commits and pushes on a schedule looks like this:

*/30 * * * * cd /path/to/manuscript && git add -A && git commit -m "autosave $(date)" && git push

Add it with crontab -e and every 30 minutes whatever you have written is committed and pushed. To avoid a commit every half hour, rsync does the same job without version control:

*/30 * * * * rsync -avz /path/to/manuscript/ user@remote:/path/to/backup/

Either way, once it is running you can stop thinking about it. Scheduled git commits are a long-established backup method.

How do I track word count on a private manuscript?

Beeminder's URLminder (see Build a Wiki-Linked Digital Garden in Eleventy) needs a public URL, which is a problem for private work. My workaround is obscurity: deploy the rendered .txt manuscript to Netlify under a subdomain that's a long random string rather than a chosen name, eg. x7q2m9vb4k1p.netlify.app.

If you don't use a custom domain, and also don't link it anywhere, then the only two places that URL string exists are the Beeminder goal configuration and the Netlify dashboard. Your manuscript stays functionally private while still satisfying the Odometer-type goal that needs to read a publicly fetchable page.