Changes between Version 32 and Version 33 of HowtoMirrors


Ignore:
Timestamp:
Dec 27, 2018, 10:05:31 AM (3 months ago)
Author:
Thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowtoMirrors

    v32 v33  
    33= How to make a Mirror for Elive  =
    44
    5 === FAST INSTRUCTIONS ===
    6  * It is very important the server is up 24/7 without reboots of the server, otherwise it will give broken downloads to the users that are downloading on that moment
    7  * Create an user for the elive isos mirror
    8  * Have a subdomain / web link that points to this user "public_html" directory
    9  * Make sure that rsync is installed and ssh enabled for this user (ssh is required to send the files automatically with rsync in a secured way)
    10  * Run these commands to add the elive server's key:
    11 {{{
    12 ssh-keygen
    13 
    14 echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAk45j0yfCnHcyi6EKy/tnUOfUKMMeVf1rc/nRPratslLwVVr+bCqjS/KVc5si+8yGsCxQzow2TC3hlymvyxVZhA0Q17G87UQb61nLeG9sl45LyPg5gqLYZUoxaxjT/L/T5XkqpfXhXle5ix0metdSh0sZHMnfhRvMXOAkQHY7YBWMkh9TOLu45GiUW2XKDSZjEWV0NeR06r66KspqsV5jR6HCZ9iQDMoya/6HdTqNDqpza+qqAcHvXCWAbAgr95PXDbSM1KIS9KCRebHVka1437kCU3vrwXKBIb0OF0Rnseqs4icTu2xnu74H2/+uM/C+o4f2QFjJM/CwlQ0w2kL2+Q== elivewebsites@zatara' >> "$HOME/.ssh/authorized_keys"
    15 chmod 744 "$HOME/.ssh"
    16 chmod 600 "$HOME/.ssh/authorized_keys"
    17 mkdir -p "$HOME/public_html"
    18 }}}
    19  * Ready! Send an email to thanatermesis # gmail with the details about the: user login and pass, web link url for the isos, your ''thanks to link/name'' if you want us to include it on the website, and an email of contact in case that something fails (auto system), country/city where the mirror is located
    20 
    21 ,,Note: we will try to make it more easy to setup in the future and to not require a login in the mirror, but the project doesn't receive right now enough donations to rent another server for this,,
    22 ----
    23 
    24 === Requirements ===
     5=== Requirements & Notes ===
    256 * '''Reboots''': It is **very important** that your server is a ''untouched'' one that will never (or almost) have a reboot or a restart of the service, because every time this happen will cause a broken download to every user that is downloading Elive on that moment
    267
     
    2910 * '''Method''': The synchronization of the ISO repository is automatically managed using rsync+ssh. So we simply need an '''ssh user login''' access and to have '''rsync''' installed.
    3011
    31  * '''Web link''': It is also required, to have a sub-domain created that points to a specific directory (the dir of your choice), like ''http://isos.elive.yourdomain.com'', it is not really important what name you use for it, just make sure that it works and that it points to the specific directories where we will put the ISOs.
     12 * '''Web link''': It is also required, to have a sub-domain created that points to a specific directory (the dir of your choice), like ''https://isos.elive.yourdomain.com'', it is not really important what name you use for it, just make sure that it works and that it points to the specific directories where we will put the ISOs.
    3213
    3314 * '''Server type''': Apache
     
    3718When you have all this ready or you have any question, just send an email to ''#Thanatermesis 4t gmail'' with the details (ssh login details, subdomain, etc). After the completion of the first sync test the repository will be synced to your mirror :)
    3819
    39 === Setup Configuration ===
     20 * '''Bandwith Limit'''
    4021
    41 Create an user, with a public web link that points to the $HOME/public_html/isos/ directory, login to that user and run this ready-to-use command on the login shell (it will create a new SSH Key and then append our public key to the Authorized keys), basically just hit enter until you have your shell prompted back:
     22The server should not have any bandwith limitation set by the hosting service, otherwise you can be overbilled if there's too much downloads, please make sure that it is not your case
     23
     24
     25=== FAST INSTRUCTIONS ===
     26 * It is very important the server is up 24/7 without reboots of the server, otherwise it will give broken downloads to the users that are downloading on that moment
     27 * Create an user for the elive isos mirror
     28 * Have a subdomain / web link that points to this user "public_html" directory
     29 * Make sure that rsync is installed and ssh enabled for this user (ssh is required to send the files automatically with rsync in a secured way)
     30 * Install an auto-renewable SSL (httpS) certificate, to automate the process we suggest Letsencrypt / Certbot, fast instructions at: https://certbot.eff.org/
     31 * Run these commands to add the elive server's key:
    4232{{{
    43 ssh-keygen
     33ssh-keygen  # just press enter until it finishes
     34
    4435echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAk45j0yfCnHcyi6EKy/tnUOfUKMMeVf1rc/nRPratslLwVVr+bCqjS/KVc5si+8yGsCxQzow2TC3hlymvyxVZhA0Q17G87UQb61nLeG9sl45LyPg5gqLYZUoxaxjT/L/T5XkqpfXhXle5ix0metdSh0sZHMnfhRvMXOAkQHY7YBWMkh9TOLu45GiUW2XKDSZjEWV0NeR06r66KspqsV5jR6HCZ9iQDMoya/6HdTqNDqpza+qqAcHvXCWAbAgr95PXDbSM1KIS9KCRebHVka1437kCU3vrwXKBIb0OF0Rnseqs4icTu2xnu74H2/+uM/C+o4f2QFjJM/CwlQ0w2kL2+Q== elivewebsites@zatara' >> "$HOME/.ssh/authorized_keys"
    4536chmod 744 "$HOME/.ssh"
     
    4738mkdir -p "$HOME/public_html"
    4839}}}
     40 * Ready! Send an email to thanatermesis 4# gmail with the details of:
     41   * user login and pass
     42   * web link url for the isos
     43   * an email of contact in case that something fails (automated system)
     44   * the country & city where the mirror is located
    4945
    50 ,,hint: from your terminal logged in that user, just ''select'' all the text with your mouse and press the middle-click mouse button in your terminal for paste it directly on the running terminal,,
    5146
    52 === Extra Notes ===
    53 
    54 '''If you have a bandwidth limit by your hosting''', it is '''your responsibility''' to control it or to set any limit
    55 
     47----