Scripts to Automate Jigdo Download

Note on Tue May 13 17:38:31 CEST 2014:
There is, well, I hope that won't get scrapped, a git repo of this little set of scripts on my github page:
https://github.com/miroR/ However I encountered problems, and have to post the new version the old way here, it's different then the listing here, but the tarball is new.

It's probably most convenient to download jigdo-automate-scripts.tar.gz along with reading this page you're on.

This listing applies to old tarball: ../jigdo-automate-scripts_OLD.tar.gz which you probably don't need
README below is also old. Instructions have changed. All is in the new archive above. No more time. Sorry!

NameLast modified Size 

iso_check-del_02.sh2014-04-1001:372.5K 
jigdo-dl_01-jigdo-templ-t.sh2014-04-0915:272.5K 
jigdo-dl_02-mnt-t.sh2014-04-0915:28729 
jigdo-dl_03-dLo-SUMS.sh2014-04-0915:30331 
jigdo-dl_04-dLo-t.sh2014-04-0915:29810 
prep4iso_check-del.sh2014-04-1001:302.9K 
README2014-04-1003:074.7K 
run_CMD_02.sh2014-04-1001:512.0K 
SUMS2014-04-1003:15686 
SUMS.sig2014-04-1003:18543 

These are scripts to automate jigdo GNU/Debian Linux testing branch DVD iso files download.

The scripts are for AMD64 arch, modify them if your arch is different.

######### the Tips page where the discourse began: #################

Scripts to automate jigdo download
http://forums.debian.net/viewtopic.php?f=16&t=110503

##########################

Short instructions for the Willing and Able, Who Will not Blame Me at All if Anything Goes Wrong

Download my PGP key:

4FBAF0AE.asc typo corrected, link ok
 
4096R/4FBAF0AE 2014-01-16 Key fingerprint = FCF1 3245 ED24 7DCE 4438 55B7 EA98 8488 4FBA F0AE

Compare it with what you get with the command:

gpg --recv-key 0x4FBAF0AE

That command should only tell you that the key is already there, and maybe only import some new signatures.

Download into a separate empty directory, cd into that directory, verify against my PGP key:

gpg --verify SUMS.sig

If verification is successful, run:

sha256sum -c SUMS

If every file's sum is OK, run, read the README file, which for your convenience, is repeated here below:

After download of these in a single empty dir, where you have room enough
to download/for already (the previous week) downloaded jigdo ISO files, of
these:
run_CMD_02.sh
jigdo-dl_01-jigdo-templ-t.sh
jigdo-dl_02-mnt-t.sh
jigdo-dl_03-dLo-SUMS.sh
jigdo-dl_04-dLo-t.sh
iso_check-del_02.sh
prep4iso_check-del.sh
README

you can run:
$ chmod 755 *.sh

on them, to make them executable.

The only one that is best be moved in the /usr/local/bin/ is:

run_CMD_02.sh

because you can use it for many sorts of repetitive tasks.

Let's say that empty dir we mentioned at the top is /home/me/Debian/ (pls.
replace me with your username, such as that if your user name is ukrainian, you
get /home/ukrainian/Debian/.

Now create just the directory:
/home/me/Debian/Old/

and if you have the last week's or last month's jigdo testing ISO files, put
them in:
/home/me/Debian/Old/

