You are on page 1of 23

Preface

About SunFounder
SunFounder is a company focused on STEAM education with products like open
source robots, development boards, STEAM kit, modules, tools and other smart de-
vices distributed globally. In SunFounder, we strive to help elementary and middle
school students as well as hobbyists, through STEAM education, strengthen their
hands-on practices and problem-solving abilities. In this way, we hope to dissem-
inate knowledge and provide skill training in a full-of-joy way, thus fostering your
interest in programming and making, and exposing you to a fascinating world of
science and engineering. To embrace the future of artificial intelligence, it is urgent
and meaningful to learn abundant STEAM knowledge.

About the NAS Kit


NAS KIT can help you build a Network Attached Storage by using Raspberry Pi and
hard disk. We can access and manage the files in NAS through browser. And we can
upload and download files over HTTP, just like accessing Cloud Drive. Unlike Cloud
Drive, NAS only belongs to you, and if you have a lot of valuable information and
need to find a safe place, NAS is the best choice.

Free Support

If you have any TECHNICAL questions, add a topic under FORUM section on
our website and we’ll reply as soon as possible.

For NON-TECH questions like order and shipment issues, please send an
email to service@sunfounder.com. You’re also welcomed to share your projects
on FORUM.

I
Content
Components List································································································································· 1

Introduction·········································································································································· 2

Advantages of NAS·················································································································· 2

About OMV································································································································· 3

Module Assembly······························································································································· 4

Install NAS server······························································································································· 8

Get IP address···························································································································· 8

Log in OMV································································································································· 8

Add a Shared Folder···············································································································12

Activate the SMB service·······································································································14

Mount NAS Storage to Windows·······················································································15

Mount NAS Storage to Android·························································································16

Mount NAS Storage to iOS··································································································18

NAS HAT Page····································································································································20

II
Components List

1
Introduction
Advantages of NAS
Currently, the volume of data grows exponentially, so we need a high-power, reli-
able memorizer. Nowadays, more and more people begin to attach importance to
and believe in the advantages of NAS (network-attached Storage).

Compared to the public cloud, NAS is easier to control, especially the speed of data
transmission is faster than same kind of products. During uploading and reading,
the use of public cloud services will be limited by the network, but NAS won’t.If you
need multiple devices to access and play a 4k video, NAS would be a good choice.

NAS is private to the user, which makes the data stored in it more securely. And
some hidden dangers of data can be avoided, such as Network Virus, Network At-
tack, Information Disclosure and so on. All you need to do is make sure that the
data you upload is safe.

Compared with the mobile hard disk, NAS has a more convenient way of data shar-
ing and access which benefits you when you and your colleagues are in a hurry to
copy the same files.

Frequent use of hard disk interfaces is likely to cause wear and lead to poor contact.
It is inconvenient for you to access a file on different devices, such as computer,
tablet, mobile phone, etc. Accessing and sharing a large number of files, exchang-
ing files with multiple terminals (multiple devices) needs you to have a NAS server.

2
About OMV
OMV (OpenMediaVault) is a next generation of open source network additional
storage solution (NAS) based on Debian Linux. It includes services such as SSH, (S)
FTP, SMB/CIFS, DAAP media servers, RSync, BitTorrent clients, and more. It also fea-
tures a modular design framework that can be enhanced by plug-ins. OpenMed-
iaVault contains the following cores:

﹒ Debian Linux (Squeeze) system (i386 or x64)


