• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install and play Games from Terminal - Part 2

552

To Install and play Games from Terminal

In this article we will discuss how to install some of the games from linux terminal and how to play the games in the terminal.


To play nudoku game

nudoku is similar to Sudoku game.

root@linuxhelp1:~# wget https://github.com/jubalh/nudoku/releases/download/0.2.4/nudoku-0.2.4.tar.xz
--2016-07-14 23:06:23--  https://github.com/jubalh/nudoku/releases/download/0.2.4/nudoku-0.2.4.tar.xz
Resolving github.com (github.com)... 192.30.253.113
Connecting to github.com
(github.com)|192.30.253.113|:443... connected.
.
.
.
nudoku-0.2.4.tar.xz 100%[===================> ]  65.97K  33.1KB/s    in 2.0s    
2016-07-14 23:06:27 (33.1 KB/s) - ‘ nudoku-0.2.4.tar.xz’  saved [67556/67556]

To extract the tar file.

root@linuxhelp1:~# ls
Desktop    Downloads         Music                Pictures  Templates
Documents  examples.desktop  nudoku-0.2.4.tar.xz  Public    Videos
root@linuxhelp1:~# tar -xjf nudoku-0.2.4.tar.xz
root@linuxhelp1:~# ls
Desktop    examples.desktop  nudoku-0.2.4.tar.xz  Templates
Documents  Music             Pictures             Videos
Downloads  nudoku-0.2.4      Public
root@linuxhelp1:~# cd nudoku-0.2.4/

Before installing the game, install the dependencies.

root@linuxhelp1:~/nudoku-0.2.4# apt-get install libncurses5-dev groff
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libtinfo-dev psutils
Suggested packages:
  ncurses-doc
The following NEW packages will be installed:
  groff libncurses5-dev libtinfo-dev psutils
.
.
.
Setting up libncurses5-dev:amd64 (6.0+20160213-1ubuntu1) ...

Install the game by using the following commands.

root@linuxhelp1:~/nudoku-0.2.4# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
.
.
.
config.status: creating src/Makefile
config.status: executing depfiles commands
root@linuxhelp1:~/nudoku-0.2.4# make
Making all in src
make[1]: Entering directory ' /home/user1/nudoku-0.2.4/src' 
gcc -DPACKAGE_NAME=" nudoku"  -DPACKAGE_TARNAME=" nudoku"  -DPACKAGE_VERSION=" 0.2.4"  -DPACKAGE_STRING=" nudoku 0.2.4"  -DPACKAGE_BUGREPORT=" jubalh@openmailbox.org"  -DPACKAGE_URL=" "  -DPACKAGE=" nudoku"  -DVERSION=" 0.2.4"  -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 &ndash D
.
.
.
mv -f .deps/sudoku.Tpo .deps/sudoku.Po
gcc  -g -O2   -o nudoku main.o sudoku.o -lncurses
make[1]: Leaving directory ' /home/user1/nudoku-0.2.4/src' 
make[1]: Entering directory ' /home/user1/nudoku-0.2.4' 
make[1]: Nothing to be done for ' all-am' .
make[1]: Leaving directory ' /home/user1/nudoku-0.2.4' 

To Run the game execute the below command.

root@linuxhelp1:~/nudoku-0.2.4# ./src/nudoku

Install-and-play-Games-from-linux-Terminal-nudoku


To install 2048

Run the following command to install 2048 game.

root@linuxhelp1:~# wget https://raw.githubusercontent.com/mevdschee/2048.c/master/2048.c
--2016-07-14 23:39:19--  https://raw.githubusercontent.com/mevdschee/2048.c/master/2048.c
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.100.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.100.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9255 (9.0K) [text/plain]
Saving to: ‘ 2048.c’ 

2048.c              100%[===================> ]   9.04K  --.-KB/s    in 0s      

2016-07-14 23:39:20 (40.1 MB/s) - ‘ 2048.c’  saved [9255/9255]

To install the game run the following command.

root@linuxhelp1:~# gcc -o 2048 2048.c

Utilise the following command to play the game in the terminal.

root@linuxhelp1:~# ./2048

Install-and-play-Games-from-linux-Terminal-2048

To play ninvaders game

Ninvaders is a clone of space invaders game. Now install the package for that game.

