Prepare the hard drive
According to the online introduction that if it is FAT or NTFS format may appear permissions problems, and then simply formatted as EXT4 format.
Working with the Minitool Partition Wizard
With a small USB flash drive, you can format the Raspberry Pi directly, the command is:mkfs-t EXT4/DEV/SDB1
Installing Samba
Set the shared folder to/samba
$ Mkdir/samba
Set access Permissions
$ chmod 777/samba
Mount the hard drive to the Samba directory
$ vi/etc/fstab
...
/dev/sda1/samba EXT4 Defaults 0 0
$ apt-get Install Samba samba-common-bin-y
Configure the /etc/samba/smb.conf file , and at the end of it, add the following command:
$ vi/etc/samba/smb.conf
[Share] # The name of the shared file, which will be displayed on the network with this name
Path =/samba # paths to shared files
Valid users = root PI # allow access to the user, here I use root and Pi two users
browseable = yes # allow browsing
public = yes # shared open
writable = yes # writable
$ Service Samba Restart
$ smbpasswd-a Root
Using a computer connection test
See if the boot starts
$ chkconfig--list
Samba 0:off 1:off 2:on 3:on 4:on 5:on 6:off
If boot does not start
$ chkconfig Samba on
Installing MiniDLNA
$ apt-get Install Minidlna-y
To set the /etc/minidlna.conf file, add the following at the end of the file:
$ vi/etc/minidlna.conf
Media_dir=a,/samba/dlna/music #A means that this directory is a music store.
Media_dir=p,/samba/dlna/picture
Media_dir=v,/samba/dlna/video
DB_DIR=/SAMBA/DLNA/DB # Configuration minidlna storage directory for the digital library data
Log_dir=/samba/dlna/log # Configuring the Log directory
Under the /samba folder, create the above folder and set the permissions to read and write.
$ mkdir-p/samba/dlna/music
$ mkdir-p/samba/dlna/picture
$ mkdir-p/samba/dlna/video
$ chmod 777/samba/dlna
$ chmod 777/samba/dlna/music/
$ chmod 777/samba/dlna/picture/
$ chmod 777/samba/dlna/video/
Restart MiniDLNA
$ Service MiniDLNA Restart
Test playback
Installing aria2
$ apt-get Install Aria2-y
$ mkdir/etc/aria2
$ touch/etc/aria2/aria2.session
$ vi/etc/aria2/aria2.conf
Dir=/samba
Disable-ipv6=true
# Open RPC is intended to be used for web Management
Enable-rpc=true
Rpc-allow-origin-all=true
Rpc-listen-all=true
#rpc-listen-port=6800
Continue=true
Input-file=/etc/aria2/aria2.session
Save-session=/etc/aria2/aria2.session
Max-concurrent-downloads=3
Start aria2
Test
$ aria2c--conf-path=/etc/aria2/aria2.conf-d background Run
$ vi/etc/rc.local boot up
Add sudo aria2c--conf-path=/etc/aria2/aria2.conf-d
Installing Appache
Apt-get Install Apache2-y
chmod 777/var/www
Installing YAAW
Download the Yaaw and copy the contents of the extracted folder to the/var/www folder after downloading.
In the browser input to the Raspberry Pi IP, there is a page display indicates normal work
Enter 192.168.1.120 to use the download machine
Also do not know is the network problem or what situation, download speed is slightly slow download, file transfer speed is also slow
[References]
Http://www.cnblogs.com/xiaowuyi/p/4051238.html#commentform
Http://aria2c.com/usage.html
Http://www.nasyun.com/thread-22951-1-1.html
Raspberry Pi makes NAS