Saturday, February 25, 2012

How I use bitbucket

How I started using bitbucket. I got all the help from the bitbucket (bitbucket 101). So you will get all these and more there.

I had a bunch of scripts on my computer. These scripts are organized in different folders each for a project.

do a

#> cd path/to/folder
#> git init
#> git add .
#> git -a -m "Initial commit"

in each folder

optional

#> git config --global user.name "FIRST_NAME LAST_NAME"
#> git config --global user.email "MY_NAME@example.com"

This creates a git repository in each of these folders.

Now create a account in bitbucket.org. Add a repository for each project you want to upload.

Now to go back to each of the folders in the local machine and issue the following:

#> cd /path/to/my/repo
#> git clone https://MY_USER@bitbucket.org/MY_USER/MY_REPO-git.git
#> git push -u origin master


Later on if you want to add more files to the repo,


#> cd /path/to/my/repo
#> git add NEW_FILENAME
#> git commit -m "NEW_FILENAME ADDED"
#> git push -u origin master # to push changes for the first time


Thursday, August 6, 2009

How to Install VLC on ubuntu

a) Just type sudo aptitude install vlc
- Disadvantage is you will not get the latest vlc (while the latest is 1.0.0, you may get 0.9.2-1)

b) Google for vlc, go to VLC download page for ubuntu and follow the instructions for your release.
- Couple of extra steps, but you get the latest.

Tuesday, August 4, 2009

How to install the latest firefox on (any) linux

The latest firefox is (as of this writing) is firefox-3.5.2. But most of the distro's are still with firefox 3.0.x or some with 3.1.x.

The following procedure may be used to update the firefox on your linux box (any distro) to the latest version.

Google for download firefox

Click on the download firefox links - this link will take you to 3.5.2.
The firefox-x.y.z.tar.bz2 (in this case firefox-3.5.2.tar.bz2) will be saved on the desktop

Open a terminal and type the following
cd /home/<usrname>/Desktop
tar jxvf firefox-3.5.2.tar.bz2

A directory will be created on the desktop.

Go to /usr/bin/
cd /usr/bin
rm firefox
ln -s /home/<usrname>/Desktop/firefox/firefox firefox


Restart firefox if open.

You can now delete the bz2 file on your desktop if you wish.

Happy browsing with your brand new firefox !!