Online storage with ability of direct download? (Solved)
Moderator: Forum moderators
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Online storage with ability of direct download? (Solved)
I'm currently working on some different programs for Puppy. To get them working properly together I would need an online storage offering the ability to download directly from that storage without the need to open a browser and go to the page. My Google drive account doesn't offer such ability. The online storage also should not force others to register to download a file by a given link.
Just using the Puppy download_file script.
E.g. download_file CompleteLinkToFileHere.
Any suggestions, that will work with almost long term service?
Thanks in advance.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Online storage with ability of direct download?
It seems that archive.org has ability of direct downloads without to use browser and to go to the page.
For some years I do have an account at archive.org, which I do forget from time to time.
I think this will fit my needs.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- p310don
- Posts: 357
- Joined: Tue Dec 03, 2019 7:17 am
- Location: Brisbane, Australia
- Has thanked: 72 times
- Been thanked: 103 times
Re: Online storage with ability of direct download?
viewtopic.php?f=85&t=616
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Online storage with ability of direct download?
I don't need automation scripts to be setup first by myself and anyone else user to get direct access to my files!
I need online storage which lets me download directly without the need to visit the page via the browser and which would let anyone else with the link download directly without the need to visit the page via the browser!
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- peebee
- Posts: 1637
- Joined: Mon Jul 13, 2020 10:54 am
- Location: Worcestershire, UK
- Has thanked: 157 times
- Been thanked: 714 times
- Contact:
Re: Online storage with ability of direct download?
Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels
Re: Online storage with ability of direct download?
Code: Select all
# https://drive.google.com/file/d/1WzYtLXX2_kFcUFn7Ogi3vxaSDD2hNgXJ/view?usp=sharing
fileId=1WzYtLXX2_kFcUFn7Ogi3vxaSDD2hNgXJ
fileName=initrd
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=${fileId}" > /dev/null
code="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${code}&id=${fileId}" -o ${fileName}
Basically after you've uploaded and shared a file, note the filename and its 'share link' and extract the file id value from that share link and set those as the first two values.
Works for larger files. With smaller files it works, but can create duplicate copies (so you have to do some housekeeping after download).
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Online storage with ability of direct download?
Great idea!
You'll pay for the website and data transfer etc.pp.?
I don't have that much money.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- Wiz57
- Moderator
- Posts: 596
- Joined: Fri Dec 13, 2019 3:54 pm
- Location: Chickasha, OK USA
- Has thanked: 78 times
- Been thanked: 122 times
Re: Online storage with ability of direct download?
I've used Onedrive, even though it is from Microsoft (I've had it a LONG LONG time), don't think others
need to login to download a file if you place them in the "public" folder, with appropriate sharing set.
If you want to test the download with no login, try my link here :
viewtopic.php?f=2&t=791&start=30
The file is an old ISO of 01Micko's Slacko 5.6.4 non-PAE. You should not have to login to download it.
Wiz
Signature available upon request
- garnet
- Posts: 66
- Joined: Tue Aug 04, 2020 2:21 pm
- Location: Alexandria
- Has thanked: 6 times
- Been thanked: 12 times
Re: Online storage with ability of direct download?
You're very funny ^_^
It's your project, why should I or anyone else pay for it? ^_^
Well, some of these web hosting services have monthly costs that are literally less than a cup of coffee in a developed country. If you really cannot even afford a cup of coffee, then I'm really sorry about your situation.I don't have that much money.
Hope that helps ^_^
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Online storage with ability of direct download?
If I could spent the money for my own web-server and file-hosting, I would not asking for online service.
Also, the problem is not the cost of the file hosting. The problem is the cost of the data transfer, which could increase very much when lots of huge files are downloaded. I had once my own website with space to store and to download files from. I had to stop that because of too many files downloaded, so I couldn't pay such huge sums of money anymore.
Do you have something useful to distribute here and/or on the forum in general, or are you just annoying by your comments?
I'm just asking, since I have seen lots of such annoying comments of yours lately on the forum.
Edit:
As I wrote, I have an account at archive.org, which seems to fit my needs. Solved.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: (Solved) Online storage with ability of direct download?
Hi.Wiz57 wrote: ↑Mon Oct 05, 2020 2:28 pm Hiya taersh,
I've used Onedrive, even though it is from Microsoft (I've had it a LONG LONG time), don't think others
need to login to download a file if you place them in the "public" folder, with appropriate sharing set.
If you want to test the download with no login, try my link here :
viewtopic.php?f=2&t=791&start=30
The file is an old ISO of 01Micko's Slacko 5.6.4 non-PAE. You should not have to login to download it.
Wiz
I want user to be able to download files using the download file in Puppy: download_file LinkHere. This works on archive.org.
I've tried your link:
Code: Select all
download_file https://1drv.ms/u/s!Ao-_qqv5iz91gS_gcmdsww-w_VOj?e=sgeHCr
Code: Select all
root#
root# download_file https://1drv.ms/u/s!Ao-_qqv5iz91gS_gcmdsww-w_VOj?e=sgeHCr
bash: !Ao: event not found
root#
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- Wiz57
- Moderator
- Posts: 596
- Joined: Fri Dec 13, 2019 3:54 pm
- Location: Chickasha, OK USA
- Has thanked: 78 times
- Been thanked: 122 times
Re: (Solved) Online storage with ability of direct download?
Hmm, I wonder if this failure has something to do with TLS, SSL or other security settingstaersh wrote: ↑Mon Oct 05, 2020 4:21 pmHi.Wiz57 wrote: ↑Mon Oct 05, 2020 2:28 pm Hiya taersh,
I've used Onedrive, even though it is from Microsoft (I've had it a LONG LONG time), don't think others
need to login to download a file if you place them in the "public" folder, with appropriate sharing set.
If you want to test the download with no login, try my link here :
viewtopic.php?f=2&t=791&start=30
The file is an old ISO of 01Micko's Slacko 5.6.4 non-PAE. You should not have to login to download it.
Wiz
I want user to be able to download files using the download file in Puppy: download_file LinkHere. This works on archive.org.
I've tried your link:
Doesn't work.Code: Select all
download_file https://1drv.ms/u/s!Ao-_qqv5iz91gS_gcmdsww-w_VOj?e=sgeHCr
Code: Select all
root# root# download_file https://1drv.ms/u/s!Ao-_qqv5iz91gS_gcmdsww-w_VOj?e=sgeHCr bash: !Ao: event not found root#
that are available in most up-to-date web browsers but not in/accessible via bash??
Seems there was a topic here on the forums asking about something similar...but in my
ineptitude I can't find it now!
I just tried my link in Palemoon 28.14.2 32 bit not logged into Onedrive, the download
started as I intended, though it took a bit of time. I did notice that the web page containing
my Public folder had to load first, status line at bottom showed TLS handshakes, etc
occuring.
Wiz
Signature available upon request
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: (Solved) Online storage with ability of direct download?
Archive.org seems to work fin for my purpose.
I tested it yesterday by trying to download my VSP Puppy via Puppy script download_file.
Code: Select all
download_file https://archive.org/download/Puppy_Linux_VSP/VSP-Lucid-2013-01-20.iso
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
Re: (Solved) Online storage with ability of direct download?
The bash/sh/ash shell treats certain characters as special characters.root# download_file https://1drv.ms/u/s!Ao-_qqv5iz91gS_gcmd ... j?e=sgeHCr
bash: !Ao: event not found
For example, ! will execute a command in the bash history.
!137 will execute line number 137, whatever it is.
!cat will execute the last command in history beginning with "cat"
In this case, you need to put the url address in single quotes
or escape the ! character by putting a \ character before the ! character.
That is, change "!" to "\!"
It should download if you escape the special shell characters.
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: (Solved) Online storage with ability of direct download?
Tested both suggestions Single Quotes and Escape.
Doesn't work. The test for file existing failed from download_file script.
Tested again on archive.org using a fresh uploaded test file: WORKS pretty good.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- garnet
- Posts: 66
- Joined: Tue Aug 04, 2020 2:21 pm
- Location: Alexandria
- Has thanked: 6 times
- Been thanked: 12 times
Re: Online storage with ability of direct download?
You must be very fun at parties ^_^
A very useful background information, thanks ^_^If I could spent the money for my own web-server and file-hosting, I would not asking for online service.
Also, the problem is not the cost of the file hosting. The problem is the cost of the data transfer, which could increase very much when lots of huge files are downloaded. I had once my own website with space to store and to download files from. I had to stop that because of too many files downloaded, so I couldn't pay such huge sums of money anymore.
Something that nobody would ever know unless they're mind readers. It would have been helpful to provide this "little details" on your first post, so silly people like me doesn't try to offer such silly advices that involve you paying for things that you want (even if it only costs a cup of coffee).
By the way, I still stands by what I wrote. I don't know when you had your websites, or which provider you used, or how much "huge sums" you have paid before; but as of today, there are plenty of "cup of coffee" providers with "unlimited" data transfer, and those who aren't unlimited, usually has a monthly cap and if you exceed that cap, they simply cut off the network until next month, instead of charging you, so you will never be charged "huge sums".
I don't know that "contribution" is a requirement before one is allowed to comment? I certainly didn't see that anywhere in the terms and conditions when I registered, nor do I see this as a requirement to participate in this section, or this thread O_oDo you have something useful to distribute here and/or on the forum in general, or are you just annoying by your comments?
How do you measure contribution, anyway? By uploading stuff? By helping? Or by calling other people who are trying to help you "annoying" just because you don't like their suggestions? ^_^
A friend told me that this forum is the most friendliest Linux forum on the planet, so I thought I'd come and see. So far this has been true - most exchanges I had have been very pleasant.I'm just asking, since I have seen lots of such annoying comments of yours lately on the forum.
I don't know how I ruffled your feathers for trying to help you, and which ones of my "lots of comments" (in threads which you aren't even "contributing"?) are annoying you O_o
You are the first ever person in this forum who says I'm annoying. That's quite an honor ^_^
As I said, you must be quite fun at parties ^_^
I'm happy for you ^_^Edit:
As I wrote, I have an account at archive.org, which seems to fit my needs. Solved.
Hope that helps ^_^
- garnet
- Posts: 66
- Joined: Tue Aug 04, 2020 2:21 pm
- Location: Alexandria
- Has thanked: 6 times
- Been thanked: 12 times
Re: (Solved) Online storage with ability of direct download?
When I did this with wget, I ended up downloading an HTML file.
Code: Select all
# set +H
# wget -q "https://1drv.ms/u/s!Ao-_qqv5iz91gS_gcmdsww-w_VOj?e=sgeHCr"
# file s\!Ao-_qqv5iz91gS_gcmdsww-w_VOj\?e\=sgeHCr
s!Ao-_qqv5iz91gS_gcmdsww-w_VOj?e=sgeHCr: HTML document, ASCII text, with very long lines, with CRLF, LF line terminators
Hope that helps ^_^
Re: Online storage with ability of direct download? (Solved)
Each repo has 1GB limit, you can have as many repos as you like..
You can also use something called "git-lfs" (git large file storage) to store even bigger things..
Or Gitlab.. Very similar to GitHub..
Re: Online storage with ability of direct download? (Solved)
I saw in the original post that the error message was showing that some of the characters in the url needed escaping or to be put in single quotes.When I did this with wget, I ended up downloading an HTML file.
So it doesn't seem to work?
But that url, when the bash special characters are properly escaped, still doesn't work with wget, because the url is intended to work using javascript, in a web browser. So, no, that url won't work with wget, even if the url is escaped properly. I did not check that it did work properly, which I should have done. What I did do, was point out the problem with bash special characters.
- garnet
- Posts: 66
- Joined: Tue Aug 04, 2020 2:21 pm
- Location: Alexandria
- Has thanked: 6 times
- Been thanked: 12 times
Re: Online storage with ability of direct download? (Solved)
Hope that helps ^_^