Sunday, October 13, 2013

Install GenyMotion in Linux/ubuntu 13.04

Genymotion, is the next generation of the AndroVM open source project, it is  a fast, cross-platform Android emulator that comes with pre-configured Android in it. It’s so easy use and has lots more functionalities that normal android emulator doesn't.

How to install Genymotion in linux:

  1.  Sign up for the genymotion account.
  2. After logging in download genymotion for linux from this link.
  3. Download and install virtualbox for linux from the this link.
Now nevigate the genymotion from the terminal.
Then enter the following commands in the terminal

  1. chmod +x genymotion-1.1.0_x64.bin
  2. ./genymotion-1.1.0_x64.bin
It will ask for the installation like below screen shot.


After the process Genymotion it is ready to be used. to open it write below command
  1. ./genymotion

Using GenyMotion:

Now login with your Genymotion username and password. Click add from the Genymotion home screen. and Select a virtual device from the Genymotion cloud and click Add.


Now you can see the screen like below, click next to begin the download of virtual device.


The successful installation will display you the below screen.


Then you will be asked to enter a name for the downloaded Genymotion virtual device. Enter a name and select create and the click finish.

It will list the created virtual device in “Your virtual devices” in the home screen Then select play to start your virtual device.For the first time it asks to configure sdk path for using ADB , select the sdk path and you will be booted to Android home screen like.


Here are plugins
Eclipse : http://plugins.genymotion.com/eclipse
Android studio : http://plugins.genymotion.com/plugins/idea/1.0.1/genymotion-idea-plugin-20130716.jar



Happy Droiding with Linux!

Wednesday, September 18, 2013

A beginner's Guide to GIT command in Linux


GIT is a version control system, which maintains the versions of your code,(if you are a developer!) This Guide will help you to install git in linux, and commit your code in github.

How to install Git in linux
To install git in Linux, you need to run the below command in the terminal, open your terminal,
sudo apt-get install git
This command will install git in your linux machine.

Basic git command

After installing the git you need to setup the enviroment for git, for that you need to configure the git,
git config
Sets configuration values for your user name, email, gpg key, preferred diff algorithm, file formats and more. Example:
git config --global user.name "iGyan" 

git config --global user.email "iGyan.Org@Gmail.com" 
After configuring the git you need to make a branch tree for your code, for thet go to your code directory in terminal using and cd command and write.
git init
it Initializes a git repository and creates the initial ‘.git’ directory in a new or in an existing project.
now if you see the status of your branch using
git status 
to add the file in the branch you need to run add command like
git add
After adding the files you need to commit the code in your local system using
git commit -m ‘Added Some code’
here -m stands for the message, and in quoted string is your message.
And then you need to push the code to the repository of GIT like
git push https://github.com/iGyanCode/iGyan.git
after push you need to give a branch path which usually ends with *.git

I am Still Updating this one!

Have a Happy Linux!

Tuesday, September 3, 2013

Create Useful and handy commands with alias


Linux Alias
An alias is command line shortcuts. creating alias means that you will spend less time on typing the complex commands, you can create alias in linux that give meaningful names to obscure commands,

Thursday, August 22, 2013

List open ports and listening services

One of the first things you should do after a fresh operating system install is see what services are running and remove any unneeded services from the system startup process. You could use a port scanner and run it against the host, but if one didn’t come with the operating system install, you’ll 
likely have to connect your fresh (and possibly insecure) machine to the network to download one.



Wednesday, August 14, 2013

Monitor Network Bandwidth Usage With Vnstat

Vnstat is the tool to check the the internet bandwidth usage, finding the bandwidth usage over an hour, day, week can be tricky. to install vnstat in linux you need to run the following command.


sudo apt-get install vnstat

Wednesday, August 7, 2013

Use Gmail in terminal with vmail

Vmail provides a interface to send email from terminal.
To install vmail you need Ruby 1.9.0` or higher with SSL support in your linux.
Here is the step to install vmail in the terminal.


Step 1: installing the vmail using gem.
sudo gem install vmail

Step 2: Creating yaml file to set up gmail account.
To run Vmail, create a yaml file called .vmailrc and save it either in ~/.vmail/default/ or in your home directory. If you do the latter, Vmail will move the file to ~/.vmail/default/ when it starts up.

Step 3: Content in the  .vmailrc yaml file.
username: surficle@gmail.com 
password: password 
name: atul arvind signature: |
  -- 
  Sent from Vmail. http://surficle.com
This file should be formatted in YAML syntax. If you have any unsual characters in a string value, try putting quotes around that value.

Starting vmail in Terminal:

Once you've created the configuration file and (optionally) the contacts file, you can start Vmail with
vmail

This opens the Vmail/Vim interface and shows you the last 100 messages in your Gmail inbox.
You can have Vmail show messages from any other mailbox (a.k.a. label) on startup by passing in the mailbox name as an argument: 

Sunday, July 14, 2013

Most Useful and handy Linux / Unix commands


pwd
It Prints the working directory, i.e., display the name of my current directory on the screen.

hostname
It Prints the name of the local host (the machine on which I am working). Use netconf (as root) to change the name of the machine.

whoami
Print my login name.