Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-03-09 20:43:55 -06:00
parent 8c11a42768
commit f8702510ac
1 changed files with 12 additions and 6 deletions

View File

@ -8,19 +8,21 @@ all:
new-install: new-install:
make setup-bash make setup-bash
make setup-vim
make setup-apt
make go make go
setup-bash: setup-bash:
ifeq ($(WIT_BASH),true) ifeq ($(WIT_BASH),true)
echo WIT_BASH is already set WIT_USER=${WIT_USER} echo WIT_BASH is already set WIT_USER=${WIT_USER}
exit false
else else
echo WIT_BASH is not set WIT_USER=${WIT_USER} echo WIT_BASH is not set WIT_USER=${WIT_USER}
cat bashrc/.bashrc >> ~/.bashrc cat bashrc/.bashrc >> ~/.bashrc
endif endif
go: go:
wget https://go.dev/dl/go1.19.linux-amd64.tar.gz wget -c https://go.dev/dl/go1.19.linux-amd64.tar.gz
mv go1.19.linux-amd64.tar.gz /usr/local/ mv go1.19.linux-amd64.tar.gz /usr/local/
git: git:
@ -38,10 +40,14 @@ setup-apt:
mv /etc/apt/sources.list /root/ mv /etc/apt/sources.list /root/
echo "deb http://mirrors.wit.com/debian/ sid main contrib non-free" > /etc/apt/sources.list echo "deb http://mirrors.wit.com/debian/ sid main contrib non-free" > /etc/apt/sources.list
apt update apt update
apt install -y bash_completion wget apt install -y lsof bash-completion libpam-systemd dbus rbd-nbd golang-go \
apt install -y lsof bash-completion libpam-systemd dbus rbd-nbd golang-go git screen vim ethstatus ethtool sysstat \ git screen vim ethstatus ethtool sysstat \
traceroute whois devscripts automake libtool devscripts nmap clang rsync bind9utils dnsutils net-tools \ traceroute whois devscripts automake libtool devscripts nmap clang \
tcpdump wget curl iputils-ping pciutils iptables sysbench man usbutils ssh openssh-server neofetch bc lshw telnet hdparm vrms rsync bind9utils dnsutils net-tools \
tcpdump wget curl iputils-ping pciutils iptables sysbench man usbutils \
ssh openssh-server neofetch bc lshw telnet hdparm vrms
dist-upgrade:
apt dist-upgrade apt dist-upgrade
apt autoremove apt autoremove
service ssh start service ssh start