Hardware Reference
In-Depth Information
FIGURE 6-2
Minecraft Pi downloading and extraction commands via the
LXTerminal on Raspberry Pi
4.
To run Minecraft Pi, type these lines:
cd mcpi
./minecraft-pi
You may remember using the
cd
command in previous adventures to change
directories or folders from the command line. You use it here to move from
/home/pi
into the directory
/home/pi/mcpi
where the
minecraft-pi
game is located. Run the command
./minecraft-pi
to start the game. You'll
see a screen similar to Figure 6-1.
DIGGING INTO THE CODE
Are you wondering about some of the commands and terms in the code?
Here's a short breakdown of some of the new bits.
•
A
.tar.gz
ile is an archive ile, containing other iles.
tar
is also
an application that allows you to extract the iles from within the
archive.
•
-zxvf
,
used in Step 3, are extra lags to the
tar
command that
change the way it extracts the iles inside the archive. You can get a
list of lags to any command by checking the online manual; for exam-
ple, type
man tar
to see all the options for the
tar
command.
•
The
wget
command is used to get content, such as an archive ile
(
.tar
) from a web server where it is stored. The name
wget
comes from
World Wide Web
plus
get
.