ayufan-pine64 / linux-build

Pine64 Linux build scripts, tools and instructions (based on Longsleep work)
MIT License
154 stars 36 forks source link

torrent? #45

Open dkebler opened 7 years ago

dkebler commented 7 years ago

I'm having trouble downloading the larger (mate-pinebook) image directly from github. Is it possible to put the larger images at a torrent or other location where I can resume a stopped download instead of starting over. Thx

itdaniher commented 7 years ago

curl has a -C that should work for github downloads.

details here

dkebler commented 7 years ago

@itdaniher Good suggestion didn't know curl had that option but the url for the release is actually a redirect to some AWS storage so it doesn't work. I managed to see the redirect url and it has so many REST options that using that in curl just spits out a bunch of errors and never gets to the actual url of the file.

So anyone know how to get the direct url to the image on aws? If so using curl would work. Otherwise I'm back to my initial request.

pfeerick commented 6 years ago

@dkebler I don't know if it is possible to download via the release page links, because as you point out, it re-directs, and curl grabs the redirect page instead. However, if you just want to grab the latest image (or even a specific one), you can use this script which is inspired by the install-to-emmc script.

It has some references to the rock64 in it as I originally knocked up a script for that, and then changed the bits I needed to make it work with the pine64. If you want the xenial-mate-pinebook image flagged as 'latest', just run it with 'xenial-mate-pinebook' as a parameter (ie. ./dl_latest_pine64_image.sh xenial-mate-pinebook). If you want a specific version, tack that on the end (ie. for the 0.7.14 version of 'xenial-mate-pinebook', the command would look like ./dl_latest_pine64_image.sh xenial-mate-pinebook 0.7.14).

Hope that gets it going for you.