主要资源:



        1, raspberry  2 model B



        2,带隔离usb HUB 一个



        3,废弃笔记本硬盘一个



     






(硬盘分区,硬盘挂载,本文将会详述,如有问题可以留言,或者自行解决)



一:首先下载迅雷嵌入式固件



http://luyou.xunlei.com/thread-12209-1-1.html?_t=1425479152 下载相应版本的固件



二:下载下来后解压


unzip Xware1.0.31_armel_v7a_uclibc.zip -d Xware

三:运行并配置


进入解压目录Xware      


root@raspberrypi:/opt/Xware# ls -al total 4460 drwxr-xr-x 2 root root 4096 Mar 4 14:29 . drwxr-xr-x 8 root root 4096 Mar 4 14:29 .. -rwxrwxr-x 1 root root 24897 Aug 27 2014 ETMDaemon -rwxrwxr-x 1 root root 4366446 Aug 27 2014 EmbedThunderManager -rwxrwxr-x 1 root root 131247 Aug 27 2014 portal -rwxrwxr-x 1 root root 24019 Aug 27 2014 vod_httpserver

然后运行程序
./portal

相应的停止程序:
./portal -s


初始化后,会有如下日志


initing... try stoppingxunlei service... killall:ETMDaemon: no process killed
killall
:EmbedThunderManager: no process killed
setting xunleiruntime env
... port: 9000 isusable. your control port is: 9000. startingxunlei service... execv:/opt/Xware/ETMDaemon. getting xunleiservice info... Connecting to127.0.0.1:9000 (127.0.0.1:9000) portal.tmp 0T --:--:-- ETA
THE ACTIVE CODE IS
: 15MCD2 go tohttp://yuancheng.xunlei.com, bind your device with the active code. finished.


然后我们访问


http://yuancheng.xunlei.com 然后输入激活code 就可以同我们迅雷vip 帐号绑定(安装详情:http://g.xunlei.com/thread-30-1-1.html)。

这时候我们可以到http://yuancheng.xunlei.com 直接添加任务进行下载

 如图:












root@raspberrypi:/media/disk2/TDDOWNLOAD# ls -al total 28 drwxrwxrwx 3 root root 4096 Mar 4 14:03 . drwxr-xr-x 5 root root 4096 Mar 4 14:27 .. -rwxrwxrwx 1 root root 16342 Mar 4 14:03 CF55EF316F4A9DC599FE86B237A5EB0563CD8145.torrent
drwxrwxrwx
3 root root 4096 Mar 4 14:26 Supernatural.S10E14.HDTV.x264-LOL[ettv]










通过samba服务器,建立文件共享服务器



一:安装samba 服务器






root@raspberrypi:/home/pi#  apt-get install samba samba-common-bin

二:配置配置文件









root@raspberrypi:/home/pi# vim /etc/samba/smb.conf 将原来的备份,然后情况该文件并加入如下内容 [global] workgroup = WORKGROUP
security
= user
guest account
= pi
map to guest
= bad user
wins support
= yes
log level
= 1 max log size = 1000 [usb] path = /media/ read only = no
force user
= pi
force group
= pi
guest ok
= yes

现在我们就可以通过smb协议进行文件共享










下面我们以linux 访问共享服务器为例:














图2:














图3:














:-):这样就简单弄成了一个属于自己的nas



无论在家里还时在公司甚至在网吧,我们随时可以通过迅雷远程下载下载文件到我们的nas服务器,然后回家再欣赏。