Get Your Turtlebot on mDNS with a .local Address

I have a turtlebot here at work.

I am sick and tired of sshing into randomly assigned IP addresses. Luckily, there’s something called mDNS which allows you to reserve a hostname.local for your turtlebot. Instead of sshing to something like:

ssh turtlebot@

You can ssh to:

ssh turtlebot@turtlebot.local

so easy you could make an alias in your bash_profile!

Here’s how you do it:

Always a good idea to get an update and then get the package:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install avahi-daemon

Then you need to make some changes on your turtlebot machine:

sudo pico /etc/hosts
# edit the line to whatever you want the name to be    ___NAME___

sudo pico /etc/hostname
# edit this file to the same name as above

# now you need to tell avahi to set a .local address
sudo pico /etc/avahi/avahi-daemon.conf
# uncomment the following line

Now just restart the service and reboot your computer!

sudo service avahi-daemon restart
sudo reboot



Leave a Reply

Your email address will not be published. Required fields are marked *