Ed_P wrote:Bogomips wrote:Updates
Sat Jul 1
Sat Jul 1 = 2017-07-01. Where is the 2017-07-01 change?

sesm.sh shows Last Update 2017-06-30.
[*]Script
sesm.shCode: Select all
#!/bin/bash
# sesm.sh Set the Slackware Miirors for usm Repos Bogomips 2017-06-13 19:33:50
# fasm.sh Adaptation by Bogomips to Set Fastest Slackware Repository Mirror 2017-06-07 21:35:10
# Last Update 2017-06-30 21:49:19 Comments; bad(): Output msgs + formatting
Now when looking for a program and come across one dated 2015, I'm reassured if there is a timestamp on page which says last updated 2017. Then know it's the latest version. So similarly, it is that after updating script a day or two may pass before getting time to finish the post. Once post completed, then update the updates entry. Consequently changed title from
Updates to
Updates Posted.
Ed_P wrote:Bogomips wrote:Cut Out can be made from
sesm.sh for the Script
fasm.sh that sets the Fastest Slackware Mirror for a Repo:
Code: Select all
sed "s/\s*sesm\s*().*/fasm \$*/;T;q" $g/sesm.sh > fasm.sh
guest@porteus:~$ bash fasm.sh
Argument usage: <Repository> [<Toggle Debug: 0/1>] [ URL .. ]
URL .. Optional Exclusion Mirror List on Command Line
Optional Exclusion File of URLs: .usm/badmirrors.txt (following format of 'mirrors-<repo>,txt')
Code: Select all
guest@porteus:~$ bash fasm.sh slacky
All Exclusion URLs:
Cmd Line URLs=0 File (.usm/badmirrors.txt) URLs=64 Merged(Unique) URLs=51
Done!
slacky mirror set to: http://slack.isper.sk/pub
Where is the .usm/ folder for the badmirrors.txt file referenced above suppose to be?
This brings us to the matter of choice, and I for one when trying something new or that I'm unfamiliar with do not like having too many choices. Like to be told do this, do this, and Bob's your uncle!
So in this matter the file can be anything you like, just have to edit script accordingly. Taking decision out of hands of user, have decided file should be badmirrors.txt in a directory .usm.
Helpful comments appreciated.

Updated post:
http://forum.porteus.org/viewtopic.php? ... 40e#p55999
BTW ran today with almost no overlap, resulting in much improved time:
Code: Select all
guest@porteus:~$ time sesm all http://slack.isper.sk/pub http://mirror.ovh.net/mirrors/ftp.slackware.com/ http://slackware.mirrorcatalogs.com/ http://mirror.internode.on.net/pub/slackware/
Exclusion URL Specified on Command Line:
http://slack.isper.sk/pub
http://mirror.ovh.net/mirrors/ftp.slackware.com/
http://slackware.mirrorcatalogs.com/
http://mirror.internode.on.net/pub/slackware/
All Exclusion URLs:
Cmd Line URLs=4 File (.usm/badmirrors.txt) URLs=64 Merged(Unique) URLs=67
SLACKWARE
Testing http://mirrors.ucr.ac.cr/slackware/pub/slackware/ 0.616820
Mirrors=152 Processed=32 Remaining=120
Testing ftp://ftp.tu-chemnitz.de/.SAN0/pub/linux/slackware/ 0.676709
Mirrors=152 Processed=46 Remaining=106
Testing ftp://patroklos.noc.ntua.gr/pub/linux/slackware/ 1.573209
Mirrors=152 Processed=56 Remaining=96
Testing http://taper.alienbase.nl/mirrors/slackware/ 0.401148
Mirrors=152 Processed=77 Remaining=75
Testing http://sunsite.icm.edu.pl/packages/linux-slackware/ 0.116343
Mirrors=152 Processed=89 Remaining=63
Testing ftp://ftp.mirrorservice.org/sites/ftp.slackware.com/pub/slackware/ 0.861712
Mirrors=152 Processed=119 Remaining=33
Testing ftp://slackware.mirrors.tds.net/pub/slackware/ 0.614798
Mirrors=152 Processed=145 Remaining=7
Done!
slackware mirror set to: ftp://hpc-mirror.usc.edu/pub/linux/distributions/slackware/
SLACKWAREPATCHES
Done!
slackwarepatches mirror set to: ftp://hpc-mirror.usc.edu/pub/linux/distributions/slackware/
SLACKY
Done!
slacky mirror set to: http://slackware.org.uk/slacky
SALIX
Testing http://download.salixos.org Fail
Mirrors=28 Processed=11 Remaining=17
Testing ftp://ftp.nluug.nl/pub/os/Linux/distr/salix 0.577518
Mirrors=28 Processed=19 Remaining=9
Testing ftp://mirrors.xmission.com/salix 2.207532
Mirrors=28 Processed=25 Remaining=3
Done!
salix mirror set to: http://ftp.nux.ipb.pt/dists/salix
ALIEN
Done!
alien mirror set to: http://bear.alienbase.nl/mirrors/people/alien/sbrepos
PONCE
Done!
ponce mirror set to: http://ponce.cc/slackware
SLACKONLY
Done!
slackonly mirror set to: http://packages.slackonly.com/pub/packages
SBO
Done!
sbo mirror set to: http://slackbuilds.org/slackbuilds
real 1m8.295s
user 0m2.307s
sys 0m1.008s
There is one thing however that is bugging me that only seems to occur with slackware, already happened more than a couple of times, but not with slackware patches: sesm run followed by usm update process
- 1st Update Attempt
Code: Select all
root@porteus:/home/guest# time usm -u all
Starting slackware database update
Downloading: vercheck.txt DONE
Downloading: CHECKSUMS.md5 DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT DONE
Downloading: LIBS.TXT.gz DONE
There was a problem downloading the file:
real 0m4.486s
user 0m0.687s
sys 0m0.919s
guest@porteus:~$ source crm.sh slackware
SLACKWARE
Mirror: ftp://hpc-mirror.usc.edu/pub/linux/distributions/slackware/
151 Commented Out
- 2nd Update Attempt
Code: Select all
guest@porteus:~$ source masm.sh slackware http://mirror.nl.leaseweb.net/slackware
Done!
slackware mirror set to: http://mirror.nl.leaseweb.net/slackware/
root@porteus:/home/guest# time usm -u all
Starting slackware database update
Downloading: vercheck.txt --> ^C
rm: cannot remove '/home/guest/p10/Por/tmp64/usm/vercheck.txt': No such file or directory
real 0m18.573s
user 0m0.534s
sys 0m0.286s
- Finally
Code: Select all
guest@porteus:~$ source masm.sh slackware http://ftp.nluug.nl/os/Linux/distr/slackware
Done!
slackware mirror set to: http://ftp.nluug.nl/os/Linux/distr/slackware/
root@porteus:/home/guest# time usm -u all
Starting slackware database update
...
Starting sbo database update
SLACKBUILDS.TXT.gz
Downloading: SLACKBUILDS.TXT.gz DONE
sbo database updated.
Downloading: extra-deps.txt DONE
Downloading: ignore-deps.txt DONE
real 1m54.067s
user 0m21.265s
sys 0m5.875s
[/list]
Need to make a trite script to Set Alternative Fast Mirror, code name:
safm.sh 8)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB