How to Play Solitaire in Your Linux Terminal With solitaire-tui
Gaming has been an essential part of the PC experience since the days of IBM mainframes. But a focus on the latest graphics and AAA titles has left the classics neglected.
Sign up forfree
Forgot your password?
Create an account
*Required: 8 chars, 1 capital letter, 1 number
By continuing, you agree to thePrivacy PolicyandTerms of Use.You also agree to receive our newsletters, you’re able to opt-out any time.

A Brief History of Card Games on Computers
Solitaire is a card game you play on your own, and involves physically moving cards from one pile to another. Aside from the mental agility and memory needed to play Solitaire, it also requires some degree of hand-eye coordination.
Microsoft Windows 3.0 was arguably the first desktop operating system released with the general public in mind. It came with Klondike Solitaire pre-installed to get users used to the analogy of a desktop, and familiarize them with basic mouse functions such as clicking and drag and drop.

To make things easier, a free Solitaire card game was included in every Windows release between 1990 and 2012.
When Linux appeared on the scene in 1996, some early distros included Solitaire as a way of making users feel at home, and as a means to pass the time while installing software.

Today, there are hundreds of free Solitaire games for Linux.
Why Would You Want to Play Solitaire in Your Terminal
Not everyone is a fan of graphical user interfaces (GUIs), and not everyone wants to play the latest graphics-intensivefirst-person shooters. Maybe you’reconnecting to a remote machine using SSHand need to kill a few minutes while you’re on your lunch break.
The most convincing and honest reason to play Solitaire in your terminal is: because you can.

Install solitaire-tui on Linux
solitaire-tui is written using Google’s Go language, and you need tohave Go installed on your systembefore you start.
An easy way to install Go is from the Snap Store. So if your system supports snap packages, you can use this command to install Go:

Make sure toinstall Snap on your systemif you don’t have it set up already.
Now use Go to install the latest version of solitaire-tui:
The package will install to the/go/bin/subdirectory within your home directory. To allow easy access so any user can start it from any terminal location, create a symbolic link:
You can now launch solitaire-tui by typing:
Playing Solitaire in the Linux Terminal
Playing Solitaire in your terminal with solitaire-tui is a blast from the past. While the app looks great, given the obvious terminal limitations, it’s missing some of the bells and whistles we’ve grown used to with Solitaire.
There’s no autoplay feature, for example, so you have to finish the game manually under all circumstances. There’s also no drag-and-drop function. Click on a card with your mouse to highlight it, then click where you want it to go. It will be instantly transported.
If you’re looking forward to a snazzy trumpet fanfare, and animation to signal your victory, you’ll be disappointed, too. There’s no acknowledgment that you’ve won, and there’s no fanfare either.
But that’s OK. There’s no fanfare in the real-life version either.
solitaire-tui does exactly what it’s supposed to do, and is an excellent way of killing five minutes without leaving your terminal.
There Are Other Ways to Entertain Yourself in the Terminal
Playing card games is a great way to spend a lunch break or some downtime. But while you may be improving your Solitaire skills, you’re not improving your mind. Get ahead in your studies by speed-reading textbooks and great works of literature.
Consume more textual content in less amount of time by installing speedread on your Linux machine.
Your phone is a better editor than you give it credit for.
Sometimes the smallest cleaning habit makes the biggest mess.
One casual AI chat exposed how vulnerable I was.
It’s not super flashy, but it can help to keep your computer up and running.
When your rival has to bail out your assistant.