Change VenusOS hostname

I have looked at several recommendations to change the host name on the VenusOS devices. They all default to Raspberrypi2. If it is the only one on your network no big deal but when you have several of them it becomes a pain.

I have gone in and changed hosts and hostname as recommended by several sources but no joy, What do I need to change to get the host name changed on my VenusOS machines?

Do you mind sharing what you’ve done so far to prevent folk suggesting things you’ve already tried. I’m a little out of practice but I thought venus os uses connman so i would guessed configuring through that maybe?

I have changed hosts and hostname, and rebooted. But the old host name remains. So it must be reading it from somewhere else. But not sure. if I go in and chuck each file they do contain the new name,

Hi @kp4djt

Just some random guesses:
/etc/connman/main.conf

Or make a script that changes it on boot?

If you build venus os from scratch i believe it’s in local.conf

I will check it as soon as I will get into one of the devices. I am on the road right now. Thank you for the
information.

Ok, I finally got back to this, /etc/connman/main.conf does not contain it, there is no local.conf in my Venusos, I have found it in hostname and hosts, both of them were changed and upon reboot it goes back to raspberypi2.

I know that most cases it does not matter because there is only one device on a network but this case is different, we have multiple devices on a large mesh and it makes for a mess trying to configure things because you cannot change the hostname of the device.

Here is what is in hostname:
root@raspberrypi2:/etc# cat hostname
rpivan
And hosts:
root@raspberrypi2:/etc# cat hosts
127.0.0.1 localhost

::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 rpivan
Here is what is in /etc/connman/main.conf:
root@raspberrypi2:/etc/connman# cat main.conf
[General]
DefaultAutoConnectTechnologies=ethernet,wifi,cellular
AlwaysConnectedTechnologies=ethernet,wifi
PreferredTechnologies=ethernet,wifi,cellular
SingleConnectedTechnology=false
FallbackTimeservers=0.europe.pool.ntp.org,1.europe.pool.ntp.org,2.europe.pool.ntp.org,3.europe.pool.ntp.org
FavoriteMaxRetries=-1
NetworkInterfaceBlacklist=ppp,ap,disabled,ll
EnableIPv4LL=false

And yet after changing them and doing a reboot the old name persist, the files do keep the change but are being overriddne. Note the cmd line prompt:
root@raspberrypi2:/etc/connman#

I was able to find the issue there is a file /etc/venus/machine, In it was one word
raspberrypi2
I changed it to what I wanted as the machine name and that allowed it to publish the new machine name. BUT, it started giving “file update errors” when it tried to do firmware checks.
Changed it back to raspberrypi2 and the update errors go away. Kind of sad tying the machine name to the update process. I hope someone comes up with a fix.