Fix ufw not blocking Docker forwarding ports:
echo '{"iptables": false}' >/etc/docker/daemon.json| # If your machine crashes during an OS kernel update, you may not be able to boot anymore. | |
| # You can boot from a USB drive (Arch install ISO) and run the following commands to fix it: | |
| lsblk # Replace "/dev/sda" in the following commands with your actual hard disk device | |
| cryptsetup luksOpen /dev/sda2 linux | |
| mount /dev/mapper/Linux-root /mnt | |
| mount /dev/mapper/Linux-home /mnt/home | |
| mount /dev/sda1 /mnt/boot | |
| swapon /dev/mapper/Linux-swap | |
| arch-chroot /mnt |
| #!/bin/bash | |
| # | |
| # An example hook script to prepare the commit log message. | |
| # Called by "git commit" with the name of the file that has the | |
| # commit message, followed by the description of the commit | |
| # message's source. The hook's purpose is to edit the commit | |
| # message file. If the hook fails with a non-zero status, | |
| # the commit is aborted. | |
| # | |
| # To enable this hook, rename this file to "prepare-commit-msg". |
| echo 'SET FOREIGN_KEY_CHECKS = 0;' > tmp.sql | |
| mysqldump --add-drop-table --no-data <user, password, db> | grep 'DROP TABLE' >> tmp.sql | |
| echo 'SET FOREIGN_KEY_CHECKS = 1;' >> tmp.sql | |
| mysql <user, password, db> < tmp.sql | |
| rm tmp.sql |
Fix ufw not blocking Docker forwarding ports:
echo '{"iptables": false}' >/etc/docker/daemon.jsonQuick install guide for Arch -- if you're looking for an automated installer, consider Arch Anywhere.
Download the latest version from: https://www.archlinux.org/download/