Showing posts from May, 2016

How to upgrade Gradle for Android Studio

If you upgrade your Android Studio, probably you must upgrade your Gradle if you see this error:

Error:Gradle version 2.10 is required. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in ~/AndroidStudioProjects/Android-StickerView/gradle/wrapper/ to
Fix Gradle wrapper and re-import project

To fix it, you can download the last version from
In my case, I downloaded version 2.13
Once you download your zip, you need to decompress it, and later go to file ->settings ->gradle
and choose Use local gradle distribution. In Gradle home choose the folder that you generated when .zip decompressed, like follows:

Run Android Studio 2.2 Preview 1 in Ubuntu

If you want to run the last version of Android Studio, you need download it from:

cd android-studio/bin/

The following error will appear:

./ 137: ./ declare: not found
./ 141: ./ Syntax error: "(" unexpected (expecting "fi")

To fix it, you need replace the first line of by #!/bin/bash

Now you can create and icon in your Desktop to execute this application. Create a file calls Studio.desktop in your desktop and put the following lines:
[Desktop Entry] Type=Application Icon=/home/user/android-studio/bin/studio.png Name=AndroidStudio Comment="Start AndroidStudio" Exec=/home/user/android-studio/bin/ Terminal=false Categories=Controller; GenericName[en_US]= Name[en_US]=AndroidStudio
Enjoy it!

Install ASDM 6.4(9) for an ASA 5520 in GNS3

In my last post, I use a TAP interface to connect a VBox network to my pc. Now, I going to show you how to install Cisco Adaptive Security Device Manager (ASDM) in an ASA firewall.
First, you can download ASA iOS from

Extract the files and add a new Qemu image in GNS3. Configure as follows:

Connect ASA to a cloud with TAP interface to be in the same network.
Maybe you can get this error at the moment to play your project:

Execution log:
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/
Note: only modules from the same build can be loaded.
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/
Note: only modules from the same build can be loaded.
qemu-system-x86_64: -netdev tap,id=gns3-0,ifname=tap0,script=no,downscript=no: could not configure /dev/net/tun (tap0): Operation not permitted
qemu-system-x86_64: -netdev tap,id=gns3-0,ifname=tap0,script=no,downscript=no: Device 'tap' could…

Configure a Vbox network for GNS3 with Internet through a cloud with a TAP interface

Today we going to configure a virtual network within GNS3. We can download older GNS3 versiones from sourceforge or the most recent from
We need to add the repositories to apt and after install gns3:

sudo add-apt-repository ppa:gns3/ppa
sudo apt-get update
sudo apt-get install gns3-gui

To have a connection to access Internet through our physical interface, we create a TAP interface (virtual bridge):

sudo apt-get install uml-utilities
modprobe tun
ifconfig tap0 netmask up

On the last line, you configure the ip, that will be the gateway for your virtual topology.
Now, as we need forward the packets, between the virtual network and your physical router, you must enable the forwarding option:

sudo iptables -I INPUT -j ACCEPT -i tap0
sudo iptables -I OUTPUT -j ACCEPT -o tap0
sudo sysctl -w net.ipv4.ip_forward=1

Now, you need an appliance or a any host image to create our virtual network. You can use a minimal Ubuntu version  downloadable from:

wget http://archi…