• reflector-antergos


    @manuel @joekamprad

    If it can check arch and antergos mirrors maybe could be something like uniflector universal-reflector unireflector

  • Thanks guys for the suggestions!
    Currently I’m using a code name “remirror” since it is short and easy, and it wasn’t already in use for any other purpose (checked Antergos, Arch, Manjaro, including AUR on all of them).

    Anyway, the tool itself is starting to be ready for larger testing. In my tests it seems to work without issues, but the more testers the merrier!
    So I’ll be releasing a “beta” version during the days to come, and announce it here as it gets released.

    Hopefully many people will test it and report any findings.

    Cheers! :)

  • Hello friends! :)

    A fresh new (first) release is out at:
    https://github.com/manuel-192/remirror

    Download the PKGBUILD file and install the tool e.g. like this:

    cd ~/Downloads
    wget https://github.com/manuel-192/remirror/raw/master/PKGBUILD
    makepkg -sic
    rm -f PKGBUILD remirror-*   # cleanup
    

    It will install the tool as /usr/bin/remirror.

    Here’s some usage examples:

    # get some help:
    remirror -h
    
    # rank all Antergos and Arch mirrors (to your $HOME directory):
    remirror          > ~/antergos-mirrorlist
    remirror -os=Arch > ~/mirrorlist
    
    # the same but prefer some (home and nearby) countries:
    remirror -c=Spain,Germany,France          > ~/antergos-mirrorlist
    remirror -c=Spain,Germany,France -os=Arch > ~/mirrorlist
    
    # adjust max waiting time for any mirror:
    remirror -tm=10          > ~/antergos-mirrorlist
    remirror -tm=10 -os=Arch > ~/mirrorlist
    
    # add the official mirror list to the end (for reference):
    remirror -of          > ~/antergos-mirrorlist
    remirror -of -os=Arch > ~/mirrorlist
    

    And finally, copy the ranked mirror lists to their proper place:

    # elevated permissions are required
    sudo cp ~/antergos-mirrorlist ~/mirrorlist /etc/pacman.d/
    

    Feel free to test it and report any findings!

  • Ooooh… thank you!!! I’ll be trying it out (or at least, I plan to) in the next day or so :) .

    Once again, thank you so much for the astounding work and scripts @manuel!

  • Since Antergos is aimed at human beings (mean: not at geeks only), you could think of adding GUI.

  • If it can still run as a systemd service, the most easy way is to run it as this automatic.
    And handled with systemd-manager-gui

  • @joekamprad One way or another - a simple solutions for beginners would be not bad idea.

  • @piotr
    Actually I already wrote an experimental GUI for it. So far I’m not quite satisfied with the results, But I might later release that, too.

    But as @joekamprad said, the best use of this is to make it happen automatically, without user intervention. And that’s why is should be tested by as many people as possible, to find all possible problems with it before making it an automatic process.

    It is (in my mind) quite easy to test, but my tests cover only my location in Europe, and I’m sure here I cannot test all potential problems.

    So, please test it to make Antergos a better system! :)

  • @manuel said in reflector-antergos:

    So, please test it to make Antergos a better system!

    Will do, tomorrow at the office. None of my machines at home has Antergos installed at the moment. If I remember well, there’s no Antergos mirror in Poland, so results may be interesting.

  • @piotr
    By default, remirror waits at most 5 seconds for each mirror to respond.
    In my experience, (fast) mirrors in near by countries will respond well under one second.

    So if you want rank all mirrors, it may be wise to use the --tm=<seconds> option with a smaller value.
    Of course, if you put a very small value to it, more mirrors fail the ranking process and will not be included in the resulting mirror list. On the other hand, if you put a larger value (like 10 seconds), then most mirrors will get a ranking value, but the whole process takes much more time, especially when you rank the Arch mirrors.

    Alternatively, near by countries are usually the fastest (although not always up to date). For example many German mirrors are both fast and up to date, so you might want to select the countries of the mirror to rank with the --c=<countrylist> option.

  • @manuel German mirrors usually turn out the fastest in Poland.

    By the way: on my Arch-powered machines I only use (occasionally) this simple script.

  • Here are some pictures of the GUI. Note that if I release the GUI, they may look different from this.

    Here is the current main window:
    0_1536857940970_remirror-gui-main.png
    And this is the window for selecting Antergos mirrors for ranking:
    0_1536858013402_remirror-gui-select-antergos-mirrors.png

    These two are the main windows. There is a third one, but it is similar to the Antergos mirror selection window, it only selects Arch mirrors (as you all may remember that Antergos uses Arch packages directly).

    So this gives you an impression of the current GUI status. It has no bells and whistles, and it is made using the yad package.
    But I’m not yet sure if this is worth releasing. Maybe if some ideas arise for making it more useful and self-contained, then perhaps…

  • @piotr said in reflector-antergos:

    By the way: on my Arch-powered machines I only use (occasionally) this simple script.

    Yes, reflector has been around for a long time, and it is a good ranking program.

    I just wanted to create a program (remirror) that can handle both Antergos and Arch mirrors, since the ranking procedure is technically very similar between the two. And remirror does not use reflector but has its own algorithm.

  • @manuel Sure, the situation is different when you need to care of other repositories.

  • @joekamprad said in reflector-antergos:

    systemd-manager-gui

    I tested on my office machine, and all the options you named in the sample above seem to work well (however, replacing - with -- in the example may save another testers 30 seconds of life).

    @manuel said in reflector-antergos:

    So this gives you an impression of the current GUI status. It has no bells and whistles, and it is made using the yad package.

    I didn’t notice the screenshots yesterday, sorry. I hate coding GUI, too. The most boring part of programming. But actually there’s no need for fireworks, just simple windows which do the job, and you’ve already made them.

    However, people coming from Windows recently will still have to replace the mirrorlist file manually. I don’t expect them to know what the hell mirros are, and things like this effectively discourage them from staying on Linux. This leads us to what @joekamprad said:

    If it can still run as a systemd service, the most easy way is to run it as this automatic.

    Running the script as a systemd service with arguments based on user locales by default would be the best solution IMO.

    And handled with systemd-manager-gui

    Note: the systemd-manager GUI does not work for me on Antergos Openbox:

    systemd-manager: bluetooth.service could not be enabled: "Interactive authentication required."
    

    Possibly the authentication issue only appears in Openbox. I’ll check GNOME later.

  • @piotr said in reflector-antergos:

    Possibly the authentication issue only appears in Openbox. I’ll check GNOME later.

    With GNOME it doesn’t seem to work well, too. Authentication window appears, but the service seems to be started, but not enabled. Furthermore: even if it worked well, there’s more to do than just turning the service on / off, and a config file + remirror-gui would still have enough work to do.

Posts 96Views 5078
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.