Ubuntu: Downloading Dropbox from terminal with wget makes command crash.-UBUNTU SERVER 12.04


I have downloaded Dropbox manually on many instances on Ubuntu systems.
Today I tried to use it on an Ubuntu 12.04 server edition, so I used the command wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" in my home directory.
The problem is, the command crashes, at the moment the message "HTTP request sent, awaiting response" is last shown, and starts throwing random characters on screen, until I force it to stop.
Any suggestions? Thank you in advance.
Note:I'm executing this through putty from a Windows OS.


That's because -O - tells wget to write the file content to stdout (your terminal) instead of saving it to a file.

The actual instructions at https://www.dropbox.com/install?os=lnx, say:


cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -  


cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -  

which has wget output the file contents (which is a gzipped tar archive) to a pipe with a tar command on the other end. And the tar is told to read a gzipped archive from stdin (-f -).

On a side-note, using the debian package is easier.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »