blog-contributions/servers/Arch/3.sh

32 lines
653 B
Bash
Raw Normal View History

2024-07-25 12:23:36 +02:00
#!/bin/sh
if [ "$EUID" -ne 0 ]
then
echo 'MUST RUN AS ROOT!'
exit
fi
pacman -S firefox curl keepass discord telegram-desktop virt-manager qemu libvirt ebtables dnsmasq bridge-utils libreoffice
username=$(ls /home | head -n1 | sed 's/\/$//')
sudo gpasswd -a $username libvirt
sudo systemctl enable libvirtd --now
sudo systemctl status libvirtd
mkdir /home/$username/Documents/
mkdir /home/$username/Documents/Github/
mkdir /home/$username/Documents/ISOS/
mkdir /home/$username/backups
sudo -u $username bash -c "$(wget https://raw.githubusercontent.com/ech1/serverside/master/ssh/ssh_arch.sh -O -)"