archx/rocky.sh

13 lines
494 B
Bash
Raw Permalink Normal View History

2023-03-16 23:17:38 +01:00
#!/bin/bash
2023-03-17 02:52:54 +01:00
sudo dnf install epel-release wget git nano zsh sqlite -y
2023-03-17 00:08:28 +01:00
sudo groupadd sudo
sudo bash -c 'echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
2023-03-16 23:17:38 +01:00
sudo useradd -md /home/zotan -s /bin/zsh -UG sudo zotan
2023-03-17 00:11:40 +01:00
sudo -u zotan mkdir /home/zotan/.ssh
sudo -u zotan wget -O /home/zotan/.ssh/authorized_keys share.zotan.services/authorized_keys
sudo -u zotan bash -c 'curl ztn.sh/prezto.sh -L | zsh'
2023-03-17 02:52:54 +01:00
# Don't automatically clear the terminal on logout
sudo sed -i '/^\s*clear\s*$/d' /etc/zlogout