This short post describes how I’ve set up the Autonomous Deep Learning Robot to work with the Mac. The main things you gain are

  1. Use of Bonjour / Zeroconf to refer to your robot by name not IP address.
  2. Transfer of files to and from the Jetson TK1 using Finder on MacOS X.

Set up File-Sharing and Bonjour / Zeroconf

SSH into your robot and type:


sudo apt-get install netatalk
sudo apt-get install avahi-daemon
sudo update-rc.d avahi-daemon defaults
sudo vim /etc/avahi/services/afpd.service

Paste in the following content and type :wq to save and exit:

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
   <name replace-wildcards="yes">%h</name>
   <service>
      <type>_afpovertcp._tcp</type>
      <port>548</port>
   </service>
</service-group>

Check your Finder sidebar – you should be able to see your robot as tetra-ubuntu. Use ubuntu / ubuntu as the credentials (until you change them to something more secure). You can now copy files to and from your robot with Finder.

You can also access the robot from any Bonjour-enabled device by name, not IP. For example:

ping tegra-ubuntu.local
ssh ubuntu@tegra-ubuntu.local

and so on. This should even work from PCs if they have any Bonjour-software installed, for example iTunes.

Log-in to the Robot without a password

If your Mac is secure, then you can get it to log on to the robot with the ubuntu user without requiring you to type the password every time. Life is short.

cat ~/.ssh/id_rsa.pub | ssh ubuntu@tegra-ubuntu.local 'cat >> .ssh/authorized_keys'

This copies your local SSH key to the robot. Next time you do

ssh ubuntu@tegra-ubuntu.local

from the same user on the Mac you won’t need to type in the robot’s password.