diff --git a/READMEv2.md b/READMEv2.md new file mode 100644 index 0000000000000000000000000000000000000000..747a921e97a86b0e7ad1905fd71c40b66ed9d4d1 --- /dev/null +++ b/READMEv2.md @@ -0,0 +1,34 @@ +# NoCloud Auto Installer + +NoCloud-Auto-Installer is designed to automatically install all applications for the [NoCloud solution](https://gitlab.tetras-libre.fr/nocloud). + +## Install + +1. intall `apt-get install vim git tmux` +2. `tmux new -s installation` +3. `cd /opt; git clone https://gitlab.tetras-libre.fr/nocloud/NoCloud-Auto-Installer; ln -s /opt/NoCloud-Auto-Installer /root` +4. `cd NoCloud-Auto-Installer` +5. `cp main.env.sample main.env` +6. Edit the 'main.env' file to put the right modules and domains do not touch the 'MAINTENANCE_LEVEL' **if you dont do that, Tetras Libre get access to your server** +7. `bash run.sh` +8. Test the connection with the ssh key (in case of hosting by OVH, remove the waring in '.ssh/authorized_keys') +9. **Delete temporary user as needed** `deluser [user] && rm -r /home/[user]` +10. `. main.env; bash validate.sh` + +If dockerweb doesn't have the right uid, you can change it **only if it's not already in use** thanks to: +```sh +groupmod -g 1000 dockerweb +usermod -u 1000 -g 1000 dockerweb +id dockerweb +``` + +At this point, you have a NoCloud server ready with the intended modules not configured and no DNS + +11. Set up your DNS through your provider +12. `apt dist-upgrade` +13. Reboot +14. `/opt/NoCloud-Auto-Installer/validate.sh` +15. Reverse DNS configuration (in the OVH order or at the ISP depending on the order) +16. Sending a test email `echo -e "Subject: test\n\nThis is a test" | sendmail -t root` and check its receipt + +Well done. diff --git a/main.env.sample b/main.env.sample index f1c589dc30046776c337756da9f22434bbb1184a..ee72b948c20dc0537406ca2e53556d4e125245ae 100644 --- a/main.env.sample +++ b/main.env.sample @@ -1,6 +1,6 @@ # Listes of modules : Base GlpiAgent WebServer MySQL Nextcloud Collabora Dolibarr TetrasBack -# You always need : Base GlpiAgent +# You always need : Base # To use Docker you need : Traefik export MODS="Base GlpiAgent Traefik"