root@linuxhelp1:~# apt-get install ninvaders -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  ninvaders
0 upgraded, 1 newly installed, 0 to remove and 154 not upgraded.
Need to get 0 B/15.7 kB of archives.
After this operation, 49.2 kB of additional disk space will be used.
Selecting previously unselected package ninvaders.
(Reading database ... 207162 files and directories currently installed.)
Preparing to unpack .../ninvaders_0.1.1-3build1_amd64.deb ...
Unpacking ninvaders (0.1.1-3build1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up ninvaders (0.1.1-3build1) ...

To run the game.

root@linuxhelp1:~# cd /usr/games/
root@linuxhelp1:/usr/games# ./ninvaders

Install-and-play-Games-from-linux-Terminal-ninvaders

To play nethack game

Use the following command to install nethack.

root@linuxhelp1:~# apt-get install nethack-console -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  nethack-common
The following NEW packages will be installed:
  nethack-common nethack-console
0 upgraded, 2 newly installed, 0 to remove and 154 not upgraded.
Need to get 1,230 kB of archives.
After this operation, 3,343 kB of additional disk space will be used.
.
.
.
Setting up nethack-console (3.4.3-15build1) ...
update-alternatives: using /usr/lib/games/nethack/nethack-console.sh to provide /usr/games/nethack (nethack) in auto mode
Processing triggers for systemd (229-4ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...

To play the game.

root@linuxhelp1:~# cd /usr/games/
root@linuxhelp1:/usr/games# ./nethack

Install-and-play-Games-from-linux-Terminal-nethack

Tags:
jayce
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

Alternative for sudoko ?

A

Griddition, hodoko and much more.

Q

While running make ? It throws certain error

A

whereas "./src/nudoku" is used for launching

Q

Here most of the games been launched via command line?

A

since these are not that graphics game so launcher will also come under command line

Q

What sort of games does this emulator play?

A

Sorry, this is a terminal emulator, not a game emulator. It has nothing to do with games.

Q

Where can I get Busybox for my Android Phone?

A

Do a web search for "Android Busybox" and read through the results.

Load more

Related Tutorials in How to Install and play Games from Terminal - Part 2

Related Tutorials in How to Install and play Games from Terminal - Part 2

How to Access google from Linux Terminal
How to Access google from Linux Terminal
Jul 16, 2016
How to install Qterminal in Ubuntu
How to install Qterminal in Ubuntu
Sep 23, 2016
How To Create A Shortcut To Open The Terminal On CentOS 7.6
How To Create A Shortcut To Open The Terminal On CentOS 7.6
Oct 19, 2019
How to install the Hyper Linux Terminal on Ubuntu 16.04
How to install the Hyper Linux Terminal on Ubuntu 16.04
Jul 25, 2017
How to Enable Desktop icons and creating a shortcut to open a terminal on Opensuse15.1
How to Enable Desktop icons and creating a shortcut to open a terminal on Opensuse15.1
Oct 31, 2019
How to install Tilix 1.7.3 on Ubuntu 16.04
How to install Tilix 1.7.3 on Ubuntu 16.04
Mar 8, 2018
How to Install and play Games from Terminal - Part 1
How to Install and play Games from Terminal - Part 1
Jul 15, 2016
How to Install and play Games from Terminal - Part 3
How to Install and play Games from Terminal - Part 3
Jul 15, 2016

Related Forums in How to Install and play Games from Terminal - Part 2

Related Forums in How to Install and play Games from Terminal - Part 2

Terminal Emulator
noah class=
How to show terminal output to browser in linux
Apr 27, 2017
terminal
julian class=
How to change default terminal application in Gnome-Shell
Jan 11, 2019
Browser
ceriaimmaculate class=
How to access linux terminal through web browser
Nov 2, 2017
CentOS
Aditya class=
Shortcut to open the terminal On centOS 7.6
Oct 14, 2019
Linux
beulah class=
Terminal recording tools for linux
Oct 21, 2017
Game
jagannatharumugam class=
what are the games available in linux
Feb 18, 2017
Linux
dylan class=
Any play station available in linux
Mar 13, 2017
Ubuntu
malva99 class=
Help with Linux terminal on Windows
Aug 30, 2019

Related News in How to Install and play Games from Terminal - Part 2

Related News in How to Install and play Games from Terminal - Part 2

Linux Version of Civ 6 is coming
Linux Version of Civ 6 is coming
Jan 10, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.