Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM...

23
I 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 [email protected]. You’re also welcomed to share your projects on FORUM.

Transcript of Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM...

Page 1: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

I

PrefaceAbout 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 [email protected]. You’re also welcomed to share your projects on FORUM.

Page 2: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

II

ContentComponents 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

Page 3: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

1

Components List

Page 4: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

2

IntroductionAdvantages 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.

Page 5: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

3

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.

Page 6: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

4

Module Assembly

① ③

⑤②

Acrylic plate:

① TOP plate

② MIDDLE plate

③ BOTTOM plate

④ FAN-FIXED plate

⑤ Button particles

Page 7: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

5

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.

1. On the MIDDLE plate, we screw 4 M2.5x6mm and 4 M2.5x8+6mm nylon standoff.

We need to not ice the assembly 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.

Page 8: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

6

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.

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.

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.

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.

Front Back

Page 9: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

7

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.

10 . Screw the hard d isk 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.

9. Fix the TOP plate with four M3x8mm screws.

Page 10: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

8

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

Page 11: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

9

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.

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.

Page 12: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

10

Create an UsernameClick 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.

Page 13: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

11

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.

Page 14: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

12

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.

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.

Page 15: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

13

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.

Please Apply it.

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.

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.

Page 16: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

14

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.

Page 17: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

15

Mount NAS Storage to Windows

Under This PC, click Map network drive.

There will appear a new volume under This PC.

Type in the username and the pass-word. Click OK button, and you can ac-cess the shared files.

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.

Page 18: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

16

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 New cloud connection.

3. Select SMB in Connec-tion type.

4. Select your NAS device. Some APPs need your manual address typing.

5. Select corresponding Authentication and Log in.

6. Review your configura-tion, if there is no wrong, Finish.

Mount NAS Storage to Android

Page 19: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

17

Select the file and tap「Share」.

Enter the target directory and tap「SELECT」.

The device will show you some information in noti-fication.

7. Now, you can access your NAS Storages in the same way as you do when access Internal Memory.

There appears an option「Save to」to be selected.

Example For Transfer Files Between Phone & NAS→

Page 20: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

18

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」.

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

3. Enter your NAS server's IP address.

This「smb://」is used to define connection type.

4. Select Authentication and Log in.

Mount NAS Storage to iOS

Page 21: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

19

Select the picture and tap the icon「Share」.

Select the directory you need to save files in and then tap 「SAVE」.

Find「Save to Files」in options.

Example For Transfer Files Between Phone & NAS→

Page 22: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

20

NAS HAT PageThere 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.

Page 23: Preface...2020/02/07  · I Preface About SunFounder SunFounder is a company focused on STEAM education with products like open source robots, development boards, STEAM kit, modules,

21

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.Shutdown2.Reboot3.Background color4.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.

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.

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.