Difference between revisions of "Raspbian: Instalasi SAMBA untuk file sharing"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
Pertama-tama buat folder tempat menempalnya, misalnya, | Pertama-tama buat folder tempat menempalnya, misalnya, | ||
− | mkdir /var/data/media/temp | + | mkdir -p /var/data/media/temp |
chmod -Rf 777 /var/data/media/temp | chmod -Rf 777 /var/data/media/temp | ||
chown -Rf nobody.nogroup /var/data/media/temp | chown -Rf nobody.nogroup /var/data/media/temp | ||
Line 14: | Line 14: | ||
mount -t cifs //192.168.0.9/media /mnt/server9 -o username=xxxx -o password=123456789 | 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 | 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 | ||
+ | |||
+ | security=share | ||
+ | |||
+ | [share] | ||
+ | path=/var/data | ||
+ | guest ok=yes | ||
+ | browseable=yes | ||
+ | read only=yes |
Latest revision as of 08:18, 3 October 2014
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
security=share
[share] path=/var/data guest ok=yes browseable=yes read only=yes