I’m using Ubuntu 12.04 version but this doesn’t means that these instructions won’t run with other versions, since is an openssh process well tested during years on unix systems.

First step is to be sure that we have all required software: OpenSSH and git-core. The openssh-client should be installed by default in Ubuntu:

apt-get install git-core openssh-client

Second step is generate your SSH keys as you can read at this article from Ubuntu Help. Make a backup of your actual keys (if you have), since if you delete private keys, are impossible to regenerate them later:

mv ~/.ssh ~/_ssh_back

Then, you can create the directory and generate keys:

mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa -C “your_email@youremail.com”

This will ask you for the passphrase, which will be asked always you add a private ssh key to a new system.

Generating public/private rsa key pair.
Enter file in which to save the key (/home/b/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/b/.ssh/id_rsa.
Your public key has been saved in /home/b/.ssh/id_rsa.pub.

Now you have your public (~/.ssh/id_rsa.pub) and private keys (~/.ssh/id_rsa). If you want to begin to work now, before rebooting your system, you’ll need to add the private key to the system:

ssh-add

If you don’t do this, could result in error when you try to connect to git server later, as you can see here.

After this point you can send your public key (~/.ssh/id_rsa.pub) to your git-server provider to give you permissions in your repos. For example, in GitHub, you have to paste the public key file content into your account settings, as you can see here.

At this point you have to set your user name and email for commit messages:

git config –global user.name ‘John Doe’
git config –global user.email johndoe@example.com

Once your git-server-provider gives you the permissions, you can do a simply test to see which permissions you have:

> ssh -T git@labs.lebrijo.com
hello hwtest, this is gitolite 2.2-1 (Debian) running on git 1.7.9.5
the gitolite config gives you the following access:
R W testing

Now, you can enjoy git: clone, commit, push, pull,…. Take a look at this cheatsheet. i.e.:

git clone git@labs.lebrijo.com:testing.git

Redmine is a project management web application, developed in Rails. In my opinion is the best free tool of this nature. That’s the reason why I wanted to install it on my server, to manage better my future projects, and of course installing the last version. In this article I will ilustrate the dificulties which I found during the installation, mainly the first installation of ruby, rails, bundler, mysql compatibility … Continue reading

I love Java and Object Oriented Paradigm, and I was looking for an option to develop Java apps in the cloud in a cheap way. The cheaper, light and non-restrictive way to do this is installing Tomcat in an AmazonWS Linux-AMI. You can do great applications in Tomcat with Spring/JPA/JSF2, but this architecture deserves another post.

Well, I want to show you how to configure Tomcat to deploy web applications in a basic-AMI (It’s free the first year):

  • Configuring memory heap
  • Provide gzip compression for the web contents
  • Two ways to redirect to port 80
  • And, if you use maven, deploying remotely with cargo

Continue reading

Initial Import.

Renovar la clase política

Se admiten refactorizaciones e incluso continuar el código (casi lo subo a GitHub ;) ). Licencia Creative Commons (of course).

Cuando en el instituto me enseñaban a Aristóteles se me quedó la idea de que la crisis de la democracia sería la demagogia:

La demagogia, según Platón y Aristóteles, puede producir (como crisis extrema de la democracia), la instauración de un régimen autoritario oligárquico o tiránico, que más frecuentemente nace de la práctica demagógica que ha eliminando así a toda oposición. 

!DEMOCRACIA REAL YA¡