Arch搭建Nas系統(4)之四:網路共享

猛练自然强發表於2024-09-08

4.1 安裝Samba服務

4.1.1 安裝配置Samba

a)安裝samba

sudo pacman -S samba

b) 配置samba

配置samba

vim /etc/samba/smb.conf


輸入內容:
[global]
    workgroup = WORKGROUP
    server string = archnas
    security = user
    map to guest = Bad User

[data]
    comment = data
    path = /data
    public = yes
    browseable = yes
    writeable = yes
    read only = no
    available = yes
    guest ok = yes
    write list = archnas

c)檢查配置

檢查smb配置

testparm

d) 啟用服務

sudo systemctl restart nmb && sudo systemctl enable nmb
sudo systemctl restart smb && sudo systemctl enable smb

4.1.2安裝配置WSDD

安裝wsdd。這樣windows無法可以在網路發現nas主機。

pacman -S wsdd
sudo systemctl restart wsdd && sudo systemctl enable wsdd

4.2 安裝Rsync服務:

4.2.2 安裝配置Rsync

a) 安裝rsync

sudo pacman -S rsync

b) 同步上傳到遠端rsync伺服器

rsync -avzPt books somebody@192.168.10.228::data

相關文章