Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Linux .deb package request on: November 15, 2009, 11:12:00 pm
My browser displays that .deb file's contents instead of downloading it. Fantastic.

I made an install script, but I couldn't post a new thread about it because it would have been my first post. Problem solved!
2  Forum 2005-2010 (read only) / Bugs & Suggestions / Arduino install scripts on: November 15, 2009, 11:13:45 pm
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.
Pages: [1]