Add terminfo; fix .emacs for Ubuntu version