ArchSetup Specification This setup should allow the user to: - run a command from the live iso to start installation - run a command from the live iso to setup the ssh server for remote install - tools to manage their dotfiles - see what's changed and reject or commit changes to the repository - easily adopt new dotfiles into the setup * Workflows / Use Cases ** Install Arch Linux *** Kick off the init file via curl To create a new arch linux workstation, boot from any Arch Linux iso burned on a flash drive. issue the command "curl -s https://cjennings.net/archsetup/init | sh" ... and have the process should begin. **** TODO Figure out what needs to occur for this to happen. *** Init - ask the user if they wish to setup archlinux or setup ssh - if response not "arch" or "ssh", error and stop. #+begin_src shell echo "Do you wish to setup archlinux or setup ssh? " read setup if [ "$setup" = "arch" ]; then echo "Setting up Arch Linux..." # Call arch setup script sh /path/to/archlinux_setup_script.sh elif [ "$setup" = "ssh" ]; then setup_ssh # function below else echo "Error: Unknown setup option. Please choose 'arch' or 'ssh'." exit 1 fi #+end_src *** Prepare SSH - change root user password to welcome - make sure ssh server is setup - find the hostname - report back to the user with the root@ip and root@hostname prompt to use. #+begin_src shell setup_ssh () { systemctl start sshd echo "root:welcome" | chpasswd hostname=$(