1.2-dev
This commit is contained in:
+4
-4
@@ -2,15 +2,15 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "Fully upgrading, this may take a while..."
|
echo "Fully upgrading, this may take a while..."
|
||||||
sudo apt dist-upgrade -y > /dev/null
|
sudo apt dist-upgrade -y 1>/dev/null
|
||||||
|
|
||||||
echo "Cleaning up..."
|
echo "Cleaning up..."
|
||||||
sudo apt autoremove -y > /dev/null
|
sudo apt autoremove -y 1>/dev/null
|
||||||
|
|
||||||
echo "Installer2.sh complete" >> ./status.txt
|
echo "Installer2.sh complete" >> ./status.txt
|
||||||
|
|
||||||
echo "Part 2 done!"
|
echo "Part 2 done!"
|
||||||
echo "Rebooting now!"
|
# echo "Rebooting now!"
|
||||||
sudo reboot
|
# sudo reboot
|
||||||
echo "Rebooting in 1 minute!"
|
echo "Rebooting in 1 minute!"
|
||||||
sudo shutdown -r +1
|
sudo shutdown -r +1
|
||||||
+7
-7
@@ -28,20 +28,20 @@ fi
|
|||||||
|
|
||||||
# updoot
|
# updoot
|
||||||
echo "Getting new software lists..."
|
echo "Getting new software lists..."
|
||||||
sudo apt update > /dev/null
|
sudo apt update 1>/dev/null
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
echo "Disabling unneeded junk..."
|
echo "Disabling unneeded junk..."
|
||||||
sudo systemctl disable bluetooth > /dev/null
|
sudo systemctl disable bluetooth 1>/dev/null 2>/dev/null
|
||||||
sudo update-rc.d -f fake-hwclock remove > /dev/null
|
sudo update-rc.d -f fake-hwclock remove 1>/dev/null 2>/dev/null
|
||||||
sudo systemctl disable fake-hwclock > /dev/null
|
sudo systemctl disable fake-hwclock 1>/dev/null 2>/dev/null
|
||||||
|
|
||||||
echo "Purging unneeded junk..."
|
echo "Purging unneeded junk..."
|
||||||
sudo apt purge -y "bluetooth*" "usb*" "wireless*" "pci*" "fonts*" build-essential "bluez*" "alsa*" fake-hwclock > /dev/null
|
sudo apt purge -y "bluetooth*" "usb*" "wireless*" "pci*" "fonts*" build-essential "bluez*" "alsa*" fake-hwclock 1>/dev/null
|
||||||
|
|
||||||
# install da packages
|
# install da packages
|
||||||
echo "Installing packages, this may take a while..."
|
echo "Installing packages, this may take a while..."
|
||||||
sudo apt install -y telegraf grafana influxdb pps-tools gpsd gpsd-clients chrony syslog-ng gh lynx btop htop iptraf iotop neovim netcat-traditional python3-smbus i2c-tools picocom > /dev/null
|
sudo apt install -y telegraf grafana influxdb pps-tools gpsd gpsd-clients chrony syslog-ng gh lynx btop htop iptraf iotop neovim netcat-traditional python3-smbus i2c-tools picocom 1>/dev/null
|
||||||
|
|
||||||
# check if pps-gpio is in /etc/modules already
|
# check if pps-gpio is in /etc/modules already
|
||||||
grep -e "pps-gpio" /etc/modules
|
grep -e "pps-gpio" /etc/modules
|
||||||
@@ -56,7 +56,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Cleaning up..."
|
echo "Cleaning up..."
|
||||||
sudo apt autoremove -y > /dev/null # cleanup
|
sudo apt autoremove -y 1>/dev/null # cleanup
|
||||||
|
|
||||||
if [ ! -z $SUDO_USER ]; then
|
if [ ! -z $SUDO_USER ]; then
|
||||||
username=$SUDO_USER
|
username=$SUDO_USER
|
||||||
|
|||||||
+2
-2
@@ -10,10 +10,10 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Updating Software Lists"
|
echo "Updating Software Lists"
|
||||||
sudo apt update > /dev/null
|
sudo apt update 1>/dev/null
|
||||||
|
|
||||||
echo "Installing git"
|
echo "Installing git"
|
||||||
sudo apt install git -y
|
sudo apt install git -y 1>/dev/null
|
||||||
|
|
||||||
echo "Cloning Repo"
|
echo "Cloning Repo"
|
||||||
cd /home/$username
|
cd /home/$username
|
||||||
|
|||||||
+1
-1
@@ -7,5 +7,5 @@ if [ -z $1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running $1 on Services"
|
echo "Running $1 on Services"
|
||||||
sudo systemctl $1 gpsd chrony influxdb telegraf grafana-server syslog-ng
|
sudo systemctl $1 gpsd chrony influxdb telegraf grafana-server syslog-ng 1>/dev/null
|
||||||
echo "services complete" >> ./status.txt
|
echo "services complete" >> ./status.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user