Pages: [1]   Go Down
Author Topic: Arduino install scripts  (Read 453 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#!/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:
#!/bin/sh

cd ~/arduino
./arduino


uninstall.sh:

Code:
#!/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.
Logged

Pages: [1]   Go Up
Jump to: