Code: Select all
cat /etc/hostname
computerpc
When I first boot my computer, my host name is shown correctly but after a while (for example by logging in or entering a wrong password), it just changes to dhcppc2
What should I do?
Code: Select all
cat /etc/hostname
computerpc

Oh right,fedeliallalinea wrote:Welcome to gentoo forum.
You are sure that /etc/hostname is correct location?
In handbook we talk about /etc/conf.d/hostaname.
Code: Select all
# Set to the hostname of this machine
hostname="computerpc"
is<80>kbge<80>kb<80>kbcomputerpc^[:wq^M
Yep, this just reminded me that I'm using connman and ArchWiki has warned about it changing the host name.Tony0945 wrote:I'd guess that your dhcp server is setting it.