Change install files and updates

This commit is contained in:
WickedYoda committed 2023-07-06 13:29:32 -05:00
1 parent 1320e6a86a
commit 0d110f0c1d
2 files changed
+95 -9

No files matched your search

+90
View File
@@ -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
+5 -9
View File
@@ -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