Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turtlebot-setup does not change hostname #16

Open
mdxtinkernick opened this issue Nov 29, 2024 · 1 comment
Open

turtlebot-setup does not change hostname #16

mdxtinkernick opened this issue Nov 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mdxtinkernick
Copy link

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 mdxtinkernick added the bug Something isn't working label Nov 29, 2024
@mdxtinkernick
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants