From 0d110f0c1d68f79d19e26f458aa3631262c2595a Mon Sep 17 00:00:00 2001 From: WickedYoda <68271168+wickedyoda@users.noreply.github.com> Date: Thu, 6 Jul 2023 13:29:32 -0500 Subject: [PATCH] Change install files and updates --- rasp_pi_install_apps.sh | 90 +++++++++++++++++++++++ install_apps.sh => ubuntu_install_apps.sh | 14 ++-- 2 files changed, 95 insertions(+), 9 deletions(-) create mode 100644 rasp_pi_install_apps.sh rename install_apps.sh => ubuntu_install_apps.sh (84%) diff --git a/rasp_pi_install_apps.sh b/rasp_pi_install_apps.sh new file mode 100644 index 0000000..8f02338 --- /dev/null +++ b/rasp_pi_install_apps.sh @@ -0,0 +1,90 @@ +!/bin/bash + +# ---------------------------------------------------------------------- +# | Add repos | +# ---------------------------------------------------------------------- + +# ---------------------------------------------------------------------- +# | Update sources | +# ---------------------------------------------------------------------- + +sudo apt-get -y update +sudo apt-get -y dist-upgrade +sudo apt-get -y full-upgrade + +# ---------------------------------------------------------------------- +# | Install apps | +# ---------------------------------------------------------------------- + +sudo apt-get -y install \ + wireshark\ + nmap \ + openvpn \ + etherape \ + remmina \ + monitorix \ + samba-common-bin \ + openssh-server \ + smbclient \ + cifs-utils \ + exfat-fuse \ + cups \ + software-properties-common \ + curl \ + unattended-upgrades \ + cron-apt \ + putty \ + gpart \ + deja-dup \ + chromium-browser \ + git \ + curl \ + libgconf-2-4 \ + libappindicator1 \ + +# ---------------------------------------------------------------------- +# | Install Discord | +# ---------------------------------------------------------------------- + +cd /home/traver/Downloads +wget -O discord-0.0.1.deb https://discordapp.com/api/download?platform=linux&format=deb +sudo dpkg -i discord-0.0.1.deb + + +# ---------------------------------------------------------------------- +# | creates folders for shares, Install fstab entries, maps mounts to nas| +# ---------------------------------------------------------------------- + +sudo cp /etc/fstab /etc/ftab.orig.backup + +# cd ~/home/pi + +sudo mkdir /home/pi/naspublic +sudo mkdir /home/pi/nasdownloadedmedia + +sudo echo "//nas/public /home/pi/naspublic cifs vers=2.0,username=admin,password=mypassword,file_mode=0777,dir_mode=0777 0 0 +//nas/DownloadedMedia /home/pi/nasdownloadedmedia cifs vers=2.0,username=traver,password=mypassword,file_mode=0777,dir_mode=0777 0 0" >> /etc/fstab + +sudo mount -a + +# ---------------------------------------------------------------------- +# | Copy OpenVPN configs | +# ---------------------------------------------------------------------- + +cp "smb://NAS/public/Raspberry Pi Setups and Files/mattvpn.ovpn" /home/traver/mattvpn.ovpn + +# ---------------------------------------------------------------------- +# | Install plugin for Netflix and video play on Pi | +# ---------------------------------------------------------------------- + +curl -fsSL https://pi.vpetkov.net -o ventz-media-pi +sh ventz-media-pi + +# ---------------------------------------------------------------------- +# | Complete updates and finalize | +# ---------------------------------------------------------------------- + +sudo apt-get -y update +sudo apt-get -y dist-upgrade +sudo apt-get -y full-upgrade +sudo apt -y autoremove \ No newline at end of file diff --git a/install_apps.sh b/ubuntu_install_apps.sh similarity index 84% rename from install_apps.sh rename to ubuntu_install_apps.sh index b70cbbc..05ff4a2 100644 --- a/install_apps.sh +++ b/ubuntu_install_apps.sh @@ -68,14 +68,10 @@ sudo echo "//nas/public /home/traver/naspublic cifs vers=2.0,username=admin,p sudo mount -a # ---------------------------------------------------------------------- -# | Copy OpenVPN configs | +# | Update sources, Second time to complete installs. | # ---------------------------------------------------------------------- -cp "smb://NAS/public/Raspberry Pi Setups and Files/mattvpn.ovpn" /home/traver/mattvpn.ovpn - -# ---------------------------------------------------------------------- -# | Install plugin for Netflix and video play on Pi | -# ---------------------------------------------------------------------- - -curl -fsSL https://pi.vpetkov.net -o ventz-media-pi -sh ventz-media-pi +sudo apt-get -y update +sudo apt-get -y dist-upgrade +sudo apt-get -y full-upgrade +sudo apt-get -y autoremove \ No newline at end of file