maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   simple file download (https://talk.maemo.org/showthread.php?t=5875)

Garfield360 2007-04-16 20:27

simple file download
 
Hi!

How can I download a single file froma URL? I've got a link and want to download this file. It is a videofile, which is opened by the mediaplayer, but it cant be played. But the format is supported. Possible with xTerminal?

Any suggestions?

TA-t3 2007-04-17 11:21

Re: simple file download
 
You should be able to just click it in the browser and store it to disk (an option menu should pop up).

Or from an xterm:
Check if 'curl' is installed. It's on mine, so it's probably in one of the common repositories.
Then: curl http://url/filename -o destination_path/filename
(if you cd to the destination path (e.g. SD card) then just -o filename)

There's also 'wget' which works as curl but you don't have to specify -o, just cd to target directory first. But you will have to hunt around a bit to find 'wget' (it's not on my N800)

vees 2007-04-17 12:36

Re: simple file download
 
the best download application I ever used is wget which I do not remember exactly where I got but from one of the repos listed here

Garfield360 2007-04-17 15:54

Re: simple file download
 
Hi

I've found wget, but now Ive got another problem... how can I cd to the SDcard?
Which path do the Cards have?

TA-t3 2007-04-17 16:14

Re: simple file download
 
In xterm, enter 'df -h'
You'll see several filesystems, including /media/mmc1/ and /media/mmc2/.
These are your SD cards (if you have two). /media/mmc1 is the external slot, mmc2 the internal one. 'df -h' will show the size of the filesystem, which is how I figured out which was which the first time (one of my cards is much larger than the other)

Garfield360 2007-04-17 16:50

Re: simple file download
 
Hi! Tahnk works perfectly! Is there any tutorial for xterm? Would like to get to know more about Linux and xterm etc..

vees 2007-04-18 01:44

Re: simple file download
 
Quote:

Originally Posted by Garfield360 (Post 44728)
Hi

I've found wget, but now Ive got another problem... how can I cd to the SDcard?
Which path do the Cards have?

All media in Debian is under, well, /media

and, /media/mmc1/ and /media/mmc2/ is where the cards are. Try the command 'mount' to get lots of info on all the mounted filesystems and their configuration.

HTH


All times are GMT. The time now is 20:10.

vBulletin® Version 3.8.8