I have tried setting at /etc/hostname, /data/etc/hostname, via the hostname command, and the hosts file (per board/common/overlay/etc/init.d/S01hostname) but cannot get the change to survive a reboot. It defaults back to "$os_prefix-$board_sn". Am I missing something?
Hostname is not yes changeable. It will be soon, though.
Thats easy, login with ssh and write the folowing:
echo "hostname" > /data/etc/hostname
mount -o remount -w /dev/root /
mv /etc/init.d/S01hostname /etc/init.d/S05hostname
mv /etc/init.d/S13mountall /etc/init.d/S01mountall
sync
reboot
best regards
this command remount writeable:
mount -o remount -w /dev/root /
don't forget space between /dev/root and /
best regards
Am 09.01.2016 um 04:54 schrieb birukun:
Arut42 I tried that on my implementation but the root file system is
locked so it did not stay persistent. I believe it will be possible to
do if you mount the filesystem elsewhere read/write and make the
modification. I have not tried that yet, playing with the dozens of
other fun features first :-)—
Reply to this email directly or view it on GitHub
https://github.com/ccrisan/motioneyeos/issues/103#issuecomment-170189328.
This procedure won't be needed anymore starting with 20160109; you will only have to create the file /data/etc/hostname containing your desired hostname and reboot.
I've just committed the changes required to allow setting a custom hostname from the UI. The feature will be available in the next release.
Hey @ccrisan , Thanks for all the work you have done on Motioneye, a great accomplishment. How exactly do I change the hostname over the UI?
@joshhighet Settings Menu -> General Settings > Hostname.
Most helpful comment
@joshhighet Settings Menu -> General Settings > Hostname.