Saturday, November 19, 2016

How to add existing Android Studio project to Bitbucket?

Here are the steps to add existing Android Studio project to Bitbucket git provider.

1.) Create a new repository in Bitbucket.
2.) Open the terminal window in Android Studio.
3.) Execute the following commands
   

  • git init
  • git add .
  • git commit -m "Initial Version"
  • git remote add origin https://techsabha@bitbucket.org/techsabha/mobileoffers.git
  • git push -u origin master
These steps will create a new git repository in local path and the push it to the remote bitbucket repository.

Addition Information:

Steps to create git branch and merge to master branch.

1.) git clone "git url"
2.) git branch "branch name"
3.) git checkout "branch name"
4.) Now you work on the branch and do the commits.
4.) Once the work is done then follow the steps to merge to master branch
5.) git checkout master
6.) git merge "branch name"
7.) git push

Friday, June 10, 2016

How to install youtube-dl in Ubuntu 14?

Just execute the following command to install youtube-dl executable

root@hostname:~# pip install youtube-dl

To verify if youtube-dl installation successful.

root@hostname:~# youtube-dl --version
2016.06.03

To upgrade youtube-dl to new version.
root@hostname:~# pip install --upgrade youtube-dl
Requirement already up-to-date: youtube-dl in /usr/local/lib/python2.7/dist-packages
Cleaning up...

Monday, April 25, 2016

How to install PyMongo in Ubuntu 14.04?

1.) make sure that pip is installed in the  Ubuntu machine.
2.) Execute the following command
    pip install pymongo

Monday, April 11, 2016

How to install latest version of MongoDB in Ubuntu 14.04?

Follow the below steps to install mongodb in Ubuntu 14.04 version.

1.) sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
2.) Create list file for MongoDB with the following command.
    echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
3.) Reload local package database
    sudo apt-get update
4.) Install latest version of MongoDB with the following command
   sudo apt-get install -y mongodb-org
5.) Start MongoDB service with the following command.
 sudo service mongod start

Source: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

How to install FFMpeg in Ubuntu 14.04?


Following are the steps to install FFMpeg in Ubuntu 14.04 version.

1.) sudo add-apt-repository ppa:mc3man/trusty-media
2.) Press Enter button for the options to take the defaults.
3.) Update the packages by entering the following commands
sudo apt-get update
sudo apt-get dist-upgrade
4.) Now install FFMpeg with the following command
sudo apt-get install ffmpeg

Source: http://www.faqforge.com/linux/how-to-install-ffmpeg-on-ubuntu-14-04/

How to install noip.com Dynamic Update Client in Ubuntu 14.04?

1.) Login in as root or become root by sudo -s command.
2.) cd /usr/local/src
3.) wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
4.) tar xf noip-duc-linux.tar.gz
5.) cd noip-2.1.9-1/
6.) make install
7.) Enter your noip.com username/password
The following details to be entered during the process. 
Please enter the login/email string for no-ip.com  <username>
Please enter the password for user '<username>'  ********

Only one host [yourname.ddns.net] is registered to this account.
It will be used.
Please enter an update interval:[30]  
Do you wish to run something at successful update?[N] (y/N)  

New configuration file '/tmp/no-ip2.conf' created.


mv /tmp/no-ip2.conf /usr/local/etc/no-ip2.conf
8.) To start the DUC client execute the following command.
    /usr/local/bin/noip2 

Src: http://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client-on-ubuntu/