Skip to content

Samba filesharing

Schmurtz edited this page Jul 26, 2023 · 18 revisions

DRAFT

Overview

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.

If the folder you try to access does not exist locally on the device you will get an error.

Features

File transfer

Mounted drive in Windows

Instant file visibility

Customisable share folders

Activating

You'll find it in Tweaks -> Network -> Samba (You can also enable this with the master toggle in the Networks menu by using your dpad left/right)

image

Make a note of the IP address at the top here, you'll need it for the next steps!

Activating auth

This open is in the Samba submenu and will enable authentication for Samba.

One thing to note is windows can sometimes cache the session. Auth will be instantly enabled but the client may not acknowledge this until you logout/reboot the client PC. However, any other new client connections will be met with the login screen.

The default username and password is currently onion:onion

Usage

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:

image

Now, type in the IP address of your MMP in this format: \\x.x.x.x, e.g:

image

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!

image

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 clicking Pin to Quick access

image

The shares will now appear in your quick access pane:

image

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!

Share control

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.

image

Adding more shares (or removing them!)

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.

Security

Samba offers auth at a unix user level. The current username and password is onion:onion

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.

Check out the new wiki here:

onionui.github.io/docs

Clone this wiki locally