testan a reboold
This commit is contained in:
+2
-2
@@ -8,10 +8,10 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Fully upgrading, this may take a while..."
|
echo "Fully upgrading, this may take a while..."
|
||||||
sudo apt dist-upgrade -y 1>/dev/null
|
sudo apt dist-upgrade -y
|
||||||
|
|
||||||
echo "Cleaning up..."
|
echo "Cleaning up..."
|
||||||
sudo apt autoremove -y 1>/dev/null
|
sudo apt autoremove -y
|
||||||
|
|
||||||
echo "Installer2.sh complete" >> /home/$username/Precision-Timekeeping-Fuckery/status.txt
|
echo "Installer2.sh complete" >> /home/$username/Precision-Timekeeping-Fuckery/status.txt
|
||||||
|
|
||||||
|
|||||||
+19
-8
@@ -10,8 +10,8 @@ fi
|
|||||||
# grafana repo and install
|
# grafana repo and install
|
||||||
echo "Add Grafana repo..."
|
echo "Add Grafana repo..."
|
||||||
sudo mkdir -p /etc/apt/keyrings/
|
sudo mkdir -p /etc/apt/keyrings/
|
||||||
wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg 1>/dev/null 2>/dev/null
|
wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg
|
||||||
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list 1>/dev/null 2>/dev/null
|
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
|
||||||
|
|
||||||
# telegraf repo and install
|
# telegraf repo and install
|
||||||
echo "Add Telegraf repo..."
|
echo "Add Telegraf repo..."
|
||||||
@@ -20,9 +20,9 @@ https://repos.influxdata.com/influxdata-archive.key \
|
|||||||
&& echo "943666881a1b8d9b849b74caebf02d3465d6beb716510d86a39f6c8e8dac7515 influxdata-archive.key" \
|
&& echo "943666881a1b8d9b849b74caebf02d3465d6beb716510d86a39f6c8e8dac7515 influxdata-archive.key" \
|
||||||
| sha256sum -c - && cat influxdata-archive.key \
|
| sha256sum -c - && cat influxdata-archive.key \
|
||||||
| gpg --dearmor \
|
| gpg --dearmor \
|
||||||
| sudo tee /etc/apt/trusted.gpg.d/influxdata-archive.gpg 1>/dev/null 2>/dev/null \
|
| sudo tee /etc/apt/trusted.gpg.d/influxdata-archive.gpg \
|
||||||
&& echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main' \
|
&& echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main' \
|
||||||
| sudo tee /etc/apt/sources.list.d/influxdata.list 1>/dev/null 2>/dev/null
|
| sudo tee /etc/apt/sources.list.d/influxdata.list
|
||||||
|
|
||||||
# remove dat key file thing
|
# remove dat key file thing
|
||||||
if [ -f ./influxdata-archive.key ]; then
|
if [ -f ./influxdata-archive.key ]; then
|
||||||
@@ -38,16 +38,16 @@ sudo apt update
|
|||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
echo "Disabling unneeded junk..."
|
echo "Disabling unneeded junk..."
|
||||||
sudo systemctl disable bluetooth 1>/dev/null 2>/dev/null
|
sudo systemctl disable bluetooth
|
||||||
sudo update-rc.d -f fake-hwclock remove 1>/dev/null 2>/dev/null
|
sudo update-rc.d -f fake-hwclock remove
|
||||||
sudo systemctl disable fake-hwclock 1>/dev/null 2>/dev/null
|
sudo systemctl disable fake-hwclock
|
||||||
|
|
||||||
echo "Purging unneeded junk..."
|
echo "Purging unneeded junk..."
|
||||||
sudo apt purge -y "bluetooth*" "usb*" "wireless*" "pci*" "fonts*" "bluez*" "alsa*" fake-hwclock
|
sudo apt purge -y "bluetooth*" "usb*" "wireless*" "pci*" "fonts*" "bluez*" "alsa*" fake-hwclock
|
||||||
|
|
||||||
# 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 gawk ripgrep telegraf grafana influxdb unattended-upgrades net-tools htop btop iptraf iotop screen byobu python3 python3-pip python3-virtualenv python3-setuptools thefuck wget lynx nmap zip unzip 7zip net-tools restic ripgrep pps-tools git gh gpsd gpsd-clients chrony syslog-ng gh lynx btop htop iptraf-ng iotop neovim netcat-traditional python3-smbus i2c-tools picocom
|
sudo apt install -y gawk ripgrep telegraf grafana influxdb unattended-upgrades build-essential net-tools htop btop iptraf iotop screen byobu python3 python3-pip python3-virtualenv python3-setuptools thefuck wget lynx nmap zip unzip 7zip net-tools restic ripgrep pps-tools git gh gpsd gpsd-clients chrony syslog-ng gh lynx btop htop iptraf-ng iotop neovim netcat-traditional python3-smbus i2c-tools picocom
|
||||||
|
|
||||||
# echo "Setting hostname to grandfatherclock"
|
# echo "Setting hostname to grandfatherclock"
|
||||||
# sudo hostnamectl set-hostname grandfatherclock
|
# sudo hostnamectl set-hostname grandfatherclock
|
||||||
@@ -79,6 +79,17 @@ sudo usermod -aG dialout _chrony
|
|||||||
sudo usermod -aG i2c _chrony
|
sudo usermod -aG i2c _chrony
|
||||||
sudo usermod -aG i2c gpsd
|
sudo usermod -aG i2c gpsd
|
||||||
|
|
||||||
|
# installing ble.sh
|
||||||
|
echo "Installing BLE.sh"
|
||||||
|
cd /tmp
|
||||||
|
git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.git
|
||||||
|
make -C ble.sh install PREFIX=/home/$username/.local
|
||||||
|
echo '# ble.sh' >> /home/$username/.bashrc
|
||||||
|
echo -e "\n# ble.sh" >> /home/$username/.bashrc
|
||||||
|
echo "source -- /home/$username/.local/share/blesh/ble.sh" >> /home/$username/.bashrc
|
||||||
|
|
||||||
|
# update the log
|
||||||
|
cd /home/$username/Precision-Timekeeping-Fuckery
|
||||||
echo "installer3.sh complete" >> /home/$username/Precision-Timekeeping-Fuckery/status.txt
|
echo "installer3.sh complete" >> /home/$username/Precision-Timekeeping-Fuckery/status.txt
|
||||||
|
|
||||||
echo "Part 3 Done!"
|
echo "Part 3 Done!"
|
||||||
|
|||||||
+7
-7
@@ -19,19 +19,19 @@ bash ./reconfig_full.sh ./info-level-conf-huawaii
|
|||||||
# enable services
|
# enable services
|
||||||
echo "Enabling Services..."
|
echo "Enabling Services..."
|
||||||
echo -e "\tEnabling gpsd on boot"
|
echo -e "\tEnabling gpsd on boot"
|
||||||
sudo systemctl enable gpsd 1>/dev/null
|
sudo systemctl enable gpsd
|
||||||
echo -e "\tEnabling chrony on boot"
|
echo -e "\tEnabling chrony on boot"
|
||||||
sudo systemctl enable chrony 1>/dev/null
|
sudo systemctl enable chrony
|
||||||
echo -e "\tEnabling influxdb on boot"
|
echo -e "\tEnabling influxdb on boot"
|
||||||
sudo systemctl enable influxdb 1>/dev/null
|
sudo systemctl enable influxdb
|
||||||
echo -e "\tEnabling telegraf on boot"
|
echo -e "\tEnabling telegraf on boot"
|
||||||
sudo systemctl enable telegraf 1>/dev/null
|
sudo systemctl enable telegraf
|
||||||
echo -e "\tEnabling chrony on boot"
|
echo -e "\tEnabling chrony on boot"
|
||||||
sudo systemctl enable grafana-server 1>/dev/null
|
sudo systemctl enable grafana-server
|
||||||
echo -e "\tEnabling syslog-ng on boot"
|
echo -e "\tEnabling syslog-ng on boot"
|
||||||
sudo systemctl enable syslog-ng 1>/dev/null
|
sudo systemctl enable syslog-ng
|
||||||
echo -e "\tEnabling logrotate on boot"
|
echo -e "\tEnabling logrotate on boot"
|
||||||
sudo systemctl enable logrotate 1>/dev/null
|
sudo systemctl enable logrotate
|
||||||
|
|
||||||
echo "done!" > /home/$username/Precision-Timekeeping-Fuckery/status.txt
|
echo "done!" > /home/$username/Precision-Timekeeping-Fuckery/status.txt
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user