Cloud/Shahed/AN: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 1: Line 1:
==SMB » Share ==
==SMB » Share ==
  '''ORICO » HS500 Pro » Apps » Login''' » Quick Access » LAN Share » Samba
  '''ORICO » HS500 Pro » Apps » Login''' » Quick Access » LAN Share » Samba
  » '''+ Sub Account [Account, Password, Shared Directory]''' » Create
  » '''+ Sub Account [Account, Password, Shared Directory] » Create'''


==SMB » Client » Install==
==SMB » Client » Install==

Revision as of 01:57, 10 April 2025

SMB » Share

ORICO » HS500 Pro » Apps » Login » Quick Access » LAN Share » Samba
» + Sub Account [Account, Password, Shared Directory] » Create

SMB » Client » Install

cat <<'EXE'| sudo bash
apt-get update;echo
apt list -a --upgradable;echo
apt-get install -y cifs-utils;echo
EXE

SMB » Client » Shahed » AB

cat <<'EXE'| sudo bash
cat <<'INI'| tee /etc/default/nfs-shahed-ab >/dev/null
username=shahed-ab
password=sadaqah!
INI

chmod 600       /etc/default/nfs-shahed-ab
chown root:root /etc/default/nfs-shahed-ab
EXE

cat <<'EXE'| sudo bash
mkdir -p      /var/nfs/shahed-ab
mount -t cifs //shahed-an.local/shahed-ab /var/nfs/shahed-ab -o credentials=/etc/default/nfs-shahed-ab
EXE

sudo df -h
sudo umount /var/nfs/shahed-ab
cat <<'FST'| sudo tee -a /etc/fstab >/dev/null

# ORICO » HS500 Pro » 792A » NFS » 7.2TB
//shahed-an.local/shahed-ab /var/nfs/shahed-ab cifs credentials=/etc/default/nfs-shahed-ab,uid=1000,gid=1000,file_mode=0770,dir_mode=0770,nofail,x-systemd.automount,_netdev,soft 0  0
FST

sudo systemctl daemon-reload
sudo mount -a
sudo dmesg|tail -20

References