Language Selection

English French German Italian Portuguese Spanish

Timed downloads

Filed under
Software
Ubuntu
HowTos

For quite some time I've been looking for a tool to download a list of files (stored in a text file) at a certain time and, if possible, shutdown after completion. Unfortunately there is no know Linux-application that can perform these tasks. Although I recently found one that comes very close. It's called Receiver and you can find it here: http://www.halogenware.com/software/retriever.html. At first sight it suited all my needs, but it failed in downloading files hosted by RapidShare.

Then I got the idea to combine the use of Wget, a terminal download manager, with that of a scheduler. Is used this one: http://www.alarm-clock.pl. Alarm Clock is quite handy because it let's you to perform shell scripts that get initiated at a chosen time. Below you will find a guide how I set it up.

1.Install Alarm Clock (it's in the Ubuntu-repository). Wget is installed by default.

2.If you also own a RapidShare-account, you need to download a cookie to work with Wget by opening a terminal window en type the following. (You need to fill in, of course, your username and password. The cookie will be saved in your home directory under ~/.cookies. If you don't own an account you can skip this step.)

wget \
--save-cookies ~/.cookies/rapidshare \
--post-data "login=USERNAME&password=PASSWORD" \
-O - \
https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi \
> /dev/null

3.You need to change the permissions of the shutdown command, otherwise you will have to provide you password. You can do this by typing this into a terminal.

sudo chmod u+s /sbin/shutdown

4.Open Alarm Clock and choose Birthday & Templates under the Edit menu and choose to enter a new template. I named it Downloads.

5.Fill in the necessary standard settings (they quite speak for themselves so I won't elaborate on this).

6.Then, under the Notifications tab you mark Run command and click on the Preferences button next to it.

7.In the next dialog: choose to run a shell script and type the following in the box below.

cd ~/Downloads
wget --input-file=down.txt --load-cookies=~/.cookies/rapidshare
shutdown -P now

You need to know that in this example I use the file down.txt to store the links I wish to download and ~/Downloads to story everything in. If you prefer other settings, just change the arguments accordingly. Quite obviously you don't have to mention the cookie argument if you don't have one.

That's it. Now only fill a text files with download links and create a new alarm using the template!

By Steven Van Landeghem

More in Tux Machines

Fedora-Based Qubes OS 3.0 Release Candidate 1 Linux Distro Now Available for Testing

Joanna Rutkowska announced the immediate availability for download and testing of the first Release Candidate version of the forthcoming Qubes OS 3.0 computer operating system based on the Fedora Linux distribution. Read more

Debian GNU/Linux 9.0 Will Be Named Stretch

On April 26, the Debian Release Team, through Niels Thykier, announced that the next major release of the acclaimed Debian GNU/Linux computer operating system will be named Stretch. Read more

Linux 4.1-rc1

It's been a normal merge window, and I'm releasing according to the normal schedule. The few days of travel didn't seem to matter, as I had internet access at all times. The merge window is pretty normal in terms of what got merged too. Just eyeballing the size, it looks like this is going to fit right in - while 4.0 was a bit smaller than usual, 4.1 seems to be smack dab in the middle of the normal range for the last couple of years. And all the patch statistics look normal as well: the bulk of the changes are to drivers (just under 60% of the patch), with arch updates being about 20% of it all, and the rest is spread all over. No earth-shattering new features come to mind, even if initial support for ACPI on arm64 looks funny. Depending on what you care about, your notion of "big new feature" may differ from mine, of course. There's a lot of work all over, and some of it might just make a big difference to your use cases. So go out and test. Even -rc1, as raw as it may sometimes be, has tended to be pretty good. It's not that scary. Promise. Read more

Quad-core ARM TV-PC dual boots Android and Ubuntu

Ugoos launched a $179 “UT3S” TV-PC that dual boots Android 4.4 and Ubuntu 14.10 on a 1.8GHz quad-core Cortex-A17 Rockchip RK3288, and supports 4Kx2K video. Finding a media player or mini-PC that runs Android is easy, but finding one that ships with other species of Linux pre-installed is a bit trickier. Now Ugoos has released a TV-focused Ugoos UT3S mini-PC that can run either Android 4.4 or Ubuntu 14.10 in dual-boot mode. Whereas Ugoos’s earlier Android-based UM2 stick-PC and UT2 mini-PC used the quad-core, Cortex-A9 Rockchip RK3188 SoC clocked to 1.6GHz, the UT3S moves up to the quad-core, Cortex-A17 RK3288 at 1.8GHz. The RK3288, which ships with ARM’s Mali-T764 GPU, is also found in new Android media players including the Tronsmart Orion R28. Read more