>_ DARKPC.NETSLACKWARE / CONSOLE / RETRO UNIX
Hands-on Linux tutorial

Turn Your Linux Console Into a Green Retro UNIX Terminal

No fake terminal window. Just Slackware, a real TTY, green letters and a whole lot of old-school charm.

DarkPC.net · Slackware 15.0 · Beginner-friendly · 10–20 minutes

Before desktop terminals had transparency, themes and tabs, a computer screen could be nothing more than green letters on black. Let's bring that look back on a real Linux text console—then give Bash and tmux matching colours. No desktop terminal emulator required.

What you'll build: a green-on-black Linux virtual console, a classic Bash prompt, mostly monochrome ls output, an optional bitmap font, and an old-school green tmux status bar. You'll also know how to undo every change.

1. Know which terminal you're using

Linux has more than one kind of terminal:

From your Slackware desktop, try Ctrl+Alt+F3 to reach an available text login. Log in as your regular user. To return to the graphical desktop, use its assigned virtual-console key (often Ctrl+Alt+F1, F2 or F7, depending on setup).

Check where you landed:

tty
echo "$TERM"
cat /proc/fb

Look for a tty result such as /dev/tty3, and usually linux for TERM. cat /proc/fb lists available framebuffer devices; it does not, on its own, prove that the currently active TTY is using fbcon. An empty listing doesn't prevent you from trying the green virtual-console theme.

Safety first: Do the next steps on a real local TTY, not inside Konsole, an SSH session or tmux. None of the first colour changes edits the bootloader or kernel.

2. Go green—right now

At the Linux text console, type:

setterm --foreground green --background black --store --clear all

The screen should clear and ordinary text should now appear green on black. Here's what the options do:

Run a few familiar commands:

pwd
whoami
uname -a
ls -la

Why might ls still show blue or cyan filenames? Modern ls can add its own colour codes. For a one-off plain-green listing, try:

ls --color=never -la

When ls stops colouring filenames itself, the console's green foreground can show through across the listing. Some full-screen programs and commands still select their own colours; this is normal.

3. Give Bash a classic UNIX prompt

First, test a new prompt without editing a file:

PS1='\[\e[1;32m\][\u@\h \W]\$ \[\e[0m\]'

The result will resemble:

[user@slackware ~]$ 

Your actual username and machine name will appear instead. \u means username, \h means hostname, \W means the current directory's short name, and \$ displays $ for a normal user or # for root. The ANSI colour code makes the prompt bright green; the reset code returns subsequent output to the console's stored default.

Want an even simpler vintage prompt? Test this instead:

PS1='\[\e[1;32m\]\u@\h:\w\$ \[\e[0m\]'

Neither test is permanent. You can log out to recover your existing prompt.

4. Try a bigger, retro console font (optional)

Slackware ships with the setfont utility and a collection of console bitmap fonts. First, see what's actually installed:

ls /usr/share/kbd/consolefonts | less

Find a font name you like. Don't assume a particular Terminus font is installed; the list varies. Loading a console font generally needs root privileges. From the local TTY:

su -
setfont FONT_NAME
exit

Replace FONT_NAME with a font present on your machine (without blindly copying the placeholder). A readable 16- or 20-pixel font can be useful on a large monitor. Different fonts can change the number of text rows and columns, and some characters may look different.

To use Slackware's supported permanent console-font setup, switch to root and run:

su -
setconsolefont
exit

Choose and test a font through its menu. Slackware stores this setup in /etc/rc.d/rc.font. If you merely tested a font with setfont, running setfont with no font name as root restores the usual default font.

5. Theme tmux in green and black

You can use tmux directly from the Linux console. Back up any existing tmux settings first:

[ -f ~/.tmux.conf ] && cp ~/.tmux.conf ~/.tmux.conf.before-green

Now add the following to ~/.tmux.conf using your editor (for example, nano ~/.tmux.conf). If you have an existing configuration, don't erase unrelated settings.

# DarkPC retro green: safe, basic console colours
set -g status on
set -g status-style 'fg=green,bg=black'
set -g status-left '[#S] '
set -g status-right '%H:%M  %d-%b'
set -g window-status-style 'fg=green,bg=black'
set -g window-status-current-style 'fg=brightgreen,bg=black,bold'
set -g pane-border-style 'fg=green'
set -g pane-active-border-style 'fg=brightgreen'
set -g message-style 'fg=green,bg=black'

