1

I'm writing a terminal-based utility that will be used over ssh. I'd like to plant an easter egg that will open a game to play if they send it certain options. I need the game to be available by default on Ubuntu 18.04 or later, without installation, and in the terminal so it works over ssh. Which terminal games, if any, come pre-installed?

Note: an alternative to using a pre-installed game would be to have my program call sudo apt update && sudo apt install some_game. The problem with this, however, is two-fold:

  1. The user of my program will have to enter their sudo password, which might seem odd or make them leery.
  2. Security: I'd prefer not to have to install programs that aren't required on the system. Let's say it's a server, for instance. I'm not sure how secure all programs are which can be installed with sudo apt install.
6
  • 1
    I don't know of any that are preinstalled. But why not bundle this game into your app? Like, (assuming the license allows it), why not include said game with your app, and then have your app run it? Why does it need to be preinstalled?
    – cocomac
    Feb 17, 2022 at 5:28
  • @cocomac, I suppose it doesn't need to be preinstalled. I just figured it would be easier for it to be that way. I can just have my program run sudo apt update && sudo apt install <game> the first time they run it. Feb 17, 2022 at 5:29
  • I doubt any games are found in main as there are costs involved with having packages there, some of which don't exist in 'universe' (where most games are found). Packages included in 'universe' are only found on Ubuntu flavors by default (ie. on 18.04 'main' packages come with 5 years of guaranteed support; for 'universe' it was 9 months for some, 3 years for most, but capable of being 5 too if community wish to update packages). This is what can be found on 18.04.6 desktop - releases.ubuntu.com/18.04/ubuntu-18.04.6-desktop-amd64.manifest
    – guiverc
    Feb 17, 2022 at 5:36
  • but note when looking at the manifest; some install options may mean not all packages available on the ISO are actually installed
    – guiverc
    Feb 17, 2022 at 5:39
  • 1
    @GabrielStaples You have to install the games manually. There are no games that are preinstalled.
    – Logan
    Feb 17, 2022 at 17:14

1 Answer 1

2

There aren't any command line games installed in Ubuntu by default.

So the best option would be (as Cocomac suggested), to include your own CLI game in your application - this could very well be something rather simple written in Bash or Python.

For instance, here is an example of a game written in Bash: Housenka

Another example: Tutorial to create Minesweeper

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .