Tag Archives: line

Tutorial: Install games on your Ubuntu Server 14.04 using VirtualBox

ss (2015-01-28 at 04.30.24)I only got two lessons of Linux in class and I got kind of hooked. I wanted to do more with Linux. And because I’m a gamer, I decided to try and install games on Linux. After some trying out and fiddling around I was finally successful in installing a few games on my Ubuntu 14.04 server. So, in this tutorial I’ll also teach you guys how to install the Guest Additions. I installed it to, but I don’t know 100% if it’s actually needed. Anyways, enough stalling, let’s start. 

Needed stuffs

  • A working VirtualBox installation. If you don’t have that yet, get it here.
  • A working Ubuntu 14.04 or later server. If you don’t have that yet, get it here.
  • The GuestAdditions ISO. If you don’t have it, you can download it for version 4.3.20 here.
  • Your Ubuntu install should be able to connect with the internet. I use NAT in the settings and it works. Also your Ubuntu VM needs a cd-rom drive. If you don’t have it yet, the error that pops up then explains it quite clearly how to add one.

How to do this?

Part 1: Guest Additions

Step 1: Update apt-get

After you log in into your Ubuntu server, type in the command:

sudo apt-get update

Then give in your sudo password and wait a while until you can give in commands again. This updates the apt-get program in Linux. This program is used to install, update and get software from the internet. I might be wrong, but that’s what I used it for.

Step 2: Install 2 pieces of software to get Guest Additions running.

After you updated apt-get, let’s use it to now have install two pieces of software that you need in order to run guest additions.

sudo apt-get install dkms

sudo apt-get install build-essential

Together they take around 50-60 MB if I remember correctly. You will have to allow both installations by simply hitting the “y” key. This installation takes a minute or five.

A good suggestion is that after the two installs, you reboot your virtual machine. You can do this in two ways. You could either shutdown the VM and restart it by using:

sudo shutdown -h now

Or just let the VM do the job for you by:

sudo reboot

I didn’t need to enter my password, most likely since it still remembers it from the install of the programs.

Step 3: The CD.

After you downloaded the Guest Additions ISO file (I linked it more above in this post), you go to your VM and under the “Devices” tab, you pick “CD/DVD” and click “Choose a virtual CD/DVD file”. (note: I don’t know if it’s going to say that. My installation is in Dutch, so if it’s not 100% that, but something similar, forgive me.)

Then locate where you downloaded the Guest Additions ISO and click it so you can insert it in your Ubuntu. If there is an error message that VM doesn’t have a CD-ROM drive, read it and fix it. Be careful, in order to change those things you will need to shutdown the VM, otherwise the changes won’t be saved.

If there is any other error, try to allow it. Since I inserted the CD before I installed the two programs in step 2, I was a bit too quick, I got an error. I don’t remember what it said but I accepted it and I got it still working.

I know that the bottom says: “Install Guest Additions”. But when I used that, my installation wouldn’t find the CD after I mounted it. (I’ll explain that in the next step.) So yeah, that’s why I do it this way.

Step 4: Mount the disc.

ss (2015-01-28 at 04.55.22)After you got the disc in, you should go to your root and then to the media folder. I don’t go it the quickest way, but it’s the way I know it works. To experienced users, feel free to leave me a comment how to do it more efficiently.

You can see how I got there in the screenshot here. Ignore the first command to change my directory, I typed it wrong.

Confirm that there is a directory named cdrom. When you don’t have that directory there, make it. With mkdir cdrom of course. If you are having trouble, this tutorial is a great way to help you out.

Then you mount the ISO file you added in the previous step. This you can do by entering this command:

sudo mount /dev/cdrom /media/cdrom

When it’s successful, you should get the message: “mount block device /dev/sr0 is write-protected, read only.”

Step 5: Install the Guest Additions.

Now, get yourself into the directory /media/cdrom. When you list (using the ls command) the file there, it will list various files that start with VB. A few other files too. Those are all in the ISO you just mounted.

Now in order to install the guest additions, you simply do this command:

sudo ./VBLinuxAdditions.run

And you hit enter. Then it installs. For me, it took 2 minutes. The final line will most likely say that it couldn’t find X.org and such. Just ignore that. Since it’s the part of the guest additions when you would have used a GUI interface. Since we are using a command line interface, it isn’t working of course.

Part 2: Installing games

When you are going to install games, you will need to search online for them. While I have no clue (yet) how to install games you downloaded from an external website, I found out that many websites gave a command how to install it.

