Go Down

Topic: Arduino install scripts (Read 564 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy