User:Esden/buildbot slave

From PaparazziUAV
< User:Esden
Revision as of 01:52, 22 September 2014 by Esden (talk | contribs)
Jump to navigation Jump to search

These are my own notes on the needed steps to install a buildbot slave instance. This is work in progress! So as always the typical disclaimers apply. It is probably incomplete and broken. :P

For ease of use you can now also copy over the .ssh/authorized_keys file

Update system:

sudo aptitude update
sudo aptitude safe-upgrade

Install usability stuff:

sudo aptitude install mosh zsh
wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
chsh -s /usr/bin/zsh

Note: On Ubuntu precise add-apt-repository is not installed by default to add it run:

sudo aptitude install python-software-properties

Install paparazzi stuff:

sudo add-apt-repository ppa:paparazzi-uav/ppa
sudo aptitude update
sudo aptitude install paparazzi-dev paparazzi-jsbsim

Install gcc-arm-embedded:

sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
sudo aptitude update
sudo aptitude install gcc-arm-none-eabi

Install buildbot slave:

sudo aptitude install buildbot-slave

Initialize buildbot slave directory:

cd /var/lib/buildbot/slaves
sudo buildslave create-slave paparazzi_uav_slave buildbot.paparazziuav.org:9989 yourslavename yourslavepassword
sudo chown -R buildbot:buildbot paparazzi_uav_slave

You should of course adjust the yourslavename and yourslavepassword to the real values that you can get from a paparazzi developer with access to the buildmaster server.

Configure the buildbot slave by pasting the following into /etc/defaults/buildslave:

SLAVE_ENABLED[1]=1
SLAVE_NAME[1]="paparazzi uav slave"
SLAVE_USER[1]="buildbot"
SLAVE_BASEDIR[1]="/var/lib/buildbot/slaves/paparazzi_uav_slave"
SLAVE_OPTIONS[1]=""
SLAVE_PREFIXCMD[1]=""

Start the buildslave service:

sudo service buildslave start