Changes between Version 32 and Version 33 of HowtoMirrors
- Timestamp:
- Dec 27, 2018, 10:05:31 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowtoMirrors
v32 v33 3 3 = How to make a Mirror for Elive = 4 4 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 === 25 6 * '''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 26 7 … … 29 10 * '''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. 30 11 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. 32 13 33 14 * '''Server type''': Apache … … 37 18 When 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 :) 38 19 39 === Setup Configuration === 20 * '''Bandwith Limit''' 40 21 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: 22 The 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: 42 32 {{{ 43 ssh-keygen 33 ssh-keygen # just press enter until it finishes 34 44 35 echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAk45j0yfCnHcyi6EKy/tnUOfUKMMeVf1rc/nRPratslLwVVr+bCqjS/KVc5si+8yGsCxQzow2TC3hlymvyxVZhA0Q17G87UQb61nLeG9sl45LyPg5gqLYZUoxaxjT/L/T5XkqpfXhXle5ix0metdSh0sZHMnfhRvMXOAkQHY7YBWMkh9TOLu45GiUW2XKDSZjEWV0NeR06r66KspqsV5jR6HCZ9iQDMoya/6HdTqNDqpza+qqAcHvXCWAbAgr95PXDbSM1KIS9KCRebHVka1437kCU3vrwXKBIb0OF0Rnseqs4icTu2xnu74H2/+uM/C+o4f2QFjJM/CwlQ0w2kL2+Q== elivewebsites@zatara' >> "$HOME/.ssh/authorized_keys" 45 36 chmod 744 "$HOME/.ssh" … … 47 38 mkdir -p "$HOME/public_html" 48 39 }}} 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 49 45 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,,51 46 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 ----