2023-03-09 17:22:59 -06:00
|
|
|
all:
|
2023-03-09 16:55:49 -06:00
|
|
|
echo is this a new install?
|
|
|
|
|
2023-03-09 17:22:59 -06:00
|
|
|
setup-bash:
|
|
|
|
echo ${WIT_USER}
|
|
|
|
cat bashrc/.bashrc >> ~/.bashrc
|
|
|
|
|
|
|
|
setup-apt:
|
2023-03-09 16:55:49 -06:00
|
|
|
mv /etc/apt/sources.list /root/
|
2023-03-09 17:22:59 -06:00
|
|
|
echo "deb http://mirrors.wit.com/debian/ sid main contrib non-free" > /etc/apt/sources.list
|
2023-03-09 16:55:49 -06:00
|
|
|
apt update
|
|
|
|
apt install -y bash_completion wget
|
|
|
|
apt install -y lsof bash-completion libpam-systemd dbus rbd-nbd golang-go git screen vim ethstatus ethtool sysstat \
|
|
|
|
traceroute whois devscripts automake libtool devscripts nmap clang rsync bind9utils dnsutils net-tools \
|
|
|
|
tcpdump wget curl iputils-ping pciutils iptables sysbench man usbutils ssh openssh-server neofetch bc lshw telnet hdparm vrms
|
|
|
|
apt dist-upgrade
|
|
|
|
apt autoremove
|
|
|
|
service ssh start
|
|
|
|
|
2023-03-09 17:22:59 -06:00
|
|
|
setup-date:
|
2023-03-09 16:55:49 -06:00
|
|
|
@# you need this if your hardware clock is fucked up
|
|
|
|
@# I need to check to see if the clock is before this date, if so, then it's not working
|
|
|
|
wget --method=HEAD -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f 4-9
|
|
|
|
date -s '2023-02-21 11:31:30'
|