Start a new tmux session:

tmux new -s darkpc

You should see a green status line and green pane borders. Press Ctrl+B, then % for a side-by-side split; press Ctrl+B, then " for a top-and-bottom split. Press Ctrl+B, then D to detach. To reopen it:

tmux attach -t darkpc

If tmux is already running, reload the new settings from inside tmux:

tmux source-file ~/.tmux.conf

This theme sticks to basic 8/16-colour names: a real Linux virtual console is not a 24-bit RGB terminal, so avoid copying Konsole-specific true-colour settings. If an existing tmux configuration specifies tmux-256color or RGB features, test those separately rather than assuming the Linux console supports them.

6. Make the green console come back when you log in

The setterm --store option alone does not make a colour choice survive a reboot. Back up your existing Bash configuration first (if present):

[ -f ~/.bashrc ] && cp ~/.bashrc ~/.bashrc.before-green

To apply the theme at each interactive local TTY login, add this block to the end of your existing ~/.bashrc:

# DarkPC: green-on-black only on a local Linux TTY
case $- in
  *i*)
    if [ "$TERM" = linux ]; then
      case "$(tty 2>/dev/null)" in
        /dev/tty[0-9]*)
          setterm --foreground green --background black --store
          alias ls='ls --color=never'
          PS1='\[\e[1;32m\][\u@\h \W]\$ \[\e[0m\]'
          ;;
      esac
    fi
    ;;
esac

This block leaves normal Konsole sessions, SSH shells and tmux panes alone. Within a matched local TTY, it also makes your regular ls -la use green default text rather than file-type highlighting. You can remove the alias ls=... line if you prefer coloured filenames.

Important Bash detail: an interactive login shell usually reads ~/.bash_profile (or ~/.bash_login or ~/.profile), not automatically ~/.bashrc. Check your existing login file. If it doesn't already source ~/.bashrc, add this line to the login file Bash actually uses:

[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"

Don't replace a working login file; it may set your PATH or other important variables. Test the settings at your TTY with:

. ~/.bashrc

Then log out and back in. After that, a reboot is the real persistence test. The font setup from setconsolefont and the per-login colour setup are separate changes.

7. Restore the normal appearance

If you're only experimenting, run this at the TTY to restore white on black:

setterm --foreground white --background black --store --clear all

If you enabled the automatic theme in ~/.bashrc, remove that DarkPC block or it will return at your next login. For your current shell, you may also undo the example ls alias and prompt:

unalias ls 2>/dev/null
PS1='\u@\h:\w\$ '

For the font, root can run setfont with no arguments to restore the default. To undo a permanent Slackware font choice, use setconsolefont again and pick your preferred original font, or restore the backed-up /etc/rc.d/rc.font if you made one. Restore your original tmux config from the backup if needed, then start a fresh tmux session.

8. Quick troubleshooting

Symptom What to check
setterm changes nothing Make sure tty reports /dev/ttyN and $TERM is linux. Try it outside Konsole/tmux.
Some files are blue in ls Use ls --color=never -la, or the optional alias above.
Font says “not found” List /usr/share/kbd/consolefonts and use a font that exists.
setfont says “permission denied” Use su - to run it as root at the local console.
Theme disappears after reboot Check whether the actual Bash login file sources ~/.bashrc.
tmux colours don't match Test from a fresh local TTY and use the basic named colour settings above.
The text is too tiny on a large display Test a larger installed font; no need to alter boot modes just for this guide.

9. Give your setup the DarkPC finishing touch

Open two or three tmux panes with uname -a, a file listing, and your favourite console app. A genuine TTY photo with clean green text on black is a neat thing to share because it shows real console customisation, not a desktop screenshot with fake scanlines. The Linux console itself won't produce CRT glow, phosphor trails or curved glass effects—but its simplicity is the point.

You've just themed an actual Linux console. Welcome back to the green-screen age.

Further reading

Written for DarkPC.net · Tested commands should always be reviewed against your own Slackware setup before changing startup files.