Categories
Uncategorized

«The machine» compilation from Person of Interest TV Series

Categories
linux Uncategorized

Terminator and Ctrl+t in Ubuntu

For some reason I cannot understand fully there is a problem with the key <Ctrl> in Terminator. If you configure <Ctrl>+t, for example, for creating new tabs the configuration doesn’t works and is not saved. The problem is described here. The temporal solution of the problem consist in editing the Terminator configuration file in:

bash$ vim ~/.config/terminator/config

And change by hand the key binding for creating new tabs to

...
   tab_position = hidden
[keybindings]
   new_tab = t
   next_tab = Right
...

The problem seems related to Terminator using the key <Primary> instead of <Ctrl>.

Categories
Uncategorized

Problems with GNU parallel in Ubuntu 13.04?

GNU parallel seems to not work properly in Ubuntu:

bash$ seq 10 | parallel echo {}

bash$

Where are my numbers? For fixing this «problem» (misconfiguration will be a better description) you need to comment an option that is implicit in Ubuntu. Go to:

bash$ sudo vim /etc/parallel/config

And comment the only setting there:

#--tollef

And now GNU parallel works again as expected:

bash$ seq 10 | parallel echo {}
1
2
3
4
5
6
7
8
9
10
bash$

That’s all 🙂

Categories
Uncategorized

Installing postgresql 9.2 in Ubuntu 13.04 (2013 August)

Ubuntu doesn’t like PostgreSQL 9.2 because it breaks other packages (see explanation in stackoverflow). We need to use PostgreSQL own apt repository:

prompt$ sudo sh -c  "echo 'deb http://apt.postgresql.org/pub/repos/apt/ squeeze-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
prompt$ wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
OK
prompt$
prompt$ sudo apt-get update
prompt$ sudo apt-get install postgresql

That’s all 🙂