Sunday, December 21, 2014

Clash of Clans on Debian

Clash of Clans

From wikipedia :

Clash of Clans is a 2012 freemium mobile MMO strategy video game developed and published by Supercell, a video game company based in Helsinki, Finland.[3]
The game was released for iOS platforms on August 2, 2012.[1] For Android, it soft-launched in Canada and Finland on September 30, 2013.[4] On October 7, 2013, it was released on Google Play internationally.[2]

From Supercell.com :

An epic strategy game. Answer the call of the mustache! Join the international fray that is Clash of Clans. Customize your village, build an army and crush your opponents. Like using friendship to strike fear into your enemies? Join a Clan, or establish a Clashing legacy by creating your own. The choice is yours in this millions strong community of Barbarians. Download for free and Clash on, Chief!

How to play Clash of Clans on Debian?

Simple. Use Genymotion Emulator and deploy Android Virtual Machines.

Now download Arm Translation to solve the incompatibility issue from google market/android play store.

Arm Translation v1.1

Drag and drop the file into the virtual machine
 Installation on progress
The Arm Translation installation is finish. Restart the virtual machine.




Download Google Apps For Android 4.3

Google Apps for Android 4.3.

If you using another version of Android other than what has been described on this post, find Google Apps that compatible with your android version on https://goo.im/gapps/.

Drag and drop the file into the virtual machine.

Installation on progress.

 Installation is finished
It may throw some error pop up. Just restart the virtual machine.
The Play Store icon will appear after flashing the Google Apps Application.
Before we can access the Play Store, we must register and / or use an existing Google Account.
Input your email and password.
Signing in process.
Click the arrow at the bottom right of the screen.

And accept the license agreement.

Play store will be accessible, just search "clash of clans" on the search box at the top of the screen.
 Click install
And here we go. Clash of Clans on debian. :)


Saturday, December 20, 2014

Emulate Android on Debian

There are several ways to emulate android on debian.
In this post we will try to emulate Samsung Galaxy Note 3 on debian using Genymotion.

The first step is to install virtual box and of course Genymotion emulator.

The steps to install programs above is described here.

Run genymotion for the first time will offer you to deploy first virtual machine.
Click yes to add a new virtual machine.

Authentication is needed to download a virtual machine.

Input your user name and password.

Lists of virtual devices will be shown at available virtual devices window.

Select the desire available type of virtual devices.

In this post, i selected Samsung Galaxy Note 3 4.3-API 18.

The default virtual devices names will be shown on the next window. You may rename it or leave it as default.
Genymotion will retrieve the virtual devices from the net.

While it start downloading, a series of slide show will be shown.









 The download is finish.
 Click start to run the virtual devices

And here it is. Samsung Galaxy Note 3 on Genymotion.

Friday, December 19, 2014

Genymotion on Debian Jessie

Genymotion is the next generation of the AndroVM opensource project. it's even easier to use and offers lots more features (www.genymotion.com)

The goal of this post is to install Genymotion into Debian Jessie 64 bit to emulate android.

Genymotion needs virtualbox to be installed first on the computer.

#apt-get install virtualbox

Download the Genymotion file here.
Registration is needed to download the file.

Sign in to download the file.
Save the file into your harddisk.

Browse the directory where the file is saved.

For example I keep it at /home/username/bin.
 
Change the permission of the file

$chmod u=rwx genymotion-2.3.1_x64_debian.bin

Execute the file :

$ ~/bin/genymotion-2.3.1_x64_debian.bin



















When i try to launch genymotion after the installation, genymotion won't start. Instead it will result some error.

~/bin/genymotion$ ./genymotion
















The genymotion.log shows what went wrong.

$ nano ~/bin/.Genymotion/genymotion.log

Genymotion shows the error is about "cannot mix incompatible Qt library".













Now we are going to remove all the Qt library from genymotion directory to force it to use system Qt library.

$ mkdir libQt-old
$ mv *Qt* libQt-old/

Depending on your system, you might or might not meet the dependency library to run Genymotion.

When Genymotion throws another error, try to satisfy the request written from the output of the shell.

for example :


libqtwebkit.so.4 not found.

solution :
install libqtwebkit.

#apt-get install libqtwebkit4.







As for my system (cinnamon desktop), i have to install  the following:

1. libqtwebkit4
2. libqt4-script
3. libqt4-svg
4. libqt4-sql

#apt-get install libqtwebkit4 libqt4-script libqt4-svg libqt4-sql

And here it is. genymotion






















---------------------------------------------------------------------
For the curious:


Qt is a cross-platform C++ application framework. Qt's primary feature is its rich set of widgets that provide standard GUI functionality.

libqtwebkit4
Web content engine library for Qt

QtWebKit provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application.

libqt4-script
Qt 4 script module

The QtScript module provides classes for making Qt applications scriptable.

libqt4-svg
Qt 4 SVG module

The QtSvg module provides classes for displaying the contents of SVG files.

Scalable Vector Graphics (SVG) is a language for describing two-dimensional graphics and graphical applications in XML.

libqt4-sql
Qt 4 SQL module

The QtSql module helps you provide seamless database integration to your Qt applications.

If you wish to use the SQL module for development, you should install the libqt4-dev package.

The Error Message :