On my system with Mandrake 10.1 installed, at the shell prompt it displays a prompt of user1@localhost.
I would like to change the hostname so that a name is displayed instead of localhost. I tried a few things, via the Mandrake graphic controls, but seemed to end up with a misconfigured system.
The machine has a static ip address:
% hostname -i
I have now edited the /etc/hosts file and added a line so it now looks like:
This seems to work ok, , I get a prompt of user1@pc2, except that when I now boot I get an error message to do with postfix about not being a fully qualified domain name and I need to edit /etc/postfix/main.cf.
Can anyone explain this error and what I should do (it scrolls off of the boot screen so quickly I can't easily read all the information).
Have I changed the name the right way? Is there something else I need to do?