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) # Automatic setup
Install automatically:
Make new user
``` ```
pacman -S sudo pacman -S ansible wget
useradd -mU yf wget https://raw.githubusercontent.com/yourfriendoss/dots/main/play.yml
echo "yf ALL=(ALL:ALL) ALL" >> /etc/sudoers ansible-galaxy collection install community.general
passwd yf ansible-galaxy collection install kewlfft.aur
su yf ansible-playbook -K play.yml
``` ```
Install yay # 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!).
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
```
# apps # apps
Deps: `pkgconfig patch flex bison which` 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
```