Files
svr/install/arch.sh
T

37 lines
731 B
Bash
Raw Normal View History

2026-01-23 08:55:18 +01:00
#!/usr/bin/bash
if [[ "$EUID" -ne "0" ]]; then
echo "This script must be run as root"
exit 1
fi
if [ $# -ne 1 ] ; then
echo usage $0 MACHINE_DIR
exit 0
fi
MACHINE_DIR=${1:-"svr"}
bash tree_cpy.sh $MACHINE_DIR/usr
# append sources
bash config.sh
2026-01-23 08:55:18 +01:00
source /home/.bashrc
2026-01-23 09:59:19 +01:00
bash config.sh
2026-01-23 08:55:18 +01:00
source /home/.bashrc
bash chmod.sh
# append sources
2026-01-23 08:55:18 +01:00
bash pacman.sh
2026-01-23 09:59:19 +01:00
source /home/.bashrc
2026-01-23 08:55:18 +01:00
bash network.sh
#systemctl enable --now NetworkManager #enable dongle
#pacman --noconfirm -Syu ulogd
#NETWORKDIR="$MACHINE_DIR/networking"
##TOR_LIST=$NETWORKDIR/tor_list.txt
##curl https://www.dan.me.uk/torlist/?full= > $TOR_LIST
#systemctl enable ulogd
#systemctl start ulogd
#bash $NETWORKDIR/iptables_script.sh -f $NETWORKDIR/ip_to_ban.txt -r