Complete Guide to Commit on BitBucket.org using Git & UBUNTU

FIRST STEP CREATE SSH KEY

    1. List the contents of your ~/.ssh directory.
      pc:~ ubuntu$ ls -a ~/.ssh
      known_hosts
    2. Create your ssh key
      pc:~ ubuntu$ ssh-keygen
      Generating public/private rsa key pair.
      Enter file in which to save the key (/Users/manthony/.ssh/id_rsa): 
      Created directory '/Users/manthony/.ssh'.
      Enter passphrase (empty for no passphrase): 
      Enter same passphrase again: 
      Your identification has been saved in /Users/manthony/.ssh/id_rsa.
      Your public key has been saved in /Users/manthony/.ssh/id_rsa.pub.
      The key fingerprint is:
      4c:80:61:2c:00:3f:9d:dc:08:41:2e:c0:cf:b9:17:69 manthony@myhost.local
      The key's randomart image is:
      +--[ RSA 2048]----+
      |*o+ooo.          |
      |.+.=o+ .         |
      |. *.* o .        |
      | . = E o         |
      |    o . S        |
      |   . .           |
      |    .            |
      |                 |
      |                 |
      +-----------------+
    3. List the contents of ~/.ssh to view the key files.
      
      ls -a ~/.ssh
    4. Open a terminal window and enter the ps -e | grep [s]sh-agent command to see if the agent is running:
      pc:~ ubuntu$ ps -e  | grep [s]sh-agent
       9060 ??         0:00.28 /usr/bin/ssh-agent -l

      If the agent isn’t running, start it manually with the following command:

      myhost:~ manthony$ ssh-agent /bin/bash
      
      

       

 

  • Load your new identity into the ssh-agent management program using the ssh-add command.
    $ ssh-add ~/.ssh/id_rsa
    Enter passphrase for /Users/manthony/.ssh/id_rsa: 
    Identity added: /Users/ubuntu/.ssh/id_rsa (/Users/manthony/.ssh/id_rsa)
    pc:~ ubuntu$

    Use the ssh-add command to list the keys that the agent is managing.

    $ ssh-add -l
    2048 7a:9c:b2:9c:8e:4e:f4:af:de:70:77:b9:52:fd:44:97 /Users/ubuntu/.ssh/id_rsa (RSA)

    Install the public key on your Bitbucket account

     

    1. Open a browser and log into Bitbucket.
    2. Choose avatar > Manage Account from the application menu.
      The system displays the Account settings page.
    3. Click SSH keys.
      The SSH Keys page displays. It shows a list of any existing keys. Then, below that, a dialog for labeling and entering a new key.
    4. Back in your terminal window, copy the contents of your public key file.
      For example, in Linux you can cat the contents.

 

cat ~/.ssh/id_rsa.pub

5. Paste the copied public key into the SSH Key field:

 

https://confluence.atlassian.com/pages/viewpage.action?pageId=270827678

 

SECOND STEP COMMITING YOUR PROJECT

Loggarsi su https://bitbucket.org
Aggiungere un repository (menù in alto a destra) se già non è stato creato in precedenza.
In fase di creazione assicurarsi che il progetto abbia il flag “Private” attivo o no a seconda del tipo di progetto che si vuole creare.
In locale sul linux/mac:
aprire il terminale
posizionarsi nella directory del progetto
eseguire questi comandi:
git init
git add . (mi raccomando il . è fondamentale)
git commit -m “Messaggio iniziale o qualunque altra cosa”
Ok in locale il progetto è “gittato”, ora però bisogna renderlo disponibile al team in remoto con gli ultimi passaggi sempre da terminale e sempre nella stessa posizione:
git remote add origin https://utente@bitbucket.org/utente/progetto_creato_in_precedenza_sul_sito_bitbucket.git
git push https://utente@bitbucket.org/utente/progetto_creato_in_precedenza_sul_sito_bitbucket.git master
Ora l’intero progetto è stato copiato in remoto.
Direi semplice e indolore 🙂

 

 

How to get Mac OSX Snow Leopard using VirtualBox on PC


UPDATED SNOW LEOPARD ISO DOWNLOAD LINK! PLEASE LOOK BELOW!

This tutorial will show you how to get Snow Leopard for any windows PC !
We’re going to do this tutorial with VirtualBox! (It works faster and better then VMware in my opinion). Everything works perfectly : Sound, internet, .dmg’s!

Download links:

Updated Snow Leopard ISO download link:
http://kat.ph/snow-leopard-10-6-1-10-…
________________________________________­_________________
Snow leopard ISO : http://leohazard.com/download.html

BitTorrent : http://www.bittorrent.com/btusers/dow…

VirtualBox: http://www.virtualbox.org/wiki/Downloads

WinRAR: http://www.rarlab.com/download.htm

New Django 1.3.1 project on DreamHost

Goal

install django in subdomain (eg. subdoamin.domain.com) to start a new project

Step by step guide

Create subdomain

create a subdomain; be careful on user to manage shell account; use passenger;

Create a database

It’s recommended to create a specific database for django

Run the Django Setup wizard


cd carla.manazag.com
/usr/bin/django-admin.py startproject

 

References: