photOS icon indicating copy to clipboard operation
photOS copied to clipboard

change hostname

Open Surfer2010 opened this issue 2 years ago • 1 comments

How can the hostname be changed? where is it generated and i assume one has to mount the partion writable (mount -o remount,rw /)

Surfer2010 avatar Mar 26 '23 15:03 Surfer2010

Hostname is set by the /etc/init.d/S04hostname init script. You can place a file containing the hostname under either /etc/hostname, /data/etc/hostname or /boot/hostname (i.e. first partition, will be automatically moved to /data/etc/hostname on third partition).

avanc avatar Mar 26 '23 20:03 avanc