




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、用于路由器的CPU类型(lixng)为 HYPERLINK /phpBB2/viewforum.php?f=28 Atheros WiSOC based Hardware的。如果第一分区小,第二(d r)分区大,就将以下所有的代码(di m)中的sda1和sda2互换位置或者分区的时候,直接把第一分区分为大数据区,第二区分为小数据区,直接运行以下代码。Optware + MiniDLNA + Transmission13-OCT-2013 - Build 22118Update 22-OCT-2013: Thanks to snoop86Please read the following in
2、structions before taking any action. That will be good for you getting used to them.-0. Hardware and Prerequisites-0.0 TP-Link WDR3600-N600 - v1.1: Have DD-WRT v24-sp2 (07/24/13) std - build 22118 flashed and working0.1 PuTTY and WinSCP: Google, download and make them ready for use0.2 Kingston 16GB
3、- DT101/G2: Create two partitions on the USB thumbdrive, using MiniTool Partition Wizard for example.0.2.1 First Partition- Partition Size : 14 GB (unallocated space)- File System : NTFS- Create As : Primary- Partition Label: Data (or whatever label you want)0.2.2 Second Partition- Partition Size :
4、100 MB- File System : NTFS- Create As : Primary- Partition Label: Optware (or whatever label you want)0.3 DD-WRT Web Interface0.3.1 Enable SSH (SSHd): Services Services Secure Shell0.3.2 Enable Samba Sharing: Services NAS0.4 Router: stick the USB thumbdrive on router and reboot it.0.5 Wait few secon
5、ds. Then make sure both mnt/sda1 and mnt/sda2 are mounted on the router and shared by Samba (from DD-WRT Web Interface)-1. Optware-1.1 Run the following line-by-line, using PuTTY:以下到大红字之前,不再需要改动sda1和sda2Code:cd /tmp/mnt/sda2touch optware.enablecd /tmp/mnt/sda1mkdir etc opt root usefultouch optware.e
6、nablechmod 755 etc opt rootmkdir opt/libchmod 755 opt/libcp -a /etc/* /tmp/mnt/sda1/etc/sleep 15mount -o bind /tmp/mnt/sda1/etc /etcmount -o bind /tmp/mnt/sda1/opt /jffscd /tmpwget /attitude_adjustment/12.09/ar71xx/generic/packages/libc_-1_ar71xx.ipkwget /attitude_adjustment/12.09/ar71xx/generic/pac
7、kages/opkg_618-3_ar71xx.ipkipkg installlibc_-1_ar71xx.ipk opkg_618-3_ar71xx.ipkYou should see:Quote:Connecting to (77:80)libc_-1_ar71 100% |*| 217k 0:00:00 ETAConnecting to (77:80)opkg_618-6_ar71xx.ip 100% |*| 57322 0:00:00 ETAERROR: File not found: /usr/local/lib/ipkg/lists/whiterussianYou probably
8、 want to run ipkg updateERROR: File not found: /usr/local/lib/ipkg/lists/non-freeYou probably want to run ipkg updateERROR: File not found: /usr/local/lib/ipkg/lists/backportsYou probably want to run ipkg update/bin/ipkg: line 1184: sort: not foundUnpacking libc.Done.Configuring libc.Done.ERROR: Fil
9、e not found: /usr/local/lib/ipkg/lists/whiterussianYou probably want to run ipkg updateERROR: File not found: /usr/local/lib/ipkg/lists/non-freeYou probably want to run ipkg updateERROR: File not found: /usr/local/lib/ipkg/lists/backportsYou probably want to run ipkg update/bin/ipkg: line 1184: sort
10、: not foundUnpacking opkg.Done.Configuring opkg.Done.Code:cat /etc/opkg.conf /tmp/mnt/sda1/root/.profile EOFexport LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib:/lib:/usr/lib:/opt/usr/local/libexport PATH=/sbin:/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/usr/bin:/usr/sbin:/opt/usr/local/binexport PS
11、1=03301;31muh 03301;34mw $ 03300mexport TERMINFO=/opt/usr/share/terminfoEOF1.2 Paste the following on DD-WRT Web interface, Administration - Commands. Click Save Startup.Code:#! /bin/shsleep 10if -f /mnt/sda2/optware.enable ; then if -f /mnt/sda1/optware.enable ; then mount -o bind /tmp/mnt/sda1/etc
12、 /etc sleep 1 mount -o bind /tmp/mnt/sda1/root /tmp/root sleep 1 mount -o bind /tmp/mnt/sda1/opt /opt sleep 2mount -o bind /tmp/mnt/sda1/opt /jffssleep 2 else exit fielse exitfiif -d /opt/usr ; then export LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib:/lib:/usr/lib export PATH=/opt/bin:/opt/usr/bin:/opt/sbi
13、n:/opt/usr/sbin:/bin:/sbin:/usr/sbin:/usr/binelse exitfi1.3 Reboot the router.1.4 Using PuTTY, you should see a colorful prompt (in red and blue). Run the following:Code:opkg update一般到这一步之前,nas就已经(y jing)恢复了!You should see:Quote:Downloading HYPERLINK /snapshots/trunk/ar71xx/packages/Packages.gz. t _
14、blank /snapshots/trunk/ar71xx/packages/Packages.gz.Updated list of available packages in /opt/tmp/var/opkg-lists/snapshots.-2. MiniDLNA-2.1 Preventing Segmentation fault error (Part 1/2):2.1.1 Run the following, using PuTTY:Code:cd /tmpwget /backfire/10.03/ar71xx/packages/libc_-42_ar71xx.ipkopkg ins
15、tall libc_-42_ar71xx.ipk2.2 Run the following, using PuTTY:Code:opkg updateopkg install minidlnaYou should see:Quote:Installing minidlna (1.0.25-1) to root.Downloading HYPERLINK /snapshots/trunk/ar71xx/packages/minidlna_1.0.25-1_ar71xx.ipk. t _blank /snapshots/trunk/ar71xx/packages/minidlna_1.0.25-1
16、_ar71xx.ipk.Installing libpthread (-1) to root.Downloading HYPERLINK /snapshots/trunk/ar71xx/packages/libpthread_-1_ar71xx.ipk. t _blank /snapshots/trunk/ar71xx/packages/libpthread_-1_ar71xx.ipk.Installing libuuid (2.21.2-1) to root.Downloading HYPERLINK /snapshots/trunk/ar71xx/packages/libuuid_2.21
17、.2-1_ar71xx.ipk. t _blank /snapshots/trunk/ar71xx/packages/libuuid_2.21.2-1_ar71xx.ipk.Configuring libjpeg.Configuring libpthread.Configuring libogg.Configuring libexif.Configuring libflac.Configuring libvorbis.Configuring libuuid.Configuring libsqlite3.Configuring zlib.Configuring libbz2.Configurin
18、g libffmpeg-mini.Configuring libid3tag.Configuring minidlna.Code:touch /tmp/mnt/sda1/minidlna.enabletouch /tmp/mnt/sda2/minidlna.enablemkdir -p /tmp/mnt/sda1/dlna/Picturesmkdir -p /tmp/mnt/sda1/dlna/Musicmkdir -p /tmp/mnt/sda1/dlna/Videosrm /opt/etc/config/minidlna2.3 You need to create a new /opt/e
19、tc/config/minidlna.conf file, with WinSCP, using the following content:Code:#port for HTTP (descriptions, SOAP, media transfer) trafficport=8200# network interface to bind to (this is the only interface that will serve files)network_interface=br0# set this to the directory you want scanned.# * if ha
20、ve multiple directories, you can have multiple media_dir= lines# * if you want to restrict a media_dir to a specific content type, you# can prepend the type, followed by a comma, to the directory:# + A for audio (eg. media_dir=A,/home/jmaggard/Music)# + V for video (eg. media_dir=V,/home/jmaggard/Vi
21、deos)# + P for images (eg. media_dir=P,/home/jmaggard/Pictures)media_dir=A,/mnt/sda1/dlna/Musicmedia_dir=V,/mnt/sda1/dlna/Videosmedia_dir=P,/mnt/sda1/dlna/Pictures# set this if you want to customize the name that shows up on your clientsfriendly_name=Media Server# set this if you would like to speci
22、fy the directory where you want MiniDLNA to store its database and albdb_dir=/mnt/sda1/dlna#/mnt/tmp/minidlna# this should be a list of file names to check for when searching for album art# note: names should be delimited with a forward slash (/)album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/
23、albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg# set this to no to disable inotify monitoring to automatically discover new files# note: the default is yesinotify=yes# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMOenable_tivo=no# set this to strict
24、ly adhere to DLNA standards.# * This will allow server-side downscaling of very large JPEG images,# which may hurt JPEG serving performance on (at least) Sony DLNA products.strict_dlna=no# default presentation url is http address on port 80presentation_url=:8200/# notify interval in seconds. default
25、 is 895 seconds.notify_interval=895# serial and model number the daemon will report to clients# in its XML descriptionserial=12345678model_number=12.4 Preventing Segmentation fault error (Part 2/2):2.4.1 Run the following, using PuTTY:Code:cd /tmpwget /snapshots/trunk/ar71xx/packages/libc_-1_ar71xx.
26、ipkopkg install libc_-1_ar71xx.ipkYou should see:Quote:Upgrading libc on root from -42 to -1.Removing obsolete file /opt/lib/libnsl.so.0.Removing obsolete file /opt/lib/libnsl-.so.Removing obsolete file /opt/lib/ld-uClibc-.so.Removing obsolete file /opt/lib/libdl-.so.Removing obsolete file /opt/lib/
27、libutil-.so.Removing obsolete file /opt/lib/libm-.so.Removing obsolete file /opt/lib/libresolv.so.0.Removing obsolete file /opt/lib/libresolv-.so.Removing obsolete file /opt/lib/libuClibc-.so.Removing obsolete file /opt/lib/libcrypt-.so.Configuring libc.2.5 Test it, running the following, using PuTT
28、Y:Code:minidlna -f /opt/etc/config/minidlna.conf -RYou should see your DLNA client (e.g. Samsung TV) connected to your router in seconds.2.6 Paste the following on DD-WRT Web interface, Administration - Commands. Click Save Startup.Code:#! /bin/shsleep 6if -f /mnt/sda1/optware.enable ; then if -f /m
29、nt/sda2/optware.enable ; then mount -o bind /tmp/mnt/sda2/etc /etc sleep 1 mount -o bind /tmp/mnt/sda2/root /tmp/root sleep 1 mount -o bind /tmp/mnt/sda2/opt /opt sleep 2 else exit fielse exitfiif -d /opt/usr ; then export LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib:/lib:/usr/lib export PATH=/opt/bin:/opt
30、/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/sbin:/usr/sbin:/usr/bin if -f /tmp/mnt/sda1/minidlna.enable ; then sleep 2 minidlna -f /opt/etc/config/minidlna.conf -R else exit fielse exitfi2.7 Reboot the router.You should see your DLNA client (e.g. Samsung TV) connected to your router in 60 seconds.-3. Tra
31、nsmission-3.1 Run the following, using PuTTY:Code:cd /tmpwget /snapshots/trunk/ar71xx/packages/transmission-daemon_2.82-1_ar71xx.ipkwget /snapshots/trunk/ar71xx/packages/transmission-web_2.82-1_ar71xx.ipkopkg install transmission-daemon_2.82-1_ar71xx.ipksleep 10opkg install transmission-web_2.82-1_a
32、r71xx.ipksleep 10transmission-daemonsleep 20killall transmission-daemon3.2 Edit the existing /tmp/mnt/sda2/root/.config/transmission-daemon/settings.json file, with WinSCP, using the following content:Code: alt-speed-down: 50, alt-speed-enabled: false, alt-speed-time-begin: 540, alt-speed-time-day:
33、127, alt-speed-time-enabled: false, alt-speed-time-end: 1020, alt-speed-up: 50, bind-address-ipv4: , bind-address-ipv6: :, blocklist-enabled: true, blocklist-url: /blocklist, cache-size-mb: 2, dht-enabled: true, download-dir: /tmp/mnt/sda1/dlna/Videos, download-limit: 100, download-limit-enabled: 1,
34、 download-queue-enabled: true, download-queue-size: 5, encryption: 2, idle-seeding-limit: 30, idle-seeding-limit-enabled: false, incomplete-dir: /tmp/root/Downloads, incomplete-dir-enabled: false, lpd-enabled: false, max-peers-global: 35, message-level: 2, peer-congestion-algorithm: , peer-limit-glo
35、bal: 240, peer-limit-per-torrent: 60, peer-port: 25000, peer-port-random-high: 65535, peer-port-random-low: 49152, peer-port-random-on-start: false, peer-socket-tos: default, pex-enabled: true, port-forwarding-enabled: true, preallocation: 1, prefetch-enabled: 0, queue-stalled-enabled: true, queue-s
36、talled-minutes: 30, ratio-limit: 2, ratio-limit-enabled: false, rename-partial-files: true, rpc-authentication-required: true, rpc-bind-address: , rpc-enabled: true, rpc-password: guest, rpc-port: 9091, rpc-url: /transmission/, rpc-username: guest, rpc-whitelist: 192.168.1.*, rpc-whitelist-enabled:
37、false, scrape-paused-torrents-enabled: true, script-torrent-done-enabled: false, script-torrent-done-filename: , seed-queue-enabled: false, seed-queue-size: 10, speed-limit-down: 100, speed-limit-down-enabled: false, speed-limit-up: 100, speed-limit-up-enabled: false, start-added-torrents: true, tra
38、sh-original-torrent-files: false, umask: 18, upload-limit: 200, upload-limit-enabled: 1, upload-slots-per-torrent: 14, utp-enabled: true3.3 Tests:3.3.1 Run the following, using PuTTY:Code:export TRANSMISSION_WEB_HOME=/opt/usr/share/transmission/web/transmission-daemon3.3.2 Access HYPERLINK :9091/ t _blank :9091(http:/:9091).Username: guestPassword: guest Edit file /tmp/mnt/sda2/root/.c
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 25年公司厂级员工安全培训考试试题(审定版)
- 2024-2025公司项目部负责人安全培训考试试题(完整)
- 2025承包商入厂安全培训考试试题(4A)
- 2024-2025公司项目部负责人安全培训考试试题可下载
- 小学综合实践活动海天版(深圳用)二年级小小设计师-我有一双小巧手第二课时教案
- Unit 4 Chinese folk art- Integration 教学设计 2024-2025学年译林版英语七年级下册
- 膝盖积液康复训练
- 高端食品添加剂及新型膳食补充剂项目可行性研究报告写作模板-备案审批
- 箱板纸企业县域市场拓展与下沉战略研究报告
- 地中汽车衡企业数字化转型与智慧升级战略研究报告
- 2025年上半年池州市园林局招考专业技术人员易考易错模拟试题(共500题)试卷后附参考答案
- 质量信誉考核自评报告3篇
- 2025年度毛绒玩具产业发展报告
- 2025年初级社会工作者综合能力理论考试试题(300题)附答案
- 危险作业安全管理培训课件
- 2025-2030中国婴儿车行业市场现状供需分析及投资评估规划分析研究报告
- 特种设备事故压力容器应急预案演练记录
- 毕业设计(论文)-可调节办公椅分析与设计
- 工业废气治理工(技师)职业技能鉴定理论试题及答案
- 腾讯游戏引擎技术向工业数字孪生的迁移
- 肩关节镜相关知识
评论
0/150
提交评论