0

I've got a linode(it's in Tokyo), it's usually faster to download files to the linode and then copy it to my computer via ssh than I download the files directly, this is what I used to do:

ssh linode
wget http://xxxxxxxx.zip
exit
scp linode:~/xxxxx.zip ./

Now I'm wondering is it possible to start transfer part of the file to my computer while linode is still downloading the rest?

wong2
  • 1
  • 1
  • You might try `ssh linode "wget -c http://dlfkjldkj.com/files/software.zip -O -" >> ./software.zip` – Jodie C Apr 22 '12 at 01:41

2 Answers2

1

I've never actually completely implemented a Squid server before, but I came close near April 1st when I tried to implement the famous Upside Down Ternet for April Fools (stopped because I got really sick and ran out of time).

If it were me, I would look into doing something very similar: install Squid onto the server, route your internet through that server (or at least for particular URLs) and then use a script to download the file(s) onto the server automatically when you request them from your computer, and push them through the server and down to you (the client).

That's a bunch of theory that I unfortunately can't backup with lots of experience. But good luck!

Here's a couple resources on Squid to get you started:
http://www.squid-cache.org/
http://en.wikipedia.org/wiki/Squid_(software)

David W
  • 3,453
  • 5
  • 36
  • 62
1

You could proxy your HTTP requests from your local machine to your remote linode server by means of an SSH tunnel. It's pretty easy to do and these links should get you started.

The tutorials mention using Firefox, but you can use any SOCKS aware application.

leftcase
  • 710
  • 3
  • 10
  • 18