Gaming on your Raspberry Pi

Today I am going to show you how to install a new game and at the same time learn how to install other programs on your Raspberry Pi. There are a plethora of educational, graphics, Internet and even games out there that you can easily install once you learn what I am going to show you today. The best part about it is that they are free!

Frozen Bubble
Frozen Bubble Single and Multiplayer Internet game

How To Install Games And Other Software On The Raspberry Pi

You can discover new software to install using the command line, but there’s also a friendly menu system you can use in the desktop environment. On the Applications menu, hover over the Preferences option and click Add/Remove Software to get started. You need to have an active Internet connection.

The menu looks like this:

There are 3 Frozen Bubble Packages
There are 3 Frozen Bubble Packages

In the top left is a search box, where you can enter the name of a program you’re looking for, or a phrase such as “Frozen” to explore what’s available. On the left are categories you can click to see your options.

NOTE: If this does not show up for you then you may need to update your Raspberry Pi with the latest information. You can open a terminal and use this command:

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade

The main pane shows you the packages, with a scrollbar on the right that you can use to see the full list. Those that are already checked (or ticked) and shown in bold are already installed on your Raspberry Pi. You can click a package to see its description below. To select a package for installation, tick the box beside it. To remove it, untick it. In this example you will see a checkbox for the Frozen Bubble Game.

When you’ve finished choosing your software, click the OK button to install and remove the applications. You will be prompted to enter your password (which is raspberry, unless you’ve changed it). It can take some time to download and install the software, so it’s a good idea to choose a few applications and leave them to install in one batch while you do something else.

The menu ensures that any applications that your chosen application requires also get installed. When you install the game Frozen Bubble, for example, the menu automatically installed its separate data package for you.

Your software is now installed! You should be able to run it either from the shell by entering its name (for example, Frozen-Bubble), or through your Applications menu in the desktop environment.

The menu makes it easy to install software, but you might find that not all the software works well on the Raspberry Pi. It’s easy enough to try something, though, and remove it if it doesn’t do what you need. It’s all free.

In the case of Frozen-Bubble it will run in a smaller window when you first launch it from the desktop. There is no option in the GUI to change this. You can make it full screen by launching it from the shell (terminal window) by typing:

frozen-bubble ––fullscreen start in fullscreen mode
frozen-bubble ––no-fullscreen
don’t start in fullscreen mode
frozen-bubble ––help
gives you a list of all of the commands 

Multiplayer support is built in

Final thoughts:

“Frozen Bubble” is a simple but highly addictive game involving knocking down clusters of frozen bubbles. The bubbles come in several colors, and strategy involves getting as many bubbles down as possible with each shot.
There is no violence, horror or innuendo anywhere, and you can make new levels with a simple text editor (like vi or Notepad).

Logo for ‘Frozen Bubble’ The game is Open Source (GPL) and is written entirely in PERL, so you can inspect it, learn from it and change it if you wish.

Have fun playing this one folks as it is good for the whole family! -=Enjoy=-

Asciinema – record your Terminal sessions

I have been working at learning a new program called Asciinema which will allow you to record Terminal sessions and share them on the Internet. For someone like me that wants to share everything that I learn with you this is an extremely valuable tool. I am excited to introduce you to this awesome program.

Asciinema
Asciinema

Asciinema is a fast, light-weight and open source Terminal recording tool. Asciinema not just records your Terminal activities, but also helps you to share them on the web if necessary. You can share the recordings by copying its URL and sending it to a friend or posting it on a social network. It is easy to use and in just about 10 minutes you will be a pro at using it.

Asciinema tool could be useful in the following situations:

  • The online trainers can record and share the Terminal session when teaching Linux commands to the students.
  • The students can share their Terminal activities to their online tutors when they have been given a command-line assignment.
  • The junior admins can record and share their Terminal activities to the remote technical support or subject matter experts when looking for help.
  • Technical writers or bloggers can record the terminal activities and use them while writing a book or blog post.

The possibilities are endless. Whatever it is, when it comes it to record a terminal session, Asciinema comes in handy! In this guide, we’ll be discussing how to install Asciinema in Mint and Raspbian and how to record your Terminal sessions using it. Also, we will see how to share the recorded terminal sessions on the web.

Install Asciinema

The good thing is the developers have packaged asciinema for almost all Linux distributions, and it’s available in the official repositories of many Linux distros. I have installed this on both Mint and Raspbian with excellent results.

sudo apt-get install asciinema

To install asciinema on Unix and other operating systems, refer the asciinema installation page: https://asciinema.org/docs/installation

Record Terminal Sessions using Asciinema

The usage is trivial. When you run “asciinema” without any argument, it will display the help section. Now, let us record a terminal session. To do so, run:

asciinema rec

Once you run the above command, you will see the following output.

~ Asciicast recording started.
~ Hit Ctrl-D or type “exit” to finish.

Now, your Terminal activities is being recorded and saved in the file called “test” in the current working directory.

Let us type some random commands.

df -h

ls -l

lscpu

pwd

uname -a

#In Raspbian on your Raspberry Pi type:

vcgencmd measure_temp

That’s enough. To finish the recording, press “CTRL+D” or type “exit”.

When the recording is ended, you will see the following message.

~ Asciicast recording finished.

You can copy and paste directly out of this window.

The direct link to this asciicast is:

https://asciinema.org/a/174219

 

Uploading the record session to asciinema.org site

Since we didn’t specify filename for the recording, you will asked to upload the resulting recording to asciinema.org website, so you can share it to your friends or social media or add it to your own blog/website.

Just share it to your colleague or friend or whoever wants to view your Terminal session in their web browser. Or, you can view it on your own browser itself.

Once your friend entered the above URL in their browser’s address bar, they can be able to see your recording.

To learn more you can check out the https://asciinema.org/ website. It is a small community right now but I believe that if enough people that use the Raspberry Pi’s with the Raspbian system that this will become a vibrant community.

I will be using Asciinema as I believe this to be a great teaching tool. Share this with your friends so we can all benefit from this unique way of sharing.

%d bloggers like this: