Author Topic: [SOLVED]Question About Repositories & Finding The Closest Location.  (Read 2681 times)

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5335
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Question About Repositories & Finding The Closest Location.
« Reply #15 on: November 21, 2011, 01:42:17 PM »
Or
PC->Software Center->Update Package Sources List

Terry.



I don't appear to have this on my system (fully up to date). Where do I find it / get it?

It will only show up there if it is installed on your system.  The program "apt-sources-update" seems to have disappeared from the repos.




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Question About Repositories & Finding The Closest Location.
« Reply #16 on: November 21, 2011, 02:07:49 PM »
I wasn't aware that it had been pulled.     

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5335
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Question About Repositories & Finding The Closest Location.
« Reply #17 on: November 21, 2011, 02:16:37 PM »
I wasn't aware that it had been pulled.     


Doing a search I found this about it

http://www.pclinuxos.com/forum/index.php/topic,93723.0.html

Note the post from Texstar





Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5335
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Question About Repositories & Finding The Closest Location.
« Reply #18 on: November 21, 2011, 02:20:01 PM »
PcLOSHead,

    Since we have now found out that the speed test has been pulled from the repositories can you please modify your fist post and add [SOLVED] to the subject line.




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Question About Repositories & Finding The Closest Location.
« Reply #19 on: November 21, 2011, 02:39:16 PM »
Looking into the missing repo speed test with travisN000. This may take a bit of time.     

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Question About Repositories & Finding The Closest Location.
« Reply #20 on: November 21, 2011, 05:55:16 PM »
Looking into the missing repo speed test with travisN000. This may take a bit of time.     


There has been some work around from Leiche, unfortunately the result wasn't the one expected ... lack of precision depending on speed connection ... therefore wrong repos reported as fastest while they really aren't ...

http://www.pclinuxos.com/forum/index.php/topic,94406.msg802513.html#msg802513

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: [SOLVED]Question About Repositories & Finding The Closest Location.
« Reply #21 on: November 22, 2011, 09:01:55 AM »
The repo speed test application ranked the software repositories according the the current network conditions at the time the test was run using a predefined, identical download test for each of them.  Server admins will and do shape the way servers handle traffic by various load balancing and traffic throttling mechanisms, and download speeds are also affected by other network bottlenecks and traffic shaping mechanisms by other servers along the way.  This is something that no amount of scripting can account for.  Leiche tried to make the test more reliable by allowing users the option to select a package of varying sized depending on their expected connection speeds; while this may yield better results for some, it does not address the underlying causes of varied results discussed in the threads linked to here.

The repo speed test / apt-sources update application is not a perfect test, but simply a tool to help users, over time, to measure the response of servers from their physical location and make educated choices about the software repositories they choose to use.  As with many things in life, the experience gained at one point in time is not necessarily representative of the results you will get at all points in time and with all items you download.  Some repetition of the test over time and thoughtful observation by the user is required to find the repo that will work the fastest, consistently, for the PC / location it is being run from.

That being said, I don't think the tool is as useless as Old-Polack would indicate in his comments around the forum.  I suppose I could rewrite the application to test every server with multiple downloads of varying sizes at multiple times per day and days per week, and probably come up with a ranking that is more representative of averages, but that was not the purpose of the test; the test was meant to give information quickly, about what is happening with the repos at the most important point in time... now.

I will go ahead and update / test the script to be sure it is functioning as intended before sending it back to Tex in the next few days; however, I would encourage people to use it in the context of its purpose.  It is a simple test with simple intentions; it is not an all-seeing oracle that can see into the past or predict the future, near or distant.

 ;D
 
« Last Edit: November 22, 2011, 11:07:10 AM by travisN000 »

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: [SOLVED]Question About Repositories & Finding The Closest Location.
« Reply #22 on: November 26, 2011, 09:16:49 PM »
I have an updated apt-sources-update script that is ready for testing..

It should work equally well with 32/64 bit systems.  I also added some extra logic to Leiche's bandwidth options, so that there is no longer a check on the repo age when using the "high speed" / large file option to run the test; it will still check the age of the repo when using the slow and medium settings, as that test uses a package list file who's age matches the date of the last update to that repo.

It also uses some new logic to "deduce" which repo's also have megagames, so you can now pick a closer repo for this as well (..sorry, no speed ranking on these, but if you paid attention they were tested in a previous step ;))

Here is the link:  http://minus.com/m7pxMUMLY#1f

Note that this requires zenity, curl, and probably a few other items that are most likely already installed on your system.  

If you find any problems (or no problems), please report back with info about the desktop environment, 32 or 64 bit, and a description of the error and how it can be recreated.

Thanks!
« Last Edit: November 27, 2011, 08:18:42 AM by travisN000 »

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: [SOLVED]Question About Repositories & Finding The Closest Location.
« Reply #23 on: November 27, 2011, 09:22:51 AM »
After running a few updates, I was getting the problems melodie had previously reported with the failing of kdesu to launch synaptic in the current x session.  Because this seems to be a recurring problem, I have gone ahead and updated the script to only use ktsuss, as it seems to work when others fail...  ktsuss is now a requirement of the script

..download link is the same: http://minus.com/m7pxMUMLY#1f

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: [SOLVED]Question About Repositories & Finding The Closest Location.
« Reply #24 on: November 28, 2011, 02:45:43 PM »
After running a few updates, I was getting the problems melodie had previously reported with the failing of kdesu to launch synaptic in the current x session.  Because this seems to be a recurring problem, I have gone ahead and updated the script to only use ktsuss, as it seems to work when others fail...  ktsuss is now a requirement of the script

..download link is the same: http://minus.com/m7pxMUMLY#1f


