Making NAO Sticks - NUbots/robocup GitHub Wiki
There are several changes that need to be made to the default image supplied by Aldebaran
- Use the NAO’s webpage to change the password, and change the robot’s name to
nubotNwhere N is the player number. It is also easy to setup the wireless using the webpage. - You will need to make a bunch of files and directories
-
/home/nao/naoqi/lib/naoqithis is where libnubot.so needs to go. -
/home/nao/naoqi/preferences/autoload.inithis is where we tell naoqi which modules to load. Start by making a copy of/opt/naoqi/preferences/autoload.ini. At the very least you need to add nubot as the last module. -
/home/nao/nubot/this is where our config files go. The/home/nao/nubot/Configdirectory is stored in the repository, however, the binary files are not.
-
- You will need to copy the ssh keys to
/home/nao/.ssh/authorized_keys2
To copy an existing stick, unmount the stick, then find where in /dev/ the stick is, usually the stick will simply be /dev/sdb on linux or /dev/disk1 on Mac OS but make sure. The following command will do a binary copy dd if=/dev/sdb of=nunao-robocup-1.6.X.ext3 bs=16k skip=1 conv=notrunc.
You then need to gzip the new image with gzip nunao-robocup-1.6.X.ext3 nunao-robocup-1.6.X.ext3.gz.
Aldebaran’s flash-usbstick scripts will work with images they provide and images made with following the above. On linux flash the stick using sudo ./flash-usbstick ../../nunao-robocup-1.6.0.ext3.gz.
Following a stick flash you will need to change the stick’s name/playernumber. Nowadays this is stored in /etc/hostname and should be of the form nubotN where N is the player number.