Orange Pi One is an open-source single-board computer. It can run Android 4.4, Ubuntu, Debian Image. It can be used as a computer, a wireless server, games, music and sounds, and many more.
In this tutorial, I will be teaching you how to set up Orange Pi One, from installing the OS, remotely connecting to Orange Pi One, and install a network access storage which is OpenMediaVault for file sharing.
- Orange Pi One
- Orange Pi Power Adapter
- Micro SD Card 8GB or more
- SD Card Reader
- Ethernet Cable
- USB Flash Drive or External HDD
- HDMI Cable
- Windows 10 or 7(Your desktop OS)
- Internet Browser (Ex. Chrome)
Orange Pi One is an open-source single-board computer. It can run Android, Ubuntu, Debian OS, etc. It uses the AllWinner H3 SoC, which has 512MB DDR3 SDRAM. Orange Pi One is not only a mini PC, but also hardware that supports engineers, makers, and electronic hobbyists to create geek things that you can imagine, build a smart device with no limitation. It is a super low-cost but very powerful solution for your project.
OpenMediaVault is the next-generation network-attached storage (NAS) solution based on Debian Linux. It contains services like SSH, (S)FTP, SMB/CIFS, DAAP media server, RSync, BitTorrent client, and many more. Thanks to the modular design of the framework it can be enhanced via plugins.
There's multiple application of Orange Pi One, for now, we will use it as network-attached storage using Openmediavault for the Orange Pi One for file sharing in multiple devices.
Mount your Orange Pi One like this:
Orange Pi One Installing Armbian Buster OS
- Download the Orange Pi One Armbian Buster OS image file by going to this link. You can download via torrent or direct as you prefer.
- After downloading the Armbian Buster OS image file we need to download an extractor, for this application, we will be using WinRAR, you can download it here.
- After downloading then install it by clicking the downloaded EXE file. Then extract the Armbian Buster OS image file you downloaded earlier and remember the location we will be using it later.
- Then download Rufus to install the Armbian Buster OS to your Micro SD Card, you can download it here.
- Now plug your Micro SD Card into your SD Card reader then plug it into your computer's USB Port.
- Open the downloaded Rufus EXE file and select your Micro SD Card as a device, and click the select button, and select Armian Buster OS Image you extracted earlier as shown in the images below. Then click start, and there will be a warning message that warns you all files will be deleted, if you're ok with that then press ok.
- Wait for a couple of seconds to finish wring the OS to your Micro SD Card. After finishing the status will be ready again and the bar will be full green then click close, and unplug your SD Card Reader, and unplug your Micro SD Card, and plug it into Orange Pi One.
- After plugging your Micro SD Card into Orange Pi One also connect your keyboard, turn it on, and wait for it to boot.
- Fill up the needed configuration, the configurations are orange pi new password, for the command shell choose 1 as bash, provide your username, password, and real name. Choose if you want to set your user language base on your location. Then you're done installing your OS. Proceed to remotely control your Orange Pi via SSH (Optional).
Orange Pi One SSH (Optional)
- To remotely control your Orange Pi we will be connecting it via SSH with Putty, download Putty here.
- After downloading install putty by clicking the downloaded file, after installing click the putty and this will be displayed.
- Go back to your Orange Pi One console, and input this command.
- Get your Orange Pi One IP address which is next to inet as shown below. My value sample will be 10.0.254.7.
root@orangepione:~# ifconfig eth0: flags=4163<up,broadcast,running,multicast> mtu 1500 inet 10.0.254.7 netmask 255.255.255.0 broadcast 10.0.254.255 inet6 fe80::ec73:af21:6511:4650 prefixlen 64 scopeid 0x20 ether 02:81:c8:a4:c4:c6 txqueuelen 1000 (Ethernet) RX packets 1727 bytes 155013 (151.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 298 bytes 30410 (29.6 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 42
- Now go back to your opened putty. Input your Orange Pi One IP address, select SSH as the connection type, and click open.
- A security alert will be prompted, if you want to cached your data on putty so that next connect the alert will not prompt anymore click Yes, if not click No.
- Then log in your username and password you created earlier, after login, this will be displayed.
- Now you can remotely control your Orange Pi One console terminal via SSH. Next, let's proceed to install OpenMediaVault for network access storage.
Orange Pi One with OpenMediaVault
- Go to your Orange Pi One console terminal, to install OpenMediaVault input these commands. If your using SSH you can just copy each command by CTRL+C, and Right Click on the mouse to the SSH Console terminal to paste. Wait for it, it takes a couple of minutes or almost an hour.
# sudo apt update # sudo apt upgrade # wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash # sudo reboot
- After rebooting, go back to your internet browser and search your Orange Pi One IP address (Ex. http://10.0.254.7), and this will be displayed. The default username is admin, and the password is openmediavault.
- After logging in, change your OpenMediaVault default password by clicking General Settings on the left side below the System as indicated in the red arrow in the image below.
- Select the Web Administrator Password to change the password. Input your new password on the New password field, and repeat it on the Confirm password field then click the button Save.
- Next, let's proceed in making your Orange Pi One IP Address to Static IP Address. First, go to your command prompt by searching the command prompt on your windows search bar, or press the Win+R button and in search input cmd in the open field. On the command prompt input ipconfig.
- In the IP Config, look and take note of your Default Gateway and Subnet Mask as an example below, we will use it later.
- Go back to your browser, Now let's proceed on setting the IP address to static IP, click Network on the left side, and select Interfaces as indicated below.
- On the device below, select the eth0 and click the Edit button.
- On the IPv4 section, Set the method from DHCP to Static, Set the IP Address you want to the Address field, Set the Netmask field to the Subnet Mask, and Default Gateway to the Gateway field as we noted earlier. Scroll Down and add this value 184.108.40.206 to the DNS Servers, And click the button Save.
- A warning prompt on the top part that will save the configuration you made earlier, click the Apply button, and then another prompt will appear and click the Yes button. Wait in a couple of minutes to save the configuration.
- An error will occur which means you change the IP address of your Orange Pi One, now search your Static IP Address again on the browser search bar, then log in again. Now it's easy to locate your Orange Pi One IP Address just use your Static IP Address you set earlier.
- Now let's mount your USB Flash Drive or USB External HDD to Orange Pi One, plug your USB Storage first. On the left side of the Storage section, select File Systems as indicated below.
- Select the mounted device you mounted earlier, it must not yet be mounted as an example below.
- Click the mount button to mount it, and wait a couple of seconds, a configuration prompt again will appear the just click Apply to apply it. Wait a couple of seconds for applying the configurations.
- Now let's proceed on making a shared folder on your USB Storage device, look for the Access Rights Manager section on the left side, and click Shared Folders as indicated in the image below.
- Open the Shared Folders, click the Add button.
- Name the Shared Folder as you want on the Name field, on the Device field click the drop-down icon beside it and select the USB Storage device you mounted earlier, you can change the directory path on the Path field on the folder image button beside it. On the Permissions field set it to "Administrator: read/write, Users: read/write, Others: read-only" or you can change the permission you want just press the drop-down icon beside it. After that click the Save button. Then a configuration change warning prompt will appear on the top part, just click apply again and wait for it to apply configurations.
- Next on the left side, on the Services select SMB/CIFS as indicated below.
- On the Settings tab, on the General settings section make sure the Enable field is enabled and click the button Save. A prompt configuration change will appear on top again just click apply and wait for it to apply changes.
- Click the Shares tab, and click Add.
- Make sure it is enabled on the Enable field, on the Shared folder field click the drop-down icon beside it and select the shared folder we created earlier, and on the Public field click the drop-down icon and select Guest allowed, then click the button Save. A prompt configuration change will appear on top again just click apply and wait for it to apply changes.
- Go to your File Explorer, and click the Network section on the left side. You can see your Orange Pi One added on the computers as you can see in the image below.
- Next login using your Orange Pi One credentials.
- Now you can see your shared folder, you can get or save files here.
- To create another user Go back to OpenMediaVault, to the Access Rights Management, and select User.
- Click the add button and select add, Complete the details, select the /usr/bin/bash in the Shell field and click save. A configuration warning prompt will appear again on the top right just click apply and wait for it to configure.
- After that to allow that user on your shared folder, click the button Privileges. Select the privilege type you want either Read/Write, Read-only, or No access just check the check box below it, and click the button Save.
- Login again back again using your newly created user with its credentials.
- Now you have network access storage.
Now you have network access storage with OpenMediaVault using your Orange Pi One Device. You can save and retrieve files on multiple devices as long it is on the same network. Also, you can monitor your Orange Pi One activities, and you can explore more what OpenMediaVault can do by researching further.