From 4197e1b3ac8cdc335ec04aa151aa9738007e5239 Mon Sep 17 00:00:00 2001
From: Elian Loraux <elian.loraux@tetras-libre.fr>
Date: Wed, 12 Feb 2025 16:29:41 +0100
Subject: [PATCH] first modif of readme

---
 READMEv2.md     | 34 ++++++++++++++++++++++++++++++++++
 main.env.sample |  2 +-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 READMEv2.md

diff --git a/READMEv2.md b/READMEv2.md
new file mode 100644
index 0000000..747a921
--- /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 f1c589d..ee72b94 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"
-- 
GitLab