Sunday, November 29, 2015

Android emulator Genymotion for Ubuntu

Genymotion is a fast third-party emulator that can be used instead of the default Android emulator.
It runs as a virtual machine on your computer, so you get much better
performance, and it's much more like using
a real device instead of the Android Emulator.
First  Virtualbox needs to be installed . Registration is also required in order to download and install Genymotion :

Once the download is complete change the directory to where the bin file is located and run the following commands (in this case Downloads folder) :
cd Downloads
chmod +x genymotion-2.5.2_x64.bin

Change directory to where Genymotion was installed. 

cd genymotion

Once Genymotion starts we can click Add and select Yes to add a virtual device:

Select desired device and click Next

Enter a name for your device and click Next

Wait until your virtual device is downloaded and deployed

Click Finish and Play to start the emulator

Sunday, November 1, 2015

OS virtualization with Virtualbox on Ubuntu

VirtualBox is a cross-platform virtualization application. It can be installed on your existing Intel or AMD-based computers, whether they are running Windows, Mac, Linux or Solaris operating systems.

To install VirtualBox on Ubuntu download the .deb file and Extension Pack from here
The file can be installed with gdebi by right clicking it > Open with > Gdebi Package Installer > Install .

After the installation is complete VirtualBox can be launched from Dash :

To install the Extension Pack go to File > Preferences > Extensions > Add new package 

To create a new Virtual Machine simply click New 

Allocate the desired memory size 

Create a virtual hard disk 

Select the type of hard disk you would like to use 

Opt between creating a dynamically allocated or a fixed size hard disk 

To configure the created virtual machine , select it and click Settings  

When a VM gets started for the first time the "First Start Wizard" will pop up to help you select an installation medium

Since the VM is created empty, it would otherwise behave just like a real computer with no operating system installed: it will do nothing and display an error message that no bootable operating system was found.
For this reason, the wizard helps you select a medium to install an operating system from.
  • If you have physical CD or DVD media from which you want to install your guest operating system put the media into your host's CD or DVD drive.
    Then, in the wizard's drop-down list of installation media, select "Host drive" with the correct drive letter (or, in the case of a Linux host, device file). This will allow your VM to access the media in your host drive, and you can proceed to install from there.
  • If you have downloaded installation media from the Internet in the form of an ISO image file (most probably in the case of a Linux distribution), you would normally burn this file to an empty CD or DVD and proceed as just described. With VirtualBox however, you can skip this step and mount the ISO file directly. VirtualBox will then present this file as a CD or DVD-ROM drive to the virtual machine, much like it does with virtual hard disk images.
    For this case, the wizard's drop-down list contains a list of installation media that were previously used with VirtualBox.
    If your medium is not in the list (especially if you are using VirtualBox for the first time), select the small folder icon next to the drop-down list to bring up a standard file dialog, with which you can pick the image file on your host disks.
In both cases, after making the choices in the wizard, you will be able to install your operating system.  The latest version of VirtualBox is 5.14 and comes with support for kernel 4.4. 

Remote access with Teamviewer

TeamViewer is a proprietary computer software package for remote control, desktop sharing, online meetings, web conferencing and file transfer between computers.
It can also run on Mac and Linux operating systems, plus Android, BlackBerry, Windows Phone, and iOS mobile devices.
TeamViewer is an exceptionally secure solution for remote maintenance. Connections utilize secure data channels featuring 2048-bit RSA key exchange and 256-bit AES session encryption. Chats and video calls are end-to-end encrypted.
File , Documents , Images can be transferred to and from two computers using either the file transfer tool in TeamViewer or the clipboard function.
Files can also be transferred through TeamViewer directly from online storage services like Google Drive, OneDrive, and DropBox.

If you are running Ubuntu or an Ubuntu based Distro with kernel 3.16 TeamViewer will not work properly . To upgrade to kernel 3.19 open a terminal and type in the following command (ctrl+alt+t):

sudo apt-get install linux-generic-vivid

If the above command does not work or you wish to upgrade to a different kernel click here .

For Ubuntu the .deb file can be found here .

Before proceeding with the installation gdebi must be installed . 
Open a terminal (ctrl+alt+t) and type in the following command :

sudo apt-get install gdebi 

After the download is complete navigate to the folder where the .deb file is located ,

right click it > Open with > Gdebi Package Installer > Install 

Once the installation is complete , reboot your pc . 

Extras>Options to start TeamViewer on boot. 

To setup unattended access click Connection on the main window then click on setup unattended access  

 Create and confirm a password :

This step is optional , the setup process can be completed without creating a TeamViewer account.