2015-01-20 15:51:19 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "Initial setup of SITL-vagrant instance."
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install dos2unix python-wxgtk2.8 python-scipy python-matplotlib python-opencv python-pip g++ g++-4.7 gawk git ccache python-serial python-wxgtk2.8 python-lxml screen
|
|
|
|
|
|
|
|
sudo pip install pymavlink MAVProxy
|
|
|
|
|
|
|
|
echo "source /vagrant/Tools/vagrant/shellinit.sh" >>/home/vagrant/.profile
|
2015-01-22 18:25:16 -04:00
|
|
|
rm /home/vagrant/.screenrc
|
2015-01-20 15:51:19 -04:00
|
|
|
ln -s /vagrant/Tools/vagrant/screenrc /home/vagrant/.screenrc
|
|
|
|
|
2015-01-22 18:25:16 -04:00
|
|
|
# build JSB sim
|
|
|
|
pushd /tmp
|
|
|
|
rm -rf jsbsim
|
|
|
|
git clone git://github.com/tridge/jsbsim.git
|
2015-01-27 12:03:34 -04:00
|
|
|
sudo apt-get install -y libtool automake autoconf libexpat1-dev
|
2015-01-22 18:25:16 -04:00
|
|
|
cd jsbsim
|
|
|
|
./autogen.sh
|
|
|
|
make -j2
|
|
|
|
sudo make install
|
|
|
|
popd
|
2015-01-20 15:51:19 -04:00
|
|
|
|
2015-01-22 18:25:16 -04:00
|
|
|
# Now you can run
|
2015-01-20 15:51:19 -04:00
|
|
|
# vagrant ssh -c "screen -d -R"
|