Connect to internet (we who try and apply basic anti-surveillance to keep our
lives private from secret services wholesale unwarranted surveillance only
connect when we need, and don't keep online unnecessarily) now, and run, first:

./jigdo-dl_01-jigdo-templ-t.sh

which will get you all the templates (in case there is ISO 13 or later out
added, add a line that downloads it/them as well).

As root run:
./jigdo-dl_02-mnt-t.sh

It will mount the ISOs from the Old dir appropriately. You need to have a
kernel that can create sufficient number of loop devices. The Grsecurity
patched kernel that I occasionally post for download on www.CroatiaFidelis.hr
is adequately configured in that respect as well. Pls., again see my
tip/tutorial on forums.debian.net "Grsecurity/Pax installation on Debian
GNU/Linux", again, if I'm not kicked out for my strong criticism for their
inadequate/false protection of users wrt freedom/privacy which is only achieved
through genuine security.

This, then:

./jigdo-dl_03-dLo-SUMS.sh

will download the checksums. We'll use just MD5SUMS. The sums are anyway not
digitally signed by Debian Engineering Team, so why complicate when nothing to
really verify the GNU Privacy Guard way. Great if GNU/Linux Debian team decided
to digitally sign the weekly sums from some time to come, I wish!

./jigdo-dl_04-dLo-t.sh

here apply instructions that come with Jigdo, there are docs and faqs related.

You don't need to run prep4iso_check-del.sh. It will be called by
iso_check-del_02.sh.

But now you will put to real use the simplest of the script that you moved into
/usr/local/bin

Here's a possible command you can decide for:

As root:
run_CMD_02.sh 10000 30 ./iso_check-del_02.sh

It should check the ISO file that you downloaded and if the md5 is correct,
overwrite the old file in Old/ of which that ISO is the updated edition, and
it should do so for all the (in April 2014) twelve ISO files, and it will do
so unattended. BUT READ THE WARNING BELOW.

I'm not responsible it it doesn't. It works most of the time for me, but there
I could have introduced errors that I couldn't found all out in this newly
just revamped set of jigdo-automate-scripts.

USE AT YOUR OWN RISK.

Pls. refer to my Tips page Scripts to Automate Jigdo Downloads on
forums.debian.net
##########################################################
And pls. report there if anyhing is wrong with the script!
##########################################################

And I hope the Debian people keep patient with me, as they have mostly shown to
be so far, so I won't repeat the ifs again.

Only this one if begs repeating. I do live in a country gone to the worst
killers of WWII progenie, the Tito's partisans killers' children rule in my
country's Croatia, and are unbelievably strongly and fast allying themselves
to the worst haters and killers of Croats in the WWII that have risen to power
in Serbia, the Chetniks' progenie who even formally tout that name.

I am not safe in my country. If you don't hear/read from me (you could have
heard from me as I used to tape my voiceover in English in many of the over 500
--five hundred-- videos that I posted on Youtube through some five years
time)... 

If you don't hear from me in time longer then a few weeks or one, hardly two
months, don't believe any simplistic explanation that might be proposed. They
kill investigative journalists in the U.S. (Michael Hastings), and you think
that Tito's worst killers' children are nice with rightwings like me?

Thank you for bearing up with me. Don't forget my story!

Miroslav Rovis
www.CroatiaFidelis.hr
www.youtube.com/user/miroR2 terminated since April 2014
www.exDeo.com
Vankina 4
10000 Zagreb
+385 (0)1 660 2633	but you could only reach me if UDBA allows your
+385 (0)91 266 0202 	 call through. They're getting really sick for control.

A few Remarks Are Necessary

As you can probably see if you try to access:
Al Jazeera, Clashes on the Eve of EU Referendum, Francišković et. Al HRVATSKO
https://www.youtube.com/watch?v=_dX-ek2mPaU
or my Youtube account that I had:
https://www.youtube.com/user/miroR2
 
you will probably see some... falsity... and no account at all

Here's my reply to Google, that I also stuck in some of my scripts (just pasting over):

# free under terms of GNU GPL 3 or later
# www.CroatiaFidelis.hr, the NGO founded by Miroslav Rovis, the NGO and
# my name is to be left in here even if the traitor Regime in Croatia were to
# strike me as they struck my friends Tomislav Dragun and Marko Francišković
# (persecuted and tortured).
# God forbid, but I won't keep silent on their plight like the half-hearted
# majority and, like them, save only my skin, for time fleeting.
# Very tellingly, it came to pass, beginning of April 2014, that, under
# invented "copyright breaches", obviously at the request and behest of the
# said traitors, the world's Surveillance Engine removed my Youtube account,
# with all the work of some five years of my life, most the videos none
# whatsoever possibility to in any way breach any copyrights, since are mine
# and my friends' own filming, while others with permission by holders, and yet
# others in public domain, such as news and public events, at max public TV
# documentaries. Shame on you lier bully Google! Can you tell, you lier bully
# Google, that I ever, ever got any money whatsoever from anything,
# whichsoever, that I posted on your, now yours, like so much of the world,
# just take care not to drown in money and possessions, take good good care...
# from what I posted on now your Youtube? Ever? Any?

Once I sort the problems which I have with the mail, I'll use this address again:

miro.rovis at croatiafidelis.hr

Miroslav Rovis
Zagreb, Vankina 4, Croatia
+385 (0)1 660 26 33
+385 (0)91 266 02 02

Needless the following reminding is for those visitors of this page who would understand it anyway (the fewer), but necessary reminding this is for most of the visitors, the majority of whom, the majority of these that do need to be reminded, won't completely understand it even after they've just read it next:
you can only really reach me via any of these means of communications if the "UDBA" (the minute NSA of Croatia, for lack of quicker short explanation) operative allows you through.

It should still go without saying for still really most of the users, that if this and other pages I don't update for too many weeks to come (two or three weeks intervals is almost the norm with the oldish Miro (pronounciation: Meero), but not many more weeks), something possibly happened to me as well...