Poll

Should the repo speed test progress indicatory be displayed as pulsating bar with text updates, or a bar indicating percentage of repo's tested (also with text updates)?

Pulsating bar, with text updates
1 (5.3%)
Percent completed, with text updates
14 (73.7%)
Scrap the idea and keep my favorite repo a secret!
4 (21.1%)

Total Members Voted: 17

Author Topic: SCRIPT: Repo speed test GUI  (Read 11213 times)

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: SCRIPT: Repo speed test GUI
« Reply #45 on: December 15, 2009, 10:19:28 AM »
I'm on it :-)

had luckily a backup of my VM I'm updating now,

rpm should be ready in a couple of hours :-)

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: SCRIPT: Repo speed test GUI
« Reply #46 on: December 15, 2009, 11:56:28 AM »
Hi Travis,

just built it before updating to kde4. Looks like there is an even newer version - this is the v.2 grabbed a couple of hours ago.

I have put it side-by-side Synaptic apt-get in the menu and set -w as default (using -write does not work btw.) and named it Repo-Speed-Test like the window title.

RPM:
http://dl.dropbox.com/u/2546717/apt-sources-update-0.1-1pclos2009.i586.rpm

SRPM:
http://dl.dropbox.com/u/2546717/apt-sources-update-0.1-1pclos2009.src.rpm

Feel free to alter it, or just tell me your changes then I'll fix it,

cheers,
MBantz

EDIT: Haven't uploaded to contribs!


[attachment deleted by admin]
« Last Edit: December 17, 2009, 02:14:59 PM by MBantz »

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: SCRIPT: Repo speed test GUI
« Reply #47 on: December 15, 2009, 05:51:46 PM »
The newer version just added a few missing "$" characters to prefix some of the text so that is could be fully localized / translated..

I personally don't care what the package is called.. when I started the script it had smaller goals,  just update the sources.list file, without the speed test.  I wasn't sure if the name should emphasize the speed-test, the updated sources.list, or both...  whatever you decide is fine by me.

I should be home in the next hour or two, so I will install and test then...

Thanks again!

Travis
« Last Edit: December 16, 2009, 06:18:15 AM by travisn000 »

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: SCRIPT: Repo speed test GUI
« Reply #48 on: December 16, 2009, 06:08:22 AM »
Hang on Travis :-)

I'm just about to update the rpm with the current version - also adding locale to the spec. Need to go to town, hope there is not too crowded in Copenhagen. Will have the rpm ready tomorrow (my time),

cheers,
MBantz

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: SCRIPT: Repo speed test GUI
« Reply #49 on: December 17, 2009, 02:13:50 PM »
Localized version of the script is ready now for your testing,

I needed to set the variable textdomain in the script to make the localizations work. When I was at it, I translated it to danish :-)

after test I'll send the srpm to Tex's dropbox :-)

http://dl.dropbox.com/u/2546717/apt-sources-update-0.1-2pclos2010.i586.rpm

cheers,
MBantz


Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: SCRIPT: Repo speed test GUI
« Reply #50 on: December 18, 2009, 05:30:52 AM »
Hey again,

I sent it to contribs now,

cheers,
MBantz

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: SCRIPT: Repo speed test GUI
« Reply #51 on: December 18, 2009, 08:50:15 AM »
I just install the latest.. Thanks Again!

Tommylee567

  • Guest
Re: SCRIPT: Repo speed test GUI
« Reply #52 on: January 24, 2010, 06:29:37 AM »
Guys,
How do i recover the original sources list for synaptic? It now shows 5 servers.

Now after running speed test, i select one server and it comes with a error "Operation Canceled".
Even though i selected it and pressed ok, it still shows the same.

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: SCRIPT: Repo speed test GUI
« Reply #53 on: January 24, 2010, 12:49:04 PM »
The original sources.list file is backed up in  /etc/apt  ...there are also copies of the full updated sources.list downloaded to the repo-speed-test folder in your home directory, as well as lists of the good and bad repos based on the criteria you selected last time you ran the speed test.

Also, when you run the repo-speed test make sure you carefully read the prompts;  IIRC one of them sets the total number of good repos kept (of the fastest good ones), later you must pick the one single repo to make active.

If you still have problems, post back with the specific options you are selecting at each step and I will see If I can better trouble shoot your problem.
« Last Edit: January 27, 2010, 10:44:08 PM by travisn000 »

