I have an Ubuntu 12.04 fresh installation where I want to change the 'hostname' (machine name'. I have followed several instructions, such as from:
but all of them end with 'Cannot Open Display' problem. Basically, I have a GUI (desktop) installed. I switch to the Terminal by CTRL ALT F2 key and run commands.
What is happening? Am I missing some package? Note, I can do the
stat command on
/etc/hosts files so perhaps Permissions are okay?