這邊簡單紀錄一下
目前用的是archlinux 6.1.54-2-rpi-ARCH配合Raspberry pi 2的板子
先行做套件更新
pacman -Suy
把samba裝起來
pacman -S samba
接下來用編輯器把smb.conf建立起來
[global]
workgroup = XXXX
server min protocol = SMB3
server string = XXXX
netbios name = XXXX
security = uesr
hosts allow = 127.
[home]
comment = home
browseable = no
writable = yes
directory mode = 0755
create mode = 0664
然後用testparm 確認smb.conf是否正確
接下來用systemctl啟動
systemctl start smb
systemctl start nmb
systemctl enable smb
systemctl enable nmb