turtlebot / turtlebot4_setup

TurtleBot 4 setup tools and configuration files.
Apache License 2.0
20 stars 5 forks source link

turtlebot-setup does not change hostname #16

Open mdxtinkernick opened 3 days ago

mdxtinkernick commented 3 days ago

Robot Model

Turtlebot4 Lite

ROS distro

Humble

Networking Configuration

Discovery Server

OS

Other Linux

Built from source or installed?

Installed

Package version

running jazzy on pi ubuntu 2404 using t4 lite image provided on website. Have run update/upgrade to get the latest released version of packages.

Expected behaviour

Trying to use the turtlebot4-setup script to change hostname of the robot - it lists it as a change that will be made, and applying then looking in about shows the new name

Actual behaviour

the hostname does not change. reboot and name still not changed.

Error messages

no error messages displayed

To Reproduce

run

turtlebot4-setup

select about from menu. select hostname from menu

type in desired hostname, press enter

select save

type in password at prompt

select apply changes, hostname change is indicated in changes that will be made display text below

System Settings:
HOSTNAME: turtlebot4 -> new

select yes

select apply changes again, now shows no changes to be made.

Other notes

No response

mdxtinkernick commented 2 days ago

after some digging found that setting hostnames in the server image of ubuntu doesn't persist unless you edit the /etc/cloud/cloud.cfg file and set preserve_hostname: true

once that is done then turtlebot-setup will work for changing the hostnames, so this may need adding to the pi image script