manual setup is now 2nd class -- use ansible

This commit is contained in:
yourfriendoss 2023-10-15 13:07:44 +03:00
parent 485ba81761
commit 84c3be4e5f
2 changed files with 68 additions and 56 deletions

65
apps.md
View file

@ -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`

59
manual.md Normal file
View file

@ -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
```