-
Notifications
You must be signed in to change notification settings - Fork 0
/
old-app-setup.sh
55 lines (42 loc) · 1.68 KB
/
old-app-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
!/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 \
openvpn \
samba-common-bin \
openssh-server \
smbclient \
cifs-utils \
exfat-fuse \
exfat-utils \
software-properties-common \
python \
curl \
unattended-upgrades \
cron-apt \
deja-dup \
git \
curl \
snapd \
libgconf-2-4 \
libappindicator1 \
# ----------------------------------------------------------------------
# | creates folders for shares, Install fstab entries, maps mounts to nas|
# ----------------------------------------------------------------------
sudo cp /etc/fstab /etc/ftab.orig.backup
# cd ~/home/traver
sudo mkdir /home/traver/naspublic
sudo mkdir /home/traver/nasdownloadedmedia
echo "//nas/public /home/traver/naspublic cifs vers=2.0,username=admin,password=mypassword,file_mode=0777,dir_mode=0777 0 0
//nas/DownloadedMedia /home/traver/nasdownloadedmedia cifs vers=2.0,username=traver,password=mypassword,file_mode=0777,dir_mode=0777 0 0" >> /etc/fstab
sudo mount -a