1

Topic: /etc/hostname is dangerous

setting up hostname in /etc/hostname is primarily toward systemd

openrc user should set hostname in /etc/conf.d/hostname instead

https://wiki.parabola.nu/Beginners%27_Guide#Hostname

how dangerous is it ?
- it mess up your network, especially network manager
- it mess up your X11 and block your apps,  "error cannot open display 0" if you trying an network connection

2

Re: /etc/hostname is dangerous

I haven't had any problems with setting a hostname in /etc/hostname.

3

Re: /etc/hostname is dangerous

in some circumtances this is happening to me and wiping out /etc/hostname solved it for me.

in case if other user experiencing the problem above they might try follow parabola openrc instructions.

4

Re: /etc/hostname is dangerous

dikasp2 wrote:

in some circumtances this is happening to me and wiping out /etc/hostname solved it for me.

in case if other user experiencing the problem above they might try follow parabola openrc instructions.

Not that this is as relevant now, but your supposed to use /etc/hosts anyways for this purpose.

The latter only works with systemd I think.

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!