I’ve installed a fresh installation of Fedora 31 on my PC. Its the only distribution on the machine.
The installation does not seem to ask me to choose a hostname (I’m coming from an Ubuntu background where they do). Anyway, when I reboot after installation and open a terminal the command prompt is ‘peter@ubuntu’
Where is the ubuntu hostname coming from? I know I can change it, but I was just wondering.
If i do a cat /etc/hostname it says localhost.localdomain
echo $PS1 gives [\u@\h \W]
I do have another PC on the same network with the hostname ubuntu.
Thank you for the reply. I’m away with work until Thursday evening, but will try then.
I don’t think I’m getting my qyestion across correctly. This is a clean install of Fedora 31. I have not changed anything at all From a clean install I have just gone into the terminal and the prompt is peter@ubuntu and my question is why is the hostname being displayed as ubuntu? If I need to explain in any other way please let me know.
Thank you. I did not change it during the anaconda install (There is no place to do this), and the username I chose was ‘peter’ so I still don’t know where it got ubuntu from.
Anyway, I’m back on Thursday. All I can think is it is somehow reading it from the other machine on my network.
If you did not explicitly set a hostname, it is possible that the DHCP server on your router is confused, and serving out the same hostname because it thinks it’s the same machine, or the machine used to be called ‘ubuntu’ and some cache is still giving the name out.