Archive

Posts Tagged ‘ubuntu’

Exploring ruboto

Installazione di ruboto su debian/ubuntu in 6 semplici passi

  1. passo uno, installare la JDK java:
    sudo apt-get install sun-java6-jdk
  2. installare jruby con rvm (per installare rvm seguire questa guida):
    rvm install jruby
  3. installare l’SDK android (vedi qui), io l’ho installata in ~/android-sdk
  4. aggiungere la seguente linea in ~/.bashrc :
    export PATH=$PATH:~/android-sdk/tools
  5. generare un emulatore (vedi qui)
  6. installare ruboto:
    rvm jruby-1.5.0
    gem install ruboto-core

installare ruby1.9 e rails3 su debian/ubuntu

Installare Ruby on Rails 3 oggi è molto piu semplice grazie a due tool che aiutano a gestire le dipendenze: RVM per avere diverse istanze di ruby ognuna con un suo set di gemme e bundler che aiuta a gestire i set di gemme necessari per ogni istanza di ruby on rails.

Per installare RVM bisogna innanzitutto assicurarsi che siano installati alcuni pacchetti:

 sudo apt-get install subversion bison git-core curl zlib1g-dev libssl-dev

Successivamente lanciare il seguente comando:

 bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )

a questo punto inserire in ~/.bashrc la seguente linea:

  [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm

e voilà, una volta riavviata la shell rvm è pronto per essere utilizzato, per installare ruby 1.9.2 (al momento l’ultima release stabile) basta lanciare il comando:

 rvm pkg install zlib
 rvm install ruby-1.9.2

Read more…

byobu – layout your screen

While I was updating my ubuntu I’ve accidentaly discovered this interesting tool, byobu, the name is pretty strange, its japanese and the word means “decorative multi-panel screens that serve as folding room dividers”. It works upon screen adding some very interesting features, a nice toggle-able skinnable status notification area that can display some interesting info, and a Fn key approach to the windows management (es: F2 new win, F3 prev win, F4 next win and so on). This is how it looks like:

byobu - screen - layout

If you want to open byobu everytime you open screen you can just run:

$ echo alias screen=’byobu’ >>~/.bash_aliases

and restart the shell.