When you installed a game, you can run it by simply entering the name. You can also see a list of your installed games when you enter the command:

cd usr/games/

ls

The directories with a yellow color behind it, are executable games. Just enter the name in order to run. When you want to uninstall a game, you remove the directory as a superuser. If an experienced user facepalms, feel free to leave a comment how to do it better.

Update 29/01: I found out how to uninstall games. It’s with this command:

sudo apt-get remove <gamename>

Then your game will be removed.

I also found out that when you list, not every executable game is highlighted in yellow. So, that trick doesn’t work.

Anyways, that concludes my tutorial, thanks for reading and if you have issues, feel free to leave a comment. Even while I don’t know a lot about Linux server yet, I’ll do my best in order to help you out. It will be a nice learning experience for me. In any case, enjoy!

A few examples of games

Advertisements

Simple Android games you should try out.

AndroidWallpaper

I’m a big fan of the Android Market. I often find myself playing games I find on there. While waiting for the bus the other day, I played a few games on my tablet. The following games are games I won’t have enough to write about for a full review but games you should check out. But before we do that, I have a few questions where you guys can have some input on. First of all, it’s most likely possible that I’ll find more then the games I’m going to mention here. So this will maybe turn into a series. Which name should I give it? Does NekoJonez plays Android sound okay? Anyways, I’m also going to link these apps here so you can easily download them when you are reading my blog from your tablet or mobile phone. In addition to that, give me some feedback on the format I write for each game. If you want to know more about the game or things like that. Oh, my goal is that all games are 100% free too. Some might have in-game things you can buy or ads. Welp, lengthy intro is lengthy. Let’s dive in. 

2 Player Reactor

(This app contains adds)

2_player_reactor_for_android-474583-1318928025I’ll start the list of this article like the extremely bad NES game Action52 did, with the game that requires two players to enjoy.

In this simple game you have to be quick and precise. Your challenge will be always above your square, as well as your score.

You have to do simple tasks. Like guess the capital or check if the squares match each other.

When you tap on the correct moment, you’ll earn a point. When you tap on the wrong moment, you’ll loose a point. Self-explanatory. But there will be fun reactions, some you won’t expect.

You can go in minus, like you see in this screenshot.

This game has been translated in various languages, so you can enjoy this game in your native language. I played this game with my sister often in Dutch, since we Dutch people our brains don’t work in English THAT fast.

With various options and settings, you can leave modes out. Who has the most points at the end wins. There is also a “pro” version that supports 4 players.

I have one minor complaint with this game, and that’s on smaller screens, the text isn’t broken up to fit the screen.

Score: 4 / 5

Line Puzzle

unnamedAs simple as this game looks, as simple as you’ll get it. Made by DevSquare, this game has some amusing music.

In this game, your goal is that you have dots connect to other dots. The numbers represent how many dots you can use from that given square.

There are many puzzles, and some can get very big.

There is a “daily puzzle” which reminds me from the Professor Layton downloadable puzzles.

With the points you earn, you can buy hints, helpful for when you are stuck.

Some bad points are:

– The bad English translation. The option menu is a great example.

– They use the technical terms for music (BGM) and sound (SFX).

Score: 4 / 5

Card Game

unnamed (1)

(This game contains Japanese)

To finish off this article, I would like to talk about another free game released by the guys of Beasty Bay.

In this game, your goal is to put the same number on your main card OR one of the same kind.

You have 3 “jokers”. The mascotte is a wild card, the monkey’ll change ALL cards that you can’t use and the lady’ll show you the card up next.

You can bet, with virtual coins. The more you bet, the more you can win. You need to have a chain of at least 17 cards to play a mini-game and earn your coins back.

You can choose to skip the mini-game and get your coins back or play the mini-game and win the double amount, or more, of coins back.

You can’t go broke in this game because when all your coins are up, you restart with a fresh 50 coins.

Each match is random.

This game might be in a Japanese interface, but it’s easy to find your way. After playing it for a little while, you can get easily the hang of it and enjoy playing.

The music is adorable too, like the graphics.

Score: 4,5 / 5 (A 5 if it was English)

Closure

So, that are 3 games that are free that I recommend. I will scout the market and come next article with more games. Also leave great recommendations here in the comments.

I hope you enjoy yourselves with these games and that you find some new studio’s or developers you can follow on the Android market. Have fun and I see you next blog entry.