This commit is contained in:
2026-04-27 01:30:33 +02:00
parent 9e29b8b096
commit 49e7930541
80 changed files with 924 additions and 703 deletions

View File

@@ -3,7 +3,7 @@ title: Install Arch
tags:
- arch
requires:
- partitions
- system/partitions.md
---
Keyboard layout changed.

View File

@@ -3,7 +3,8 @@ title: Install yay
tags:
- distros
- arch
requirements: [ "pacman" ]
requires:
- distros/arch/basic_install.md
---
```sh
@@ -17,14 +18,14 @@ The flags are mostly the same as in `pacman`.
But running `yay` without flags will do the update like `yay -Syu` and with package name it will search packages in the AUR and `pacman` repos, and let you choose which to install.
```sh
yay <search_term>
yay ${search_term}
```
Building the package can usually take some time, and after the build it will ask for the `sudo` password.
If you leave, the installation will fail.
To avoid this, you can use the flag `--sudoloop` and enter the sudo password initially and it will loop it until the installation is finished.
To avoid this, you can use the flag `--sudoloop` and enter the `sudo` password initially and it will loop it until the installation is finished.
```sh
yay -S --noconfirm --sudoloop <package_name>
yay -S --noconfirm --sudoloop ${package_name}
```

View File

@@ -2,7 +2,9 @@
title: Arch Maintenance
tags:
- arch
requirements: [ "pacman" ]
requires:
- pacman
- vim
---
# Package Cache

View File

@@ -2,7 +2,8 @@
title: pacman
tags:
- distros
requirements: [ "Install Arch" ]
requires:
- distros/arch/basic_install.md
---
Packages are kept in /var/cache/pacman/pkg.

View File

@@ -2,7 +2,8 @@
title: pacman - Extras
tags:
- distros
requirements: [ "pacman" ]
requires:
- distros/arch/pacman.md
---
## Unattended Actions
@@ -24,7 +25,7 @@ You can tell `pacman` that this is a dependency for another package:
```sh
pacman -S --noconfirm --asdeps <weird music player>
pacman -S --noconfirm --asdeps ${weird_music_player}
```
When you [remove orphaned packages](pacman.md), the package will be automatically uninstalled.

View File

@@ -1,13 +1,15 @@
---
title: Arch Maintenance with yay
title: Arch maintenance with yay
tags:
- arch
requirements: [ "Arch Maintenance" ]
- maintenance
requires:
- distros/arch/maintenance.md
---
# Package Cache
Just like `pacman`
Just like `[pacman](distros/arch/pacman.md)` with a couple of extras.
```sh
ls ~/.cache/yay/ | wc -l

View File

@@ -2,34 +2,53 @@
title: Void Autologin
tags:
- void
- autologin
---
Make the autologin service:
The virtual terminals are run as services.
Make a new service by making symbolic links to the generic one.
```sh
cp -R /etc/sv/agetty-tty1 /etc/sv/agetty-autologin-tty1
login=agetty-autologin
sudo cp -rs /etc/sv/agetty-generic/ /etc/sv/${login}/
```
Copy the configuration file for the `agetty-tty1` service, and add the `--autologin` argument.
```sh
sed "s/--noclear/--autologin ${USER} &/" /etc/sv/agetty-tty1/conf | sudo tee /etc/sv/${login}/conf
```
It should look like this:
```
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
if [ "${tty}" = "tty1" ]; then
GETTY_ARGS="--noclear"
fi
# util-linux specific settings
if [ "${tty}" = "tty1" ]; then
GETTY_ARGS="--autologin ${your_username} --noclear"
fi
fi
GETTY_ARGS="--autologin [ your username ] --noclear"
BAUD_RATE=38400
TERM_NAME=linux
```
Then stick this at the end of the bashrc:
If you see the actual variable `${USER}` then you probably used the wrong quotes.
Disable the `tty1` service (because the login takes its place).
```sh
# autologin on tty1
if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
exec startx
fi
sudo touch /etc/sv/agetty-tty1/down
```
Enable your `${login}` service:
```sh
sudo ln -s /etc/sv/${login} /var/service/
```
Reboot.
Pizza party for one.