Hi,
This is good, ktuss is light and works well. Maybe should I go to request packages ? There is a new version for ktuss here, which I have been testing too for a little more than one week...

While I am here, what apt-sources-update version number do I have to write in the header ? I seem not to remember and poedit yells at me with errors about the line number 7 which is not filled...

Thank you for this new apt-sources-update !

Regards,
Mélodie
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: [SOLVED]Question About Repositories & Finding The Closest Location.
« Reply #25 on: December 01, 2011, 07:13:22 PM »
Hi Melodie-

I don't know much about the translation process, but here is what Leiche's .po file has in its header:
Quote
# German translations for PACKAGE package.
# Copyright (C) 2011 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Daniel <-removed-@gmail.com>, 2011.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-11-27 11:42+0100\n"
"PO-Revision-Date: 2011-11-27 12:10+0100\n"
"Last-Translator: D.M-Wilhelm (Leiche) <-removed-@gmail.com>\n"
"Language-Team: German\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"



It looks like he left it with a generic "PACKAGE" and "VERSION"...   ...the script is going to be apt-sources-update version 0.3.2


Also,  I created a new .pot file, as I had made some small changes to the script before I knew Leiche was going to start translating.  :o

http://minus.com/m7pxMUMLY#2f

If anyone else wants to send me translations now would be a good time!  ;D


EDIT:
There is also some text in the package spec file that could use translation (format as below):

Quote
Summary:        Utility for optimizing PCLinuxOS repository sources.list
Summary(de):   Tool zum optimieren der PCLinuxOS Paketquellen



Quote
%description
%{name} is a utility that will download the latest PCLinuxOS apt
sources.list from the main ibiblio server, verify that they
have been recently synced to the ibiblio server, and test
all updated repositories for download speed.

Once testing is completed the user will be given a speed
rated list of repositories from which they can select a
default repository to use for future software needs.

#german
%description -l de
Dieses Element wird verwendet, um eine Liste der aktuellen offiziellen
Repositories für PCLinuxOS herunterzuladen, dann jedes Repository für
beides, Konnektivität sowie für die Netzwerkgeschwindigkeit jeder
Repository-Verbindung über das Internet zu testen.




Quote
Name=Update Package Sources List
Name[de]=Paketquellen Liste aktualisieren



Quote
Comment=%{summary}
Comment[da]=Værktøj til optimering af PCLinuxOS apt sources.list
Comment[de]=Tool zum optimieren der PCLinuxOS Paketquellen



 ;D


« Last Edit: December 01, 2011, 07:17:52 PM by travisN000 »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: [SOLVED]Question About Repositories & Finding The Closest Location.
« Reply #26 on: December 01, 2011, 09:21:16 PM »
travisN000,

I don't know if you're still looking for feedback on this or not. I downloaded the bash script from here and ran it as a regular user. This was on an LXDE desktop, 32bit, updated as of today. I was never prompted to run as root. The script finished, but wrote no changes. ktsuss and kdialog are not installed.

Code: [Select]
darrel@AMD64:  34 items 684Mb -> which ktsuss
which: no ktsuss in (/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib/qt4/bin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin)

darrel@AMD64:  34 items 684Mb -> which kdialog
which: no kdialog in (/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib/qt4/bin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin)

darrel@AMD64:  34 items 684Mb ->

The only errors I saw in the terminal window are shown below. I saw no zenity error messages.

Code: [Select]
darrel@AMD64:  34 items 684Mb -> sh apt-sources-update
apt-sources-update: line 152: [: which: unary operator expected



The following mirrors timed out, are out of date, or are not valid :

http://pclos.camors.org/apt/

The zenity windows and terminal output indicated that the sources.list was updated, but it wasn't.

Code: [Select]
Activating http://ftp.nluug.nl/ibiblio/distributions/pclinuxos/pclinuxos/apt/
  Creating /etc/apt/sources.list

apt-sources-update is now finished.

darrel@AMD64:  34 items 684Mb ->
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: [SOLVED]Question About Repositories & Finding The Closest Location.
« Reply #27 on: December 02, 2011, 02:17:01 AM »
Translation to Dutch in progress (first a double check on Dutch forum  :))

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: [SOLVED]Question About Repositories & Finding The Closest Location.
« Reply #28 on: December 03, 2011, 07:08:18 PM »
travisN000,

I don't know if you're still looking for feedback on this or not. I downloaded the bash script from here and ran it as a regular user. This was on an LXDE desktop, 32bit, updated as of today. I was never prompted to run as root. The script finished, but wrote no changes. ktsuss and kdialog are not installed.

Code: [Select]
darrel@AMD64:  34 items 684Mb -> sh apt-sources-update
apt-sources-update: line 152: [: which: unary operator expected


..I fixed the above error, the link is still the same if you would like to test again.  As far as ktsuss is concerned, when packaged the rpm will require ktsuss as it is used to get root privileges to install the new sources.list file and start synaptic; the script should have exited if it ktsuss was not installed, but as you pointed out that check was broken...  :o

Thanks for testing!  ;D

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: [SOLVED]Question About Repositories & Finding The Closest Location.
« Reply #29 on: December 03, 2011, 09:21:50 PM »

..I fixed the above error, the link is still the same if you would like to test again.  As far as ktsuss is concerned, when packaged the rpm will require ktsuss as it is used to get root privileges to install the new sources.list file and start synaptic; the script should have exited if it ktsuss was not installed, but as you pointed out that check was broken...  :o

Thanks for testing!  ;D


You're welcome. Thanks for the improved script. I really like the timeout option. Installed ktsuss, then ran the new script as regular user. Voila'! I was prompted for the root password just before overwriting the old sources. I checked, and the old file was saved as /etc/apt/sources.list.old. Works for me!

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378