How to Install Nas System with PI

来源:互联网 发布:淘宝和农村淘宝的区别 编辑:程序博客网 时间:2024/06/11 17:48

I want to share all of my files with all of my equipments in my home,so I want to install an Nas system in my PI.
firstly setup some related softwares:

sudo apt-get install samba samba-common-binsudo apt-get install netatalk ##support for AFPsudo apt-get install avahi-daemon ##Let the PC in my local network can find it

config the smb.conf file:

sudo nano /etc/samba/smb.conf##at the end of the file[public]comment = Public Storage ##commentspath = /mnt/myDriver/Nas ##the path of the share filesread only = no ##authoritycreate mask = 0777 ##the default authority of the filedirectory mask = 0777 ## the default authority of the directoryguest ok = yes ##the default visitor is guestbrowseable = yes

then restart it:

smbd restart

but I just can see my share file but can’t visit it,so I should add my user to the smbpasswd:

smbpasswd -a pismbpasswd -e pi

also you can add many users.
Then you can use it ~

原创粉丝点击