Go Down

Topic: Arduino install scripts (Read 504 times) previous topic - next topic

ak_avenger

I just put together a set of 3 shell scripts for installing, running, and uninstalling the Arduino software. Tested on Ubuntu 9.10, but I imagine it'll work on any distro.

Requires an Internet connection, since the script also downloads the package.

install.sh:

Code: [Select]

#!/bin/sh

VERSION=0017

rm /bin/arduino

cp ./run.sh /bin/arduino
chmod +x /bin/arduino

cd ~/

wget http://arduino.googlecode.com/files/arduino-$VERSION.tgz
tar -xvf arduino-$VERSION.tgz
mv arduino-$VERSION arduino

rm ~/arduino-$VERSION.tgz


run.sh:

Code: [Select]

#!/bin/sh

cd ~/arduino
./arduino



uninstall.sh:

Code: [Select]

#!/bin/sh

VERSION=0017

rm /bin/arduino
rm ~/arduino-$VERSION.tgz
rm -R ~/arduino


Comments/suggestions?

If anyone can put me on the path to making this a real Aptitude/Debian package or tell me how to check for Arduino prerequisites, that would be great.

Go Up