advertisement
6 Applications
6.1 Using Banana Pro to build NAS home server
I have an old computer not to be used that just have the computer case, hard drive and a power supply. If you don’t use those devices they will be wasted. So I use the surplus equipment and Banana Pro (Using Banana Pi can achieve the same effect) set up my NAS home server.
6.1.1 The main function of the NAS home server
(1) File server: Use samba to realize the file sharing.
(2) Download machine: Use aria2c to realize the automatic download.
(3) Streaming media server: DLNA realize the use of computer or mobile phone playing the media files that were placed in the sharing directory.
The steps are as follows.
6.1.2 Preparation work
(1)Write the OS image file Raspbian for BananaPro to MicroSD card
Banana Pro&Pi User Manual - 68 -
Copyright © 2015 LeMaker. All Rights Reserved.
(2) The preparation of hardware
1) Use the power supply to supply power for the hard drive
2) Connect the hard drive to the SATA port on the B-Pro
3) Plug in an RJ-45 Ethernet
4) Plugging in the mains adapter power on the Banana Pro.
(3)Format the hard drive to create a new partition and mount the root directory to the hard drive
1)Format the hard drive to create a new partition
Run the sudo fdisk /dev/sda command. Use the o command to delete all partition of hard drive and use the n command to add one new partition. Use the w command to save change.
Run the sudo mkfs.ext4 /dev/sda1 command to format the new created partition of hard drive as ext4.
2) Mount the root directory to your hard drive
When we mount the root directory to the hard drive, the file system will start in the hard drive. This setting is a good way to protect our MicroSD card, when we need a long time to use the system .Specific methods are as follows.
Create a temporary directory in the root directory mkdir temp sudo fdisk –l
Mount the /dev/mmcblk0p2 to the temp directory sudo mount /dev/mmcblk0p2 /temp
Copy the file system to the hard drive partition sudo mount /dev/sda1 /mnt cp –aP /temp /mnt
Edit the /boot/uEnv.txt, sudo nano uEnv.txt
Banana Pro&Pi User Manual - 69 -
Copyright © 2015 LeMaker. All Rights Reserved.
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 6 1 Introduction
- 6 1.1 What is the Banana Pi
- 7 1.1.1Banana Pi Layout
- 8 1.1.2Hardware Specifications
- 9 1.2 What is the Banana Pro™?
- 10 1.2.1Banana Pro Layout
- 11 1.2.2Hardware Specifications
- 12 1.3 What can I do with Banana Pro/Pi?
- 12 1.4 OS introduction
- 12 1.4.1 Bananian
- 13 1.4.2 Raspbian
- 13 1.4.3 Lubuntu
- 14 2 Quick start
- 14 2.1 Get what you need
- 16 2.2 Prepare your MicriSD or SD card for the Banana Pro/Pi
- 17 2.2.1 Installing the general Linux OS image
- 20 2.2.2 Installing the Android OS image
- 24 2.3 Set up your Banana Pro/Pi
- 27 2.4 Shut down your Banana Pro/Pi
- 28 3 Basic Usages
- 28 3.1 Log in to Banana Pro/Pi
- 28 3.1.1 Using the HDMI
- 29 3.1.2 Using the RCA interface
- 31 3.1.3 Using SSH
- 33 3.1.4 Using VNC
- 36 3.1.5 Using the TTL serial port
- 41 3.2 Connect hard drive to SATA interface
- 42 3.3 OTG
- 44 4 Advance Usages
- 44 4.1 Pin definition
- 47 4.2 Extension Interface
- 47 4.2.1 LVDS/RGB/CPU display interface
- 50 4.2.2 Camera Module
- 52 4.2.3 Uart port
- 53 4.2.4 IR
- 60 4.3 Resize SD card
- 61 4.3.1 Raspbian
- 61 4.3.2 Other linux OS
- 63 5 Configure your Banana Pro/Pi
- 63 5.1 How to Modify the script.bin file
- 63 5.1.1 Download sunxi-tools tool
- 63 5.1.2 How to get FEX file
- 64 5.1.3 Compile FEX file
- 65 5.1.4 Generate scrip.bin file
- 65 5.2 Auto Log in to system
- 65 5.3 Network Configuration
- 65 5.3.1 Use WiFi as the station mode
- 68 5.3.2 WiFi AP mode
- 71 5.4 Turn off the screen saver
- 71 5.5 Auto mount storage device
- 72 5.6 Add desktop shortcut
- 73 6 Applications
- 73 6.1 Using Banana Pro to build NAS home server
- 73 6.1.1 The main function of the NAS home server
- 73 6.1.2 Preparation work
- 75 6.1.3 Create a file server
- 77 6.1.4 Download machine
- 81 6.1.5 Install the DLNA steaming media server
- 84 6.2 XBMC
- 84 6.2.1 Modprobe needed modules
- 84 6.2.2 Install UMP library
- 85 6.2.3Install Xorg()
- 85 6.2.4 Install libvdpau
- 86 6.2.5 Check the hardware acceleration
- 87 6.2.6 Building XBMC for A10 and A20 SoC series
- 88 6.2.7 Start XBMC
- 89 7 Appendix
- 89 Appendix A : Banana Pro pin definition
- 94 Appendix B : Banana Pi pin definition