Tommylee567

  • Guest
Re: SCRIPT: Repo speed test GUI
« Reply #54 on: January 30, 2010, 10:30:27 AM »
Here is a screen shot video. At the end there was no error message in the video, so i shot a photo of it.
This will give you an idea of what happened. ALL THESE happened before i correctly copied the sources.list file to synaptic.
The peculiar thing is, it always shows the http://mirror.pclinuxclub.com/pclinuxos/apt/. Which I find obsolete in reality.

Here are the links:
http://dl.dropbox.com/u/4212605/repospeed.ogv
http://dl.dropbox.com/u/4212605/Error.jpeg

I will post any improvements after the sources list is copied and tried again.

Thanks!
Tim

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: SCRIPT: Repo speed test GUI
« Reply #55 on: February 05, 2010, 11:41:17 PM »
It appears that the script was canceled; but I could not tell if you canceled it in the screen cast...

Try running the following command from console and then attach the generated log file to your post:

Code: [Select]
apt-sources-update.sh -a 5 -n 8 -t 4 -v &> $HOME/verbose-shell-log.txt

..if you want to know what the options do, run  apt-sources-update.sh --help

Tommylee567

  • Guest
Re: SCRIPT: Repo speed test GUI
« Reply #56 on: February 06, 2010, 08:03:26 AM »
For any reason I don't need to cancel it myself.

This time it didn't show any servers to select. So it is blank.

The log file

[attachment deleted by admin]

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: SCRIPT: Repo speed test GUI
« Reply #57 on: February 06, 2010, 08:42:45 AM »
Thanks for that...

The script is failing / erroring because there are NO repos that meet the time requirement for age (the last time the repos were updated was Jan 5 2010).

Usually the repos receive updates on a constant basis and using a repo that has not been recently updated is undesireable.  Tex & company are now hard at work rebuilding the repos for the 2010 release, and because of this, the current repos started in 2007 have not been getting updated.  To get around this you may have to run the script from command line and use an age (-a) argument that is larger than the number of days between now and Jan 5 2010.

For example, the following command sets requirements that the repo be less than 40 days since update, and must respond in 4 seconds or less to be considered a "good" repo:
Code: [Select]
apt-sources-update.sh -a 40 -t 4


..if you want the script to prompt you for the option to overwrite your current sources.list file, then add the -w option:
Code: [Select]
apt-sources-update.sh -a 40 -t 4 -w
..without the -w option it will save all files in the $HOME/repo-speed-test directory without giving you the option to overwrite the current one (it will still save the good, bad, and all repo lists, as well as a shell script that can be run to update the apt sources.list with the newly generated "good" sources.list).
« Last Edit: February 06, 2010, 08:57:11 AM by travisn000 »

Tommylee567

  • Guest
Re: SCRIPT: Repo speed test GUI
« Reply #58 on: February 06, 2010, 09:04:47 AM »
Then should I try the command
"apt-sources-update.sh -a 40 -t 4"? OR add the "-w"?

Please explain

Thank You for the reply

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: SCRIPT: Repo speed test GUI
« Reply #59 on: February 06, 2010, 09:47:52 AM »
IF you want the script to give you the option to over-write the current /etc/apt/sources.list file, then use the second one with the -w (for "write") option.


IF you only want the new list saved in your $HOME/repo-speed-test directory, WITHOUT the immediate option to over-write the /etc/apt/sources.list file, then DO NOT use the -w option on the command (..use the first example in that post). 



Both will save a little shell script / program in your $HOME/repo-speed-test directory that will make it easy for you to later back up the existing /etc/apt/sources.list file, and then replace it with the new sources.list file that is stored in the repo-speed-test directory.  ...when used, the -w option causes this secondary script to run automatically when the apt-sources-update script completes (so that you don't have to start in manually). 

The purpose of the -w command line option is to allow YOU to decide if / when you want the /etc/apt/sources.list file modified...  ..when I wrote it there were many conflicting opinions as to weather or not the script should be able to modify the /etc/apt/sources.list file.  Some (including Tex) thought that by default it should not, so now the -w option must be added.  When MBantz packaged the script for inclusion in the repo, he liked the -w option, so he included it in the command that gets run when it is started by clicking the icon in the menu (..and most likely the one on your desktop).

If you do not like the behavior of the icon, let me know and I'll post the details on how to change it.  ;)