Raspbian: Instalasi SAMBA untuk file sharing
Revision as of 07:41, 3 October 2014 by Onnowpurbo (talk | contribs)
Instalasi
apt-get install samba cifs-utils
Menempelkan folder yang di sharing dari komputer lain. Pertama-tama buat folder tempat menempalnya, misalnya,
mkdir -p /var/data/media/temp chmod -Rf 777 /var/data/media/temp chown -Rf nobody.nogroup /var/data/media/temp
Mount
mount -t cifs //192.168.0.9/media /mnt/server9 -o username=xxxx -o password=123456789 mount -t cifs //192.168.0.9/media2 /mnt/server9-2 -o username=xxxx -o password=123456789
Share file / folder /var/data dengan nama share.
Edit file
vi /etc/samba/smb.conf
Isi dengan
[share] path=/var/data guest ok=yes browseable=yes read only=yes