版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、用于路由器的CPU類型(lixng)為 HYPERLINK /phpBB2/viewforum.php?f=28 Atheros WiSOC based Hardware的。如果第一分區(qū)小,第二(d r)分區(qū)大,就將以下所有的代碼(di m)中的sda1和sda2互換位置或者分區(qū)的時(shí)候,直接把第一分區(qū)分為大數(shù)據(jù)區(qū),第二區(qū)分為小數(shù)據(jù)區(qū),直接運(yùn)行以下代碼。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:以下到大紅字之前,不再需要改動(dòng)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就已經(jīng)(y jing)恢復(fù)了!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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年房地產(chǎn)開發(fā)項(xiàng)目融資協(xié)議
- 2024年房地產(chǎn)公司資金驗(yàn)證協(xié)議
- 04版集合物流服務(wù)承包合同
- 新年工作個(gè)人計(jì)劃(18篇范文參考)
- 第28講化學(xué)反應(yīng)速率(講義)-2024年高考化學(xué)一輪復(fù)習(xí)講義分層練習(xí)(原卷版)
- 2024年房地產(chǎn)經(jīng)紀(jì)與代理銷售合同
- 2024年農(nóng)村土地整治承包協(xié)議
- 2024年度5000噸級(jí)農(nóng)產(chǎn)品供應(yīng)鏈管理服務(wù)合同
- 2024年式門采購(gòu)安裝一體化合同
- 護(hù)理核心制度督查表20179
- 紅色古色綠色文化教育活動(dòng)策劃方案
- 《Monsters 怪獸》中英對(duì)照歌詞
- 《正交分解法》導(dǎo)學(xué)案
- 建筑材料知識(shí)點(diǎn)匯總
- 平面構(gòu)成作品欣賞
- 英語(yǔ)管道專業(yè)術(shù)語(yǔ)
- 淺談?wù)Z文課程內(nèi)容的橫向聯(lián)系
- 社會(huì)工作畢業(yè)論文(優(yōu)秀范文8篇)
- 五篇500字左右的短劇劇本
- 新形勢(shì)下如何加強(qiáng)醫(yī)院新聞宣傳工作
評(píng)論
0/150
提交評(píng)論