Februari 27, 2017

sharing data from flashdrive to all devices on the same network with samba

I use Orange pi zero to share my data in the flashdrive with a samba so you must have orange pi zero and flashdrive, firstly install armbian jessie to microsd an connect the microsd to microsd port in orange pi zero, next connect flashdrive to usb port in orange pi zero and now we must set samba.conf and fstab.

$ sudo blkid
to show uid the partition of flashdrive
$ sudo nano /etc/fstab
for editting the fstab file to setting mount and unmount the partition
and enter this sentence
/dev/sda1 /media/username/data ntfs defaults, umask=0022,uid=1000, gid=1000 0 0
create the mountpoint folder
$sudo mkdir /media/arba/data
$ sudo nano  /etc/samba/smb.conf
this file locate file or folder which we are share to other devices in the same network so modify this file
and i create like this
[MyData]
 comment = my data to share
 path = /media/username/data
 browseable = yes
 guest ok = yes
 read only = yes
 create mask = 0755
 force user = username
and the last we must reboot the system and voila we can access shared folder in difference devices, thanks you for reading

Tidak ada komentar:

mencoba menggunakan zram di raspberry pi

saya beberapa hari yang lalu mencoba mengaktifkan zram untuk membuat cadangan jika ram udah hampir penuh untuk dipindah ke zram, sejauh ini...