I can't be bothered to make a video explanation of this, so have chatGPT explain it for you :3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo sed -i -e "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/" /etc/ssh/sshd_config | |
sudo chattr -f +i /etc/ssh/sshd_config | |
sudo systemctl restart sshd | |
mkdir -p /home/lyra/.config/systemd/user/ | |
cat <<EOM >/opt/startup.sh | |
#!/bin/sh | |
sudo systemctl restart sshd | |
EOM | |
sudo chmod u+x /opt/startup.sh | |
sudo cat <<EOM >/etc/systemd/system/startup.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mount partitions | |
sudo mount /dev/nvme0n1p5 /mnt | |
sudo mount /dev/nvme0n1p1 /mnt/boot/efi | |
# Mount virtual filesystems | |
sudo mount -o bind /dev /mnt/dev | |
sudo mount -o bind /proc /mnt/proc | |
sudo mount -o bind /sys /mnt/sys | |
sudo mount -o bind /run /mnt/run | |
sudo mount -o bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars | |
# chroot into system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "hello world!" |
The inevitable has come yet again. I have destroyed my system, cuz' pamac's a bitch.
This gist exist as I reinstall Arch Linux every so often, and I want an easy way to install applications and set configurations.
This init script almost do not need user interactions except for other programs that do not have an option to not prompt the user.
This gist exists as I reinstall Arch Linux every so often, and I want an easy way to install applications and set configurations.
This install script almost do not need user interactions except for other programs that do not have an option to not prompt the user.
Needed to be run at root account.
Tested on Arch Linux 5.14.11-arch1-1.