-
-
Notifications
You must be signed in to change notification settings - Fork 231
Samba filesharing
DRAFT
The Samba is a file sharing protocol that provides integrated sharing of files and directories between your Miyoo Mini plus and your PC (Windows/Unix/Linux). It enables easy access, allowing you to share, access, and modify files as if they were stored locally on your PC.
If you're on Windows 10 you may have issues accessing Samba due to a certain update package. This can be resolved by the below process:
Open the Local Group Policy Editor (gpedit.msc) on your Windows device.
In the console tree, select Computer Configuration > Administrative Templates > Network > Lanman Workstation.
For the setting, right-click Enable insecure guest logons and select Edit.
Select Enabled > OK.
File transfer
Mounted drive in Windows
Instant file visibility
Customisable share folders
You'll find it in Tweaks -> Network -> Samba
Make a note of the IP address at the top here, you'll need it for the next steps!
Samba will provide you a streamlined method of transferring files across to your Miyoo Mini Plus. The folders you can access will be hosted by the device, and will be accessible through your file browser within Windows/Linux.
Once you've enabled Samba within tweaks, it will instantly activate.
To browse to your shared folders within windows:
Hit your start button:
Now, type in the IP address of your MMP in this format: \\x.x.x.x, e.g:
Press Enter. It may take a second but an explorer window will open and you'll be met with some pre-configured locations we thought would get you started!
If you have Network File Sharing enabled on Windows, you'll also be able to pin the location to your
quick access
by finding it in the left pane of your explorer window, and clickingPin to Quick access
The shares will now appear in your quick access pane:
The subfolders can also be mapped as network shares by right clicking on "This PC" or "My Computer" and clicking "Map network drive" - Bare in mind you will have the map to a share directory instead of the root; for example:
\\192.168.1.215\screenshots
- Give it a drive letter and it's ready!
We've made controlling shares as easy as possible; from the "Samba: Network file share..." menu item, press A. You'll now be met with a list of shares, these can be instantly toggled on or off.
It's your Onion.. So let's get you setup with more (or less!) shares. We'll need to edit a file called smb.conf which is found in /mnt/SDCARD/.tmp_update/config/smb.conf
.
As always, there's many ways to access this file. You can use FTP/HTTP or pull out the SD card and do it the manual way.
To add a share folder, just make a copy of and existing entry and modify the path/name, restart Samba in tweaks and you're ready to go - it'll automatically appear in your Samba menu in tweaks and be ready to access.
Samba currently doesn't offer an auth, the environment doesn't allow it as we don't have access to /etc/passwd. We're working in the background to add more layers of security but in the meantime make sure to disable Samba (and other services you're not activley using!) while you're on unsecure/public networks.
You'll see there's a share in
smb.conf
called "__SDCARD"; this should be left disabled unless you're absolutely sure you want to share the whole SD folder structure.