Δείτε το RSS Feed

Flamelab's Ultimate Philosophy

Όταν αργεί ο Pacman κι όταν έχεις ISP σαν την Forthnet ...

Rating: 3 votes, 1,00 average.
... είναι απαραίτητο νομίζω να θέλουμε πολλαπλά connections ώστε να κατέβουν τα ρημάδια τα πακέτα μέσα από το δίκτυο του αγαπημένου ISP μας.

Ο pacman, αν και γρήγορος σε όλα, δεν κάνει concurrent downloads, δηλαδή τα κατεβάζει σειριακά τα πακέτα (το ένα μετά το άλλο).

Η λύση σ'αυτό ; Powerpill.

Ο TU "Xyne" του AUR (και καλά έκαναν που τον δέχτηκαν μεταξύ μας ως Trusted User*) έχει αυτό το site:

http://xyne.archlinux.ca/introduction

όπου κάνει host αρκετά ωραία σκριπτάκια (μερικά μαλιστα αρκετά περίπλοκα), όπως το powerpill.

Βάζουμε στο /etc/pacman.conf αυτό το repo:

Κώδικας:
[xyne-any]
Server = http://xyne.archlinux.ca/repos/any
(πάνω πάνω, κατω κατω, όπου να'ναι)

και κάντε sync (--> pacman -Syy).

Μετά:

pacman -S powerpill

και τελειώσατε.

Εάν το'χατε από πριν εγκαταστημένο, σβήστε ό,τι configuration αρχεία του'χατε δηλώσει.

Τώρα ανοίξτε το /etc/powerpill.conf και δηλώστε ό,τι βλέπετε εδώ (συγκρίνετε δηλαδή το περιεχόμενο του spoiler με το powerpill.conf και πειράξτε αναλόγως):
Spoiler:
Κώδικας:
[options]                                  

# Set the path to the aria2c binary.
Aria2Bin = /usr/bin/aria2c          

# Clean up leftover aria2 control files.
#Aria2Clean                             

# Suppress aria2c output.
Aria2Silent              

# Powerpill will log output to this file if this
# option is set.                                
Log = /var/log/powerpill.log                    

# Suppress colored output.
#NoColor                  

# Set the path to the pacman binary.
# Change this to your preferred pacman binary,
# e.g. pacman-color                           
PacmanBin = /usr/bin/pacman                   

# Set the path to the pacman configuration file.
# Change this if you want to use a custom configuration
# with powerpill.                                      
PacmanConf = /etc/pacman.conf                          

# Use reflector at runtime to get the latest mirrors.
# Depending on the reflector options that you use,   
# this may slow down the overall process while retrieving
# the latest list, so use it wisely.                     
#Reflect = <reflector options>                           

# Set the number of times that powerpill will retry a
# download if it fails. This only has an effect when 
# run with pacman's noconfirm option.                
RetryLimit = 3                                       

# The minimum size a file must be for powerpill to
# split the file for segmented downloading (in MB).
#SplitSize = 5                                     





# aria2 options
# These follow the same format as the aria2 config file.
# Please refer to the aria2 documentation for more details
# including a complete set of options (proxy settings etc).
# Only the most relevant options have been included here.  
[aria2_options]                                            

# maximum number of concurrent downloads
# This must be in the range 1-45. Powerpill sets it to 45
# and configures the metalink to adjust the connections  
# per file.                                              
max-concurrent-downloads=45                              

# number of servers to connect to simultaneously
# This only has a limiting effect. Leave it unset to
# connect to the maximum number of servers allowed  
# by the settings in the metalink.                  
#metalink-servers=20                                

# Increasing these settings will lose more time while
# waiting for unresponsive servers but decreasing them
# will miss active servers and lose time while aria2  
# tries other servers.                                
#timeout=5                                            
#max-tries=2                                          
#retry-wait=2                                         


# lowest acceptable connection speed (0 = disabled)
# Downloads below this speed will be aborted.      
# The speed is given in bytes by default. Append "K"
# or "M" for kilobytes or metabytes, resp.          
# (1M = 1024K = 1048576)                            
#lowest-speed-limit=0                               

# maximum total download speed (0 = disabled)
# Use this to throttle the download.         
# The speed is given as for lowest-speed-limit above.
#max-download-limit=0                                


# Be careful with this. Aria2 can quickly create huge
# log files, depending on the log-level option.      
#log=/var/log/aria2.log                              






# list pkgd-servers on your LAN here
# they will be queried before remote servers
#[PkgD]                                     
#Server = http://xxx.xxx.xxx.xxx:yyyyy/$repo







# Here you can specify additional mirrors for powerpill.
# The mirrors specified here will not be used by pacman
# and thus the database will never be updated from them.
# These sections follow the same syntax as pacman.conf.

# Some of you will recognize this section as the heir
# to the additional_mirrors.conf file. :)

# Note that if you use the "reflect" option. there isn't
# any reason to include reflector mirrorlists down here.

#[core]
# Server = http://example.com/arch/$repo/
# Include = /path/to/mirrorlist

#[extra]
# Server = http://example.com/arch/$repo/
# Include = /path/to/mirrorlist

#[community]
# Server = http://example.com/arch/$repo/
# Include = /path/to/mirrorlist


Έχει το ίδιο συντακτικό με τον pacman. Δηλαδή:

Update --> powerpill -Su
Installation --> powerpill -S paketo1 paketo2

κλπ κλπ.

Δείτε το και θα με θυμηθείτε

Submit "Όταν αργεί ο Pacman κι όταν έχεις ISP σαν την Forthnet ..." to Facebook Submit "Όταν αργεί ο Pacman κι όταν έχεις ISP σαν την Forthnet ..." to Twitter

Tags: Κανένα Προσθήκη / Επεξεργασία Tags
Categories
Τοξοτά crazy tips

Σχόλια

  1. Το avatar του μέλους
    Πολύ καλό Να είσαι καλά για τα tips

    (αν δεν είχαμε και εσένα ε; ----> Μην χαίρεστε στο vmware το τρέχω )
  2. Το avatar του μέλους gtklocker
    Πολύ καλό το powerpill.

    Μου το είχες δώσει στο IRC κανάλι, και από τότε το ερωτεύτηκα.

    Γιατί δεν το ενσωματώνουν στον pacman;

    Μήπως φοβούνται τον περιορισμό στα connections, αν θες να κάνεις πχ. 2 κατεβάσματα ταυτόχρονα;
  3. Το avatar του μέλους
    Και εμένα θα μου άρεσε μια πιθανή ενσωμάτωση.... Αλλά για να μην το κάνουν, κάτι δεν θα τους αρέσει....
  4. Το avatar του μέλους flamelab
    Νομίζω κάτι έχουν αλλάξει στην git έκδοση του pacman, διότι έρχονται μεγάλες αλλαγές, όπως το package splitting στο makepkg.
  5. Το avatar του μέλους giannis12a
    Ωραία μαγκιά. Thanks
  6. Το avatar του μέλους paschalis.m
    και εψαχνα στο google να βρω μια λυση και επεσα πανω σ'αυτο.
  7. Το avatar του μέλους paschalis.m
    στο powerpill.conf προσωπικα αλλαξα το:
    max-concurrent-downloads=45 σε
    max-concurrent-downloads=4

    γιατι ηταν αρκετες οι φορες που αντιμετωπιζα προβληματα οταν εκανα upgrade με πολλα πακετα (πχ οταν υπηρχαν 50 πακετα πολλα μου εβγαιναν corrupted).
    ενω ετσι κατεβαζει τετραδες και ολα καλα.