32 lines
653 B
Bash
32 lines
653 B
Bash
|
#!/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 -)"
|
||
|
|
||
|
|
||
|
|
||
|
|