I am new to Erlang and trying to set two nodes on my laptop.
In one terminal I type:
eli@elimayost: ~/erlang_apps> erl -sname foo -setcookie secre
Did You check the syslog for errors?
Is apparmor active? Maybe turn it off and try again. One day I had very strange effects with apparmor running... but it is just a guess.