[LINUX] One-line MyBB download/extract-er
#11
(2011-04-25, 04:19 PM)Dylan M. Wrote: wget is available on ALL *NIX boxes that I've seen, even if not installed. So its the most universal.

Indeed, I also never seen a *NIX box without it Toungue
But if you made it work for other download managers, you can always post it here Wink
Reply
#12
(2011-04-25, 06:08 PM)Aries-Belgium Wrote:
(2011-04-25, 04:19 PM)Dylan M. Wrote: wget is available on ALL *NIX boxes that I've seen, even if not installed. So its the most universal.

Indeed, I also never seen a *NIX box without it Toungue
But if you made it work for other download managers, you can always post it here Wink

I honestly haven't tried it, but I don't see why it wouldn't Wink
Reply
#13
Just for curiosity I just tried it with aria2 (aria2c command), and curl. Results:

aria2: Failure, there is a bug in my version of aria2 relating to Content-Disposition headers.
curl: Success

Working curl download line
curl http://www.mybb.com/download/latest -o mybb.zip && unzip mybb.zip "Upload/*" && mv Upload/* . && rm -Rf Upload mybb.zip && mv inc/config.default.php inc/config.php && chmod -R 0777 cache uploads inc/settings.php inc/config.php


On another note:
wget is available easily for Windoze too... too bad the full *NIX command line capabilities of BASH (or whatever your favorite shell is) and all the little utils we're using here (unzip, mv, rm, & chmod) aren't available for Windoze.
Reply
#14
Thanks for your variant. I added it to the first post of this thread Wink
Reply
#15
Here's the successful (once I updated aria2 from 1.9.0 to 1.11.1 [the bug was fixed in 1.9.3]) aria2 command as well:

Requires aria2 v1.9.3 or above
aria2c http://www.mybb.com/download/latest -o mybb.zip && unzip mybb.zip "Upload/*" && mv Upload/* . && rm -Rf Upload mybb.zip && mv inc/config.default.php inc/config.php && chmod -R 0777 cache uploads inc/settings.php inc/config.php

Notice aria and curl are exactly alike other than the command name.
Reply
#16
Added that as well Big Grin
Reply
#17
Since it was suggested.... lynx version Wink

This one took me a bit because I had to read the man pages on lynx before doing it.

lynx -crawl -dump http://www.mybb.com/download/latest > mybb.zip && unzip mybb.zip "Upload/*" && mv Upload/* . && rm -Rf Upload mybb.zip && mv inc/config.default.php inc/config.php && chmod -R 0777 cache uploads inc/settings.php inc/config.php
Reply
#18
LOL Big Grin Thanks Big Grin

Btw, can someone confirm that this also works on a Mac? I couldn't test that.
Reply
#19
Haha, nice work doing it with lynx Dylan. I've never been a lynx fan myself, but at least the option's there Toungue

BTW, I reckon it would be good to see these commands on the installation wiki page. Just so they're easy to find for new users.
Reply
#20
(2011-04-26, 07:06 AM)Aries-Belgium Wrote: LOL Big Grin Thanks Big Grin

Btw, can someone confirm that this also works on a Mac? I couldn't test that.

I deleted my Mac VM :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)