Creating The Install File – Zip

Zip your file or files following the instructions here.

The files executable permission is kept when it is zipped and will remain when it is unzipped again.

Copy the .gz zip file to the public folder in your dropbox.

Get its public link.

Instructions To Then Install From The Dropbox Zip

If upgrading, on the Raspberry Pi ensure the application isn't already running.

Press the bottom left start button, select 'Accessories' and then 'LXTerminal'

This opens the Linux command prompt.  Enter this command:


cd projects/the_install_directory

Now enter this command to download the new version


wget -N https://dl.dropboxusercontent.com/u/123456789/your_zip_file.gz

Wait for it to complete (it will probably take a few seconds).  Then enter this to install it:


tar zxvf your_zip_file.gz

That's is, assuming you didn't get any error messages the new version is installed

Notes

The "-N" option causes the wget to overwrite the local file if it already exists (otherwise you_zip_file.gz.1 is created instead) and to only bother with the download if the remote file is newer.  If you ommit it then if a file with the same name already exists it will be retained and the new file renamed with ".1" on the end.

Simpler Instructions For Downloading The Executable Directly


sudo killall my_app_name

cd /home/pi/

sudo wget -N http://www.my_website.com/apps/my_app_name
sudo chmod +x /home/pi/my_app_name

This does the following:

Stops the application if it is already running

Downloads the new version, overwriting the existing file if present.

Sets it to executible

 

 

 

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published. Required fields are marked *