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.

Saturday, July 13, 2013

Make linux terminal shortcodes



In Linux terminal Alias helps you to create shortcuts command, suppose if i need to display a list of directory with it's permission and group, that time i enter the command ll instead of ls -l, which will list the directory, ll is not a command in the Linux terminal but it's a alias defined in the system,







Thursday, June 27, 2013

Easy package manager for Ubuntu/Debian

Synaptic is a graphical package management program for apt. It provides the same features as the apt-get command line utility with a GUI front-end based on Gtk+.


Tuesday, May 14, 2013

Randomize Your GNOME Wallpaper


With a small bash script, it is possible to randomly select an image from a 
directory and change the current GNOME wallpaper to that image. It's easy to 
forget just how powerful bash can be; more than just a simple command shell, 
bash has a whole host of features that make it well-suited for even complex 
programming tasks.
To begin this hack, you need to have a directory full of wallpapers somewhere. 
Assume this directory is located at /home/foo/Images/Wallpapers/. This script 
will take an image from that directory and set it as the current wallpaper. 

How to install Whatsapp in Ubuntu/Linux?



Most of Android phone have "Whatsapp" application installed and running. this post is for PC freak 
who need to install the whatsapp mobile app on the ubuntu   

So here is the video that describes "how to run whatsapp from Ubuntu desktop PC with same account?"

Monday, May 13, 2013

How to install/run Android emulator on Ubuntu or Debian

Here is guide on how to run Android emulator on Ubuntu or Debian.
Android emulator comes with Android SDK, and therefore you need to install Android SDK. Follow the steps below to install Android SDK on Linux.



Secure Mount Points in Unix

The primary way of interacting with a Unix machine is through its filesystem.
Thus, when an intruder has gained access to a system, it is desirable to
limit what he can do with the files available to him. One way to accomplish
this is with the use of restrictive mount options.
A mount option is a flag that controls how the file system may be accessed. It
is passed to the operating system kernel’s code when the file system is
brought online. Mount options can be used to prevent files from being interpreted
as device nodes, to disallow binaries from being executed, and to disallow the
SUID bit from taking effect (by using the nodev, noexec, and nosuid
flags). Files ystems can also be mounted read-only with the ro option.
These options are specified from the command line by running mount with
the -o flag. For example, if you have a separate partition for /tmp that is on
the third partition of your first IDE hard disk, you can mount with the
nodev, noexec, and nosuid flags, which are enabled by running the following