Download 13.2 iso when it appears in the repo.

Hi all,
I know most of you already have the iso for 13.2 but for the rest of us that do not have the iso here is an example of downloading it without user intervention. ( i hope )

First you need to start the atd daemon if it is not running.
Run the command as root or using your favorite sudo utility.

systemctl start atd.service

Install ariac2 if it is not installed.

zypper in aria2c

As a normal user download the script

curl -s http://paste.opensuse.org/view/raw/46748854 > "$HOME/bin/myscript"

Make it executable

chmod u+x "$HOME/bin/myscript

Check http://counter.opensuse.org and adjust the time according to your time zone.

at -f "$HOME/bin/myscript" now +10 hours

That at command will run myscript 10 hours from now, it is wise not make the exact time for release since the script itself will continue to check the availability of the iso in the repo ( assuming my repo link for the iso is correct though :slight_smile: ) give it an hour advance ie if the release is in 10 hours give it 9 hours.

The script will create a directory in ~/Downloads and will put that iso in that directory.
You can check the progress once it is started by running tail on the logfile

tail -f "$HOME/13.2/log.txt"

For KDE users a dialog box should appear on the Desktop once the dowload is done. I know some torrent client can do what i am trying to achieve but i use aria2c to download the iso. Also since it is a one time run only i did not use cron for the job.

I hope some folks might find it useful.

Actually, I think most people don’t have it.

Apparently forum moderators were given an early download link.

People who were monitoring OpenQA and made a good guess might have found the link.

Most people here are in neither of those categories.

… but for the rest of us that do not have the iso here is an example of downloading it without user intervention.

LOL.

I’ll just start a download manually. I don’t need to automate it.

> I’ll just start a download manually. I don’t need to automate it.

Well the rest of us does not have time to check every minute/hour if the iso is already available, or if the release will be 01:00 in the morning in your timezone.
Lucky you i guess :wink:

If I’m not available to start the download, then I’m also not available to make use of it after downloading. And I’ll have plenty of other things to do in the period between downloading and using the downloaded iso.

On my laptop, I’ll need to first backup then repartition, because my “/boot” is a bit on the small side.

And if I’m a day late downloading – well, life goes on.

Do you really NEED it the moment it is released. LOL So sad :stuck_out_tongue: Have to have the shinny shinny rotfl!

Yep. Same here. No need to try to download it the instant it comes out, it can wait a half day or a day or two.:wink:

Besides, if everybody were to automate it to the same time-frame, it would probably bog the servers down drastically.:\

yes i do need it. shinny shinny rotfl!

And sorry if i have offended some of you with my script, shinny shinny …

On 2014-11-04 06:36, Fraser Bell wrote:
>
> nrickert;2672704 Wrote:
>>
>> LOL.

LOL, yes. I do like the idea, if only for the shake of using “at” for
something useful :slight_smile:

>> I’ll just start a download manually. I don’t need to automate it.
>
> Yep. Same here. No need to try to download it the instant it comes
> out, it can wait a half day or a day or two.:wink:

It takes two days at least, for me to complete the download, with my
internet connection.

> Besides, if everybody were to automate it to the same time-frame, it
> would probably bog the servers down drastically.:\

They should be prepared :stuck_out_tongue:


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

On 11/03/2014 10:26 PM, nrickert wrote:
>
> If I’m not available to start the download, then I’m also not available
> to make use of it after downloading. And I’ll have plenty of other
> things to do in the period between downloading and using the downloaded
> iso.
>
> On my laptop, I’ll need to first backup then repartition, because my
> “/boot” is a bit on the small side.
>
> And if I’m a day late downloading – well, life goes on.
>
>

+1

Ken

You haven’t, I think…

Cool script. But, there is always the need to poke fun, correct? >:)

I don’t think you have offended anyone. Some of us just don’t share your sense of urgency.

Note to self:

Keep your “sense of urgency” to your self next time…

On 2014-11-05 09:46, jetchisel wrote:
>
> Note to self:
>
> Keep your “sense of urgency” to your self next time…

I would have tried your script or method if I had seen it in time, just
for fun. No urgency, just fun.

(Downloading at 10 KB/S here)


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)