From 84c3be4e5f0ca4a7bae13c851fa03b2b578e175e Mon Sep 17 00:00:00 2001 From: yourfriendoss <81387799+yourfriendoss@users.noreply.github.com> Date: Sun, 15 Oct 2023 13:07:44 +0300 Subject: [PATCH] manual setup is now 2nd class -- use ansible --- apps.md | 65 ++++++++----------------------------------------------- manual.md | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 56 deletions(-) create mode 100644 manual.md diff --git a/apps.md b/apps.md index dab7d63..a99cbc9 100644 --- a/apps.md +++ b/apps.md @@ -1,62 +1,15 @@ -# initial commands (will be done by ansible) - -Make new user +# Automatic setup +Install automatically: ``` -pacman -S sudo -useradd -mU yf -echo "yf ALL=(ALL:ALL) ALL" >> /etc/sudoers -passwd yf -su yf +pacman -S ansible wget +wget https://raw.githubusercontent.com/yourfriendoss/dots/main/play.yml +ansible-galaxy collection install community.general +ansible-galaxy collection install kewlfft.aur +ansible-playbook -K play.yml ``` -Install yay -``` -sudo pacman -S git fakeroot make gcc -git clone https://aur.archlinux.org/yay.git -cd yay -makepkg -si -cd .. -rm -rf yay -``` - -Setup getty autologin -``` -mkdir /etc/systemd/system/getty@tty1.service.d - -cat <<- "EOF" > /etc/systemd/system/getty@tty1.service.d/skip-username.conf -[Service] -ExecStart= -ExecStart=-/sbin/agetty -o '-p -- yf' --noclear --skip-login - $TERM -Environment=XDG_SESSION_TYPE=wayland -EOF -``` - -Remove password -``` -sudo sed -i 's/yf:[^:]*/yf:/' /etc/shadow -``` - -Install stow -``` -yay -S stow -``` - -Install dotfiles -``` -git clone --recurse-submodules https://github.com/yourfriendoss/dots .shell -cd .shell -stow src -``` - -Automatically log into Hyprland -``` -cat <<- "EOF" > /home/yf/.bash_profile -if [[ "$(tty)" == "/dev/tty1" ]] -then -Hyprland -fi -EOF -``` +# Manual setup +[Visit here](https://github.com/yourfriendoss/dots/blob/main/install-arch.md), to install my setup manually (Warning, this might be out of date!). # apps Deps: `pkgconfig patch flex bison which` diff --git a/manual.md b/manual.md new file mode 100644 index 0000000..2d354cf --- /dev/null +++ b/manual.md @@ -0,0 +1,59 @@ +# Manually install my setup +## I reccomend to use the automatic setup outlined in apps.md instead. +Make new user +``` +pacman -S sudo +useradd -mU yf +echo "yf ALL=(ALL:ALL) ALL" >> /etc/sudoers +passwd yf +su yf +``` + +Install yay +``` +sudo pacman -S git fakeroot make gcc +git clone https://aur.archlinux.org/yay.git +cd yay +makepkg -si +cd .. +rm -rf yay +``` + +Setup getty autologin +``` +mkdir /etc/systemd/system/getty@tty1.service.d + +cat <<- "EOF" > /etc/systemd/system/getty@tty1.service.d/skip-username.conf +[Service] +ExecStart= +ExecStart=-/sbin/agetty -o '-p -- yf' --noclear --skip-login - $TERM +Environment=XDG_SESSION_TYPE=wayland +EOF +``` + +Remove password +``` +sudo sed -i 's/yf:[^:]*/yf:/' /etc/shadow +``` + +Install stow +``` +yay -S stow +``` + +Install dotfiles +``` +git clone --recurse-submodules https://github.com/yourfriendoss/dots .shell +cd .shell +stow src +``` + +Automatically log into Hyprland +``` +cat <<- "EOF" > /home/yf/.bash_profile +if [[ "$(tty)" == "/dev/tty1" ]] +then +Hyprland +fi +EOF +``` \ No newline at end of file