Raspberry pi with samba
Reference
http://raspberrywebserver.com/serveradmin/share-your-raspberry-pis-files-and-folders-across-a-network.html
先安裝samba
sudo apt-get install samba
備份原本的smb.conf
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.org
打開smb.conf編輯
sudo
leafpad /etc/samba/smb.conf &
將smb.conf中的Global
Settings下的兩個變數做改變
workgroup
= your work group
wins
support = yes
在smb.conf最後加入這段
[Share]
comment
= share
path
= /home/pi/
read
only = no
locking
= no
guest
ok = yes
force
user = pi
writeable
= yes
only
guest = yes
create
mask = 0777
directory
mask = 0777
儲存以後重新開啟smaba就可以在網路芳鄰上看到raspberry
pi 了
sudo service samba restart
上面的設定是沒有設定使用者人稱密碼
也可以用
smbpasswd來設定名稱為pi,之後會要求輸入兩次密碼
smbpasswd
-a pi
如果是-an則只有名稱不用密碼
沒有留言:
張貼留言