diff --git a/README b/README index bce9d58..abc6070 100644 --- a/README +++ b/README @@ -10,64 +10,13 @@ since i'm writing this readme before i actually write any code, the documentation for future me is most certainly incomplete. good luck future me, i guess. -also, as an aside: this project is designed for installing -arch linux on my Thinkpad x220. you probably shouldn't be -expecting that this will work with your use case, but if you -are, prepare to be disappointed. +this is supposed to work on a fresh installation of +prawn/crawfish os. have fun. this software identifies as being part of the trivial technology movement. should you wish to learn more, visit gemini://inixj-ix.luxe/wiki/trivial-technology--landing/. -things to do -============ - -iso-prep -[ ] install curl -[ ] install git -[ ] ensure internet connection - -create-chroot -[ ] follow instructions in the arch wiki for typical - installation procedures [1] - - [1]: https://wiki.archlinux.org/title/Installation_guide - -[ ] make a script inside the chroot that hands off control - for installation procedure, and then exits - -chroot-prep -[ ] see `create-chroot' -[ ] install grub -[ ] add user account -[ ] configure sudo permissions -[ ] install essential packages - - neovim - - wpa_supplicant - - dhcpcd - - git - - sudo -[ ] add autorun shell script that starts post-arch-install - -post-arch-install -[ ] install randomuser/utils -[ ] install randomuser/wallpapers -[ ] install dylanaraps/pash -[ ] install Earnestly/sx -[ ] other packages i forgot - -things to do (phase 2) -====================== - -[ ] add somewhat of an error checking and fallback system -[ ] add a `compiler' type thing that pushes everything into - one easily-hostable file for (hopefully) easy downloading - -release plan -============ - -- version 0 will be the base minimum - license ======= diff --git a/scripts/iso-prep.sh b/scripts/iso-prep.sh deleted file mode 100644 index 75fd940..0000000 --- a/scripts/iso-prep.sh +++ /dev/null @@ -1,24 +0,0 @@ -# this script will be executed when the user has first -# executed the installer on their computer, in the arch -# linux installation environment. - -# we're first going to ensure that -# a) we have an internet connection -# b) we have some essential packages installed, and if not, -# install them - -# define a function for erroring out -die() { - printf "%s\n" "$1" - exit $2 -} - -# ping is a standard utility, try to ping 1.1.1.1 -[ "$(ping 1.1.1.1)" -eq 0 ] || \ - die "couldn't connect to the internet!" 1 - -# update all the packages -pacman -Syu --noconfirm - -# install essentials (if they arn't installed) -pacman -S --noconfirm git curl diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..e563c1f --- /dev/null +++ b/test.sh @@ -0,0 +1,78 @@ +#!/bin/sh + +nmtui # prompt user for wifi information + +printf "REMAIN WITH YOUR COMPUTER: the update will ask you some questions.\n" +printf "******************************************************************\n" +sleep 5 +apt update +apt upgrade +useradd usr +printf "usr\nusr\n" | passwd usr +mkdir /home/usr +cd /home +chown -R usr usr +apt install sudo +usermod usr -G sudo -s /bin/bash +printf "IT IS NOW SAFE TO LEAVE YOUR COMPUTER. (maybe)\n" + +cd usr +sudo apt install git curl neovim build-essential bspwm sxhkd libxcb1-dev libx11-dev libxcb-randr0-dev libxft-dev libx11-xcb-dev libxcb-xinerama0-dev libxinerama-dev fonts-fantasque-sans feh libwebkit2gtk-4.0-dev xorg + +printf "# this is the part to be run as a regular user\n" >> /home/usr/script.sh +printf "# get the sudo timeout done\n" >> /home/usr/script.sh +printf "echo usr | sudo --stdin echo done!\n" >> /home/usr/script.sh +printf "mkdir git\n" >> /home/usr/script.sh +printf "cd git\n" >> /home/usr/script.sh +printf "git clone https://tildegit.org/randomuser/terminal\n" >> /home/usr/script.sh +printf "git clone https://tildegit.org/randomuser/nenu\n" >> /home/usr/script.sh +printf "git clone https://tildegit.org/randomuser/dot\n" >> /home/usr/script.sh +printf "git clone https://tildegit.org/randomuser/utils\n" >> /home/usr/script.sh +printf "git clone https://tildegit.org/randomuser/wallpapers\n" >> /home/usr/script.sh +printf "git clone https://tildegit.org/randomuser/lemonbar-xft\n" >> /home/usr/script.sh +printf "git clone https://github.com/Earnestly/sx\n" >> /home/usr/script.sh +printf "git clone https://github.com/fanglingsu/vimb\n" >> /home/usr/script.sh +printf "\n" >> /home/usr/script.sh +printf "\n" >> /home/usr/script.sh +printf "cd dot\n" >> /home/usr/script.sh +printf "make\n" >> /home/usr/script.sh +printf "sudo make\n" >> /home/usr/script.sh +printf "cd ..\n" >> /home/usr/script.sh +printf "\n" >> /home/usr/script.sh +printf "cd lemonbar-xft\n" >> /home/usr/script.sh +printf "make\n" >> /home/usr/script.sh +printf "sudo make install\n" >> /home/usr/script.sh +printf "cd ..\n" >> /home/usr/script.sh +printf "\n" >> /home/usr/script.sh +printf "cd nenu\n" >> /home/usr/script.sh +printf "make\n" >> /home/usr/script.sh +printf "sudo make install\n" >> /home/usr/script.sh +printf "cd ..\n" >> /home/usr/script.sh +printf "\n" >> /home/usr/script.sh +printf "cd sx\n" >> /home/usr/script.sh +printf "sudo make\n" >> /home/usr/script.sh +printf "cd ..\n" >> /home/usr/script.sh +printf "\n" >> /home/usr/script.sh +printf "cd terminal\n" >> /home/usr/script.sh +printf "make\n" >> /home/usr/script.sh +printf "sudo make install\n" >> /home/usr/script.sh +printf "cd ..\n" >> /home/usr/script.sh +printf "\n" >> /home/usr/script.sh +printf "cd utils\n" >> /home/usr/script.sh +printf "sudo make install\n" >> /home/usr/script.sh +printf "cd ..\n" >> /home/usr/script.sh +printf "\n" >> /home/usr/script.sh +printf "cd wallpapers\n" >> /home/usr/script.sh +printf "make\n" >> /home/usr/script.sh +printf "cd ..\n" >> /home/usr/script.sh +printf "\n" >> /home/usr/script.sh +printf "cd vimb\n" >> /home/usr/script.sh +printf "make\n" >> /home/usr/script.sh +printf "sudo make install\n" >> /home/usr/script.sh +printf "cd ..\n" >> /home/usr/script.sh + +chmod +x /home/usr/script.sh +printf "usr\n" | sudo --stdin -u usr -- sh -c /home/usr/script.sh +rm /home/usr/script.sh + +exit