diff --git a/DIY Install Sovran_SystemsOS.md b/DIY Install Sovran_SystemsOS.md index e16ac6b..6109fa8 100755 --- a/DIY Install Sovran_SystemsOS.md +++ b/DIY Install Sovran_SystemsOS.md @@ -8,10 +8,10 @@ ### Requirements -1. First machine with Linux OS already installed (like NixOS, Ubuntu, Arch, etc.) to download and burn the NixOS image to a USB thumb drive. +1. First computer with Linux OS already installed (like NixOS, Ubuntu, Arch, etc.) to download and burn the NixOS image to a USB thumb drive. 2. USB thumb drive 16GB or larger -3. Second machine that is ready to have Sovran_SystemsOS installed (Safe Boot turned off in the UEFI[BIOS] and be prepared for the entire storage drive to be ERASED!). -4. Second machine needs the following hardware specs: +3. Second computer that is ready to have Sovran_SystemsOS installed (Safe Boot turned off in the UEFI[BIOS] and be prepared for the entire storage drive to be ERASED!). +4. Second computer needs the following hardware specs: - Intel or AMD processor (NO ARM processors) - 32GB of RAM or Larger @@ -19,7 +19,7 @@ - Second NVME internal drive to store the Bitcoin blockchain and the automatic backups (NVME 4TB or larger) - Also, the second NVME internal drive needs to be installed FIRST into a USB enclosure. You will need a NVME USB enclosure. The USB enclosure will be plugged into the first Linux machine. -5. Working Internet connection for both machines +5. Working Internet connection for both computers 6. Personalized Domain names already purchased from Njal.la. See the explanation here: https://sovransystems.com/how-to-setup/ 7. Your Router with ports open (Port Forwarding) to your second machine's internal IP address. This will usually be `192.168.1.(some number)` You will complete this at the end. @@ -31,10 +31,10 @@ ## Preparing the Second Internal Drive -1. Install the second NVME internal drive into the USB enclosure, NOT into the Second machine yet. -2. Plug in the USB enclosure into the first machine with Linux OS already installed into one of its available USB ports. -3. **Please Make Sure You Know The Existing Storage Names On This First Linux Machine. If You Run The Script Below And You Do Not Know What You Are Doing, You Could Potentially Erase Your First Linux Machine's Data. I Am Not Responsibly For Your Errors** -4. Open a terminal in the first Linux machine and log in as root. +1. Install the second NVME internal drive into the USB enclosure, NOT into the Second computer yet. +2. Plug in the USB enclosure into the first computer with Linux OS already installed into one of its available USB ports. +3. **Please Make Sure You Know The Existing Storage Names On This First Linux Computer. If You Run The Script Below And You Do Not Know What You Are Doing, You Could Potentially Erase Your First Linux Computer's Data. I Am Not Responsibly For Your Errors** +4. Open a terminal in the first Linux computer and log in as root. 5. Type in or copy and paste: ```bash @@ -44,19 +44,19 @@ wget https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOS/raw/branch/ma then press enter. 6. Now, type `bash sdpsp.sh` then press enter. -7. Then the screen will ask for "what block..." which will be the drive in the list that is not mounted, which will be the drive you just plugged in. It might be labeled `sdb`, or `sdc` etc. Type in the drive name and press `enter`. -8. Then the screen will ask for "what partition...,"which will be whatever you typed into the first prompt, but with a "1" on it. For example, `sdb1` or `sdc1`. Type it into the terminal and press `enter`. +7. Then the screen will ask for "what block..." which will be the drive in the list that is not mounted, which will be the drive you just plugged in. It might be labeled `sda`, or `sdb` etc. Type in the drive name and press `enter`. +8. Then the screen will ask for "what partition...,"which will be whatever you typed into the first prompt, but with a "1" on it. For example, `sda1` or `sdb1`. Type it into the terminal and press `enter`. 9. Since the script is made to copy the blockchain from another Sovran Pro that already has the full blockchain installed it will throw an error. However, it should complete the setup just fine. -10. Once complete, remove the second drive from the USB enclosure and install it into your second machine in which you are installing Sovran_SystemsOS. +10. Once complete, remove the second drive from the USB enclosure and install it into your second computer in which you are installing Sovran_SystemsOS. ## Preparing the First Main Internal Drive ### Procedure One - Installing base NixOS - 1. Still on the first machine with Linux OS already installed, download the latest NixOS minimal (64-bit Intel/AMD) image from here: https://nixos.org/download + 1. Still on the first computer with Linux OS already installed, download the latest NixOS minimal (64-bit Intel/AMD) image from here: https://nixos.org/download 2. Burn that ISO image onto the USB thumb drive. - 3. Insert the newly created USB thumb drive with the ISO image into the second machine (the one you are installing Sovran_SystemsOS). - 4. Reboot the second machine while the USB thumb drive is inserted and boot into the USB thumb drive. This may require you to press the F7 or F12 key at boot. (Also, make sure the second machine has "safe boot" turned off in the UEFI[BIOS]). + 3. Insert the newly created USB thumb drive with the ISO image into the second computer (the one you are installing Sovran_SystemsOS). + 4. Reboot the second computer while the USB thumb drive is inserted and boot into the USB thumb drive. This may require you to press the F7 or F12 key at boot. (Also, make sure the second computer has "safe boot" turned off in the UEFI[BIOS]). 5. Proceed with the NixOS boot menu 6. Once at the command prompt type in `sudo su` to move to the root user 7. Once logged into the root user type in `passwd` then set the root user password to `a` @@ -68,15 +68,21 @@ then press enter. ``` the command to install the base NixOS and press enter. -10. Now, type `bash psp.sh` then press enter. +10. Now, type `bash psp_physical_ram.sh` then press enter. 11. The script will ask for name of first main internal drive. Type that in and hit enter. It usually will be `nvme0n1`. Basically, it will be the drive without any data and it will not be mounted per the list on the screen. 12. Then the script will ask for the 'Boot' partition. Type it in and press enter. It will be the SMALLER partition and usually named `nvme0n1p1`. 13. Then it will ask for the 'Primary' partition. Type it in and press enter. It will be the LARGER partition usually named `nvme0n1p2`. 14. The script will finish installing the base NixOS. At the end it will ask for a root password. Type `a` and press enter and type `a` again to confirm and press enter. -15. Remove the USB thumb drive from the second machine. -16. The machine will reboot into a very basic install of NixOS command prompt. +15. The machine will reboot into a very basic install of NixOS command prompt. +16. Remove the USB thumb drive from the second computer. -### Procedure Two - Installing Sovran_SystemsOS + +### Procedure Three - Opening The Ports on Your Router - Internal IP + +1. Go to port forwarding on your router and open the above mentioned ports to the internal IP (the one you found above) of your new Sovran_SystemsOS machine + + +### Procedure Four - Installing Sovran_SystemsOS 1. Now at the basic install of NixOS from step `16`, type `root` to log into root and type the password `a` when asked then press enter. 2. Now you are logged in as `root`. @@ -92,12 +98,10 @@ then press enter. 6. Then it will ask for an email for the SSL certificates. Type it in and press enter. 7. The script is long so it will take some time. 8. It will finish by stating `All Finished! Please Reboot then Enjoy your New Sovran Pro!` +9. Press the power button on the machine for it to turn off THEN press it again to power the machine ## Finishing the Install -### Opening The Ports on Your Router - Internal IP - -1. Go to port forwarding on your router and open the above mentioned ports to the internal IP (the one you found above) of your new Sovran_SystemsOS machine ### Putting the External IP of your New DIY Sovran Pro into your new domain names you just bought at [njal.la](https://njal.la) @@ -123,8 +127,11 @@ then press enter. 3. Paste the `curl` commands from njal.la's website for each sub-domain. Each `curl` command gets a new line. For example: ```bash + ... curl "https://njal.la/update/?h=test.testsovransystems.com&k=8n7vk3afj-jkyg37&a=${IP}" curl "https://njal.la/update/?h=zap.testsovransystems.com&k=8no*73afj-jkygi2ea=${IP}" + ... + ``` ##### Make sure the default `&auto` from njal.la is replaced by `&a=${IP}` at the end of each `curl` command in the `/var/lib/njalla/njalla.sh` as in the example above. @@ -134,7 +141,7 @@ then press enter. ### Setting the Desktop -1. Open the `Terminal` and type in: `dconf load / < /home/free/Downloads/Sovran_SystemsOS-Desktop`. Do NOT log in as root. +1. Open the `Terminal` again and type in: `dconf load / < /home/free/Downloads/Sovran_SystemsOS-Desktop`. Do NOT log in as root. 2. Close the `Terminal`. @@ -220,6 +227,24 @@ then press enter. ``` and press enter. + It will ask for your `Administrator` password and to get the password open a new `Terminal` window and type + + ```bash + ssh root@localhost + ``` + press enter. + + Now you will be logged in as root. + + Now type: + + ```bash + cat /var/lib/secrets/main + ``` + Then the `Administrator`'s password will be displayed. Copy and paste the password into the other `Terminal` window that is open. Then press enter. + + Now you can close the `Terminal`. + ### Everything now will be installed regarding Sovran_SystemsOS. The remaining setup will be only for the front-end user account creations for BTCpayserver, Vaultwarden, connecting the node to Sparrow wallet and Bisq. ### Congratulations! 🎉