﹒ Web-based system management
﹒ Simple system upgrades through Debian packages
﹒ user management
﹒ Task scheduler
﹒ Multilanguage support
﹒ Service bulletins based on DNS-SD (Apple's protocol)
﹒ Service Bulletins

Next, we introduce how to install OpenMediaVault on Raspberry Pi 4 so as to install


NAS server. As a NAS system, there is no doubt that OMV is excellent.

3
Module Assembly

① ③

② ⑤

Acrylic plate:
① TOP plate
② MIDDLE plate
③ BOTTOM plate
④ FAN-FIXED plate
⑤ Button particles

4
1. On the MIDDLE plate, we screw 4
M2.5x6mm and 4 M2.5x8+6mm nylon
standoff.
We n e e d t o n o t i c e t h e a s s e m b l y
direction of parts: the triangle should be
at the left of center of the plate and one
of the rectangles is in upper left corner
of the plate and other is in the bottom
right corner of the plate.
2. Put the Raspberry Pi (with three heat
sinks attached) on the MIDDLE plate
and then screw it with M2.5x11mm
Double-pass nylon standoff.
Notice that the SD card faces towards
the left of the plate.

3. Screw the NAS HAT module into the


Raspberry Pi with 4 M2.5x6mm crews.

4. Place these four M3x13+6mm ny-


lon standoffs at bottom of the MID-
DLE plate, while put the 4 M3x26 nylon
standoffs over the MIDDLE plate. Then
screw them all firmly.

5
5. Assemble the dual fan and FAN-FIXED
plate with the M2x12 screws and M2
nuts.
We should let one fan rotate clockwise
and the other anticlockwise to help form
the back flow of air, so we should note
that the assembly direction of these two
fans are different.
Front Back

6. Let dual fan wire up to the power out-


put port of the NAS HAT and insert the
dual fan into the rectangular slots of the
MIDDLE plate.

7.According to the direction notice


shown by the picture, put the four
button particles into the slots.
Notice the rectangles remarked by blue
boxes.

8. Flip the TOP plate. The two fans


can be properly assembled in the
rectangular slots of the TOP plate.
You can tape the 4 button particles to
avoid falling.

6
9. Fix the TOP plate with four M3x8mm
screws.

10. Screw the hard disk and the


BOTTOM plate with M3x8mm screws.
The screw holes on both sides of the
interior of the BOTTOM plate are not
completely symmetrical. Please make a
slight comparison before assembly.

11. Fix the BOTTOM plate with M3x8mm


screw to complete the NAS-KIT body.
Note that the orientation of the hard
disk should be the same as that of USB
slot of Raspberry Pi.

12. Connect power cord, hard disk wire


and internet wire to the Raspberry Pi 4.

7
Install NAS server

Get IP address
Here, Sunfounder has installed the
OMV system on TF card. We insert the
card into the slot of Raspberry Pi 4,
and then connect the power and net-
work cables. When the system starts
up and displays the “BASIC INFO”
page, we record the IP address.

Log in OMV
Open a browser on your computer, type in the IP address of NAS server, and then
type in the username and password to enter the backstage management system.

The default username and password are as follows


Username: admin
Password: openmediavault

8
Click Storage >Disks to check the current device information. If you find that there
is no hard disk information, please check the wiring condition again.

Click Storage > File Systems to check whether the hard disk is in the process of
mounting. If not, please select the current hard drive and then click the mount but-
ton at the top of the page.

9
Create an Username
Click Access Rights Managemer-User and then click Add to create a new user.

After clicking General, type in Name and Password. Here, we can create two users:
sunfounder-1 and sunfounder-2 and then we save them.

10
Click Access Rights Managemer-Group, click Add -> General and then Name and
Comment. Here we create an user group team.

Select the two users, sunfoudner-1 and sunfounder-2 we just created in Members
interfaces, then click save so as to add two members sunfounder-1 and sunfound-
er-2 into the user group.

11
Add a Shared Folder
Click Access Rights Managemer ->Shared Folders, then click Add button and type
in the name. After that, we choose hard disk devices. The path will be automatically
generated by the system. You need to click save after we finish the configuration.

At this point, we can create a shared folder called share on hard disk 123.

When you click the Privileges on the top, a window pops up on which you can set
different access permission for different users or user groups. For example, you
can set read-write permission for sunfounder-1,sunfoudner-2 and a certain team
group.

12
During the installation, there pops up a prompt at the top of the browser:

The configuration has been changed. You must apply the changes for them to take
effect.

Please Apply it.

Select the Shared folder, click the ACL above, and set user permissions on the inter-
face.

Here, we set the read-write access permission for sunfouder-1 and the read-only
permission for sunfounder-2.

The users who has the permission to Read/Write the files can add or download the
files.

The user who has the Read-only permission can only download the shared files.

13
Activate the SMB service
Click service-SMB/CIFS, and then choose enable among the settings.

Among the shares options, click add and then select the files that needs sharing.
After that, click the save button.

14
Mount NAS Storage to Windows
Under This PC, click Map network drive.

Type “\\hostname or IP ad-


dress\the name of the shared
files” in the path bar.

The hostname is raspberrypi


and the name of the shared
file is share, and then click
done.

Type in the username and the pass-


word. Click OK button, and you can ac-
cess the shared files.

There will appear a new volume under This PC.

15
Mount NAS Storage to Android
There are many kinds of File Manager APPs in the Google Play that apply to your
NAS access via SMB, such as Solid Explorer, ASTRO, ES File Explorer. Here, we take
Solid Explorer as example to illustrate.

1. Open Solid Explorer. 2. Tap「+」to create a 3. Select SMB in Connec-


New cloud connection. tion type.

4. Select your NAS device. 5. Select corresponding 6. Review your configura-


Som e APPs need your Authentication and Log in. tion, if there is no wrong,
manual address typing. Finish.
16
Example For
Transfer Files
Between
Phone & NAS

7. Now, you can access Select the file and tap


your NAS Storages in the 「Share」.
same way as you do when
access Internal Memory.

There appears an option Enter the target directory The device will show you
「Save to」to be selected. and tap「SELECT」. some information in noti-
fication.
17
Mount NAS Storage to iOS
The system newer than iOS 13.0 can directly mount NAS storage in Files. The older
versions of iOS can use APPs like DS File.

1. Open Files. 2. Tap Connect to Server in 「Menu」.

This「smb://」is used to define


connection type.

3. Enter your NAS server's IP address. 4. Select Authentication and Log in.

5. Now, you can directly access NAS Storages in File.

18
Example For
Transfer Files
Between
Phone & NAS

Select the picture and tap the icon


「Share」.

Find「Save to Files」in options. Select the directory you need to save


files in and then tap 「SAVE」.

19
NAS HAT Page
There are 3 display pages and a menu page.

Display Page:

While booting the device, we can see that


the initial page (display page 1) has the
character “BASIC INFO”. This page is used
to display the IP address, the usage rate of
CPU and RAM and the total .

The page “DETAILED INFO” (display page


2 is the page we can enter by pressing “+”
on the page 1 or clicking “-” on the display
page 3) mainly displays the temperature of
CPU and GPU, the work and power of fans
even the percentage of fans.

NOTE: When the average temperature of CPU or GPU rises up to 54 ° , the fan
starts working; meanwhile, the LED in the bottom right corner will turn on.

The page “DISK INFO” (display page 3 is the


page we can enter by clicking “+” on the
page 2 or clicking “-” on the display page 1)
mainly displays the SD card, disk capacity
and its usage rate.

20
Menu Page:

The page “MENU INFO” (we can enter the menu page by pressing the “BACK”
button continuously for two times on the display page. We can return to the dis-
play page by clicking “BACK” button for one time on menu page. )

We switch to different options by pressing


“+” or “-” before we press “OK” to select
the certain option.
1.Shutdown
2.Reboot
3.Background color
4.Page always refresh: choose OK to
automatic mode and NO to manual mode.
For your lasting use of NAS HAT, We
recommend to set manual mode.

Under the automatic mode, the NAS HAT


refreshes itself once every 500ms, but you
need to press the button “OK” to refresh
under the manual mode. Pressing the
buttons +/-/BACK can let you enter other
pages, so it can refresh different options
on different pages at the same time.

In addition, the feedback from the screen


under the manual refreshing mode is not
so fast as that under the automatic mode.
Under the mode of manual refreshing, the
button on the screen responds to your
pressing till there appears a mark S in the
top left corner of the NAS HAT.

NOTE: If you want to make some adjustment for the menu page, you can change
the raspi_omv_main.py file under the directory ~/nas-kit/main in the Raspberry
Pi system. If you want to know more about it, you can access https://git.io/JeAoI
to check the development files.

21

You might also like