mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
25 lines
527 B
Bash
25 lines
527 B
Bash
# base
|
|
apt update
|
|
apt-get -y install \
|
|
samba-common-bin \
|
|
smbclient \
|
|
cifs-utils \
|
|
exfat-fuse \
|
|
curl \
|
|
unattended-upgrades \
|
|
cron-apt \
|
|
git \
|
|
curl
|
|
|
|
# Make directories
|
|
cd /home
|
|
mkdir nasmedia
|
|
mkdir naspublic
|
|
|
|
# Echo the command below into the file /etc/fstab
|
|
echo '//nas/public /home/naspublic cifs vers=2.0,username=admin,password=,file_mode=0777,dir_mode=0777 0 0
|
|
//nas/DownloadedMedia /home/nasmedia cifs vers=2.0,username=admin,password=,file_mode=0777,dir_mode=0777 0 0' | sudo tee -a /etc/fstab
|
|
|
|
|
|
|