[[TOC]] = How to make a Mirror for Elive = === FAST INSTRUCTIONS === * 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 * Create an user for the elive isos mirror * Have a subdomain / web link that points to this user "public_html" directory * 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) * Run these commands to add the elive server's key: {{{ ssh-keygen echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAk45j0yfCnHcyi6EKy/tnUOfUKMMeVf1rc/nRPratslLwVVr+bCqjS/KVc5si+8yGsCxQzow2TC3hlymvyxVZhA0Q17G87UQb61nLeG9sl45LyPg5gqLYZUoxaxjT/L/T5XkqpfXhXle5ix0metdSh0sZHMnfhRvMXOAkQHY7YBWMkh9TOLu45GiUW2XKDSZjEWV0NeR06r66KspqsV5jR6HCZ9iQDMoya/6HdTqNDqpza+qqAcHvXCWAbAgr95PXDbSM1KIS9KCRebHVka1437kCU3vrwXKBIb0OF0Rnseqs4icTu2xnu74H2/+uM/C+o4f2QFjJM/CwlQ0w2kL2+Q== elivewebsites@zatara' >> "$HOME/.ssh/authorized_keys" chmod 744 "$HOME/.ssh" chmod 600 "$HOME/.ssh/authorized_keys" mkdir -p "$HOME/public_html" }}} * 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 ,,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,, ---- === Requirements === * '''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 * '''Size''': The '''actual size used for the ISOs are around 10 GB of disk space''', let's say we don't reach 20GB, but it is good to have at least 20GB of disk space available, we have some bursts when syncing the ISOs. * '''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. * '''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. * '''Server type''': Apache The selection of the Mirror from our website is automatically based in your IP location and balanced, unfortunately if you want to have a ''Thanks To'' message we don't have it any more since the Download button gives the ISO automatically, but if it is something you really want and we should really included it, let us know and we will try to create a specific page for that. 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 :) === Setup Configuration === 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: {{{ ssh-keygen echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAk45j0yfCnHcyi6EKy/tnUOfUKMMeVf1rc/nRPratslLwVVr+bCqjS/KVc5si+8yGsCxQzow2TC3hlymvyxVZhA0Q17G87UQb61nLeG9sl45LyPg5gqLYZUoxaxjT/L/T5XkqpfXhXle5ix0metdSh0sZHMnfhRvMXOAkQHY7YBWMkh9TOLu45GiUW2XKDSZjEWV0NeR06r66KspqsV5jR6HCZ9iQDMoya/6HdTqNDqpza+qqAcHvXCWAbAgr95PXDbSM1KIS9KCRebHVka1437kCU3vrwXKBIb0OF0Rnseqs4icTu2xnu74H2/+uM/C+o4f2QFjJM/CwlQ0w2kL2+Q== elivewebsites@zatara' >> "$HOME/.ssh/authorized_keys" chmod 744 "$HOME/.ssh" chmod 600 "$HOME/.ssh/authorized_keys" mkdir -p "$HOME/public_html" }}} ,,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,, === Extra Notes === '''If you have a bandwidth limit by your hosting''', it is '''your responsibility''' to control it or to set any limit