Router openwrt How to download BT files offline (offline)

Source: Internet
Author: User

router openwrt How to download BT files offline (offline)
1. First download the OpenWrt firmware (make sure the correct model for the router) to the following URL. Http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-wzr-hp-g450h-squashfs-sysupgrade.bin

2. After the router upgrade is completed with Telnet input 192.168.1.1 (the default address) to connect to the router, the default no password, enter "passwd" to modify the password, after the success of the input "exit" exit.  If you cannot turn on Telnet, click [Telnet] to turn on Telnet.

3. Enter 192.168.1.1 in the Putty and click "Open" to connect to the router. For the use of Putty, click [How to install and use putty].

4. Click "Yes (Y)" to continue due to the following prompt for router firmware update.

5. Enter your account (root in this example) and password to log in.

6. Enter "Ifconfig" To view the network settings.

7. In this example, through another router (192.168.1.1) to the Internet, it is necessary to modify the network settings, enter "Vi/etc/config/network".

8. Press "I" to enter the edit state, the contents of the blue box is modified to the correct settings, this example set the router address is 192.168.1.250/24, gateway and DNS are 192.168.1.1.  Press ESC and enter ": X" to save the exit after Setup is complete.

9. Enter "/etc/init.d/network restart" to restart the service.

10. Re-open Putty Enter a new address (192.168.1.250) to connect to the router, such as still unable to connect to the Internet, enter "CD/ETC" to the/etc directory, continue to enter "VI resolv.conf" edit file, you   can also directly enter "Vi/etc/resolv.conf".

11. Modify the contents of the blue box to another router address (in this case, 192.168.1.1), i.e. "NameServer 192.168.1.1", press "ESC" and enter ": X" to save the exit after the modification is complete.

12. Enter "OPKG update" to upgrade opkg.

13. Enter the "opkg install Luci-ssl" installation Luci.

14. Tip Luci installation is complete.

15. Enter this router address in the browser address bar (192.168.1.250 in this example) with the following error message.

16. Enter "Wget-o/etc/config/luci Http://svn.luci.subsignal.org/luci/trunk/modules/base/root/etc/config/luci" in putty After downloading the file, reinstall   luci-theme-bootstrap (opkg install luci-theme-bootstrap) and enter "reboot" to restart the router after installation.

17. After the router restarts, then enter "192.168.1.250" in the browser address bar to open the Luci and connect the USB stick to the router correctly.

18. Enter your account password to log in, move your mouse to "System" and discover that there is no "Mount Points" option.

19. Enter the following command to install Block-mount KMOD-FS-EXT4 kmod-usb-storage Kmod-usb-storage-extras. It is recommended that you run the "opkg Update" update opkg first.   opkg Install block-mount kmod-fs-ext4 kmod-usb-storage Kmod-usb-storage-extras

20. After restarting the router, log in to the router with the browser, and the Mount Points option (which can be compared with 18 steps) appears under "System".

21. Log in with Putty, enter "Ls/dev" to see that the USB drive has been correctly identified (blue in-box SDA).

22. Enter "opkg install fdisk e2fsprogs" to install Fdisk and e2fsprogs.

23. After installation, enter "FDISK/DEV/SDA" to partition.

24. Enter "M" To view the Fdisk command Help and enter "N" to start adding a new partition.

25. Set the first partition of the USB stick to 7000M and the remaining space to the second partition.

26. Enter "T" to set the second partition as the Swap partition (82) and continue to enter "W" to set the partition table.

27. Enter "Fdisk-l" or "Ls/dev" to discover SDA1 and sda2.

28. Enter "MKFS.EXT4/DEV/SDA1" to format the first partition in EXT4 format.

29. Enter "Mkdir-p/mnt/aria2" in the/mnt directory to create a new directory named ARIA2, continue to enter "Mount-t ext4/dev/sda1/mnt/aria2-o Rw,sync" to Mount Sda1 to/mnt/ The ARIA2 directory.   Note: If you see an error similar to the following, check that the USB drive is properly connected to the router or check that the router OpenWrt version is correct.   mount:mounting/dev/sda1 on/mnt/aria2 failed:no such device    mount:mounting/dev/sda1 on/mnt/aria2 failed:in Valid argument

30. Enter "Mkswap/dev/sda2" to set Sda2 to swap partition, continue to enter "Swapon/dev/sda2" Mount swap partition, enter "free" to discover the swap partition is properly mounted.   continue to enter "Df-h" to see if the sda1 is mounted correctly.

31. To mount the USB flash drive when the router starts, enter "block detect >/etc/config/fstab" to generate the standard fstab file.

32. Enter "Vi/etc/config/fstab" to edit the Fstab file.

33. In this example, modify the following configuration and press the ESC key, and then enter ": X" to save the exit. To learn more about each parameter, please click on the following URL.   Http://wiki.openwrt.org/doc/uci/fstab

34. Enter "/etc/init.d/fstab enable" to enable the Fstab file to start automatically when the router starts.   Note: After the above modifications, it is recommended to restart the router and use the "df-h" and "free" commands to see if it is mounted correctly.

35. Connect to the router with WINSCP and copy the downloaded ARIA2 file to the/tmp directory, since ARIA2 is not supported by default after the 1.18.5 version, it is not recommended to use the "Opkg install ARIA2" installation.

36. In Putty, enter "Opkg install/tmp/aria2.ipk" to install ARIA2.

37. After installation, enter "Aria2c-v" to view the ARIA2 version, in this case the version is 1.18.5.

38. After installation, enter "Touch/mnt/aria2/aria2.session" to create a new aria2.session file.

39. Enter "ARIA2C--enable-rpc=true--rpc-listen-all=true--rpc-allow-origin-all-c" to start the aria2, make sure you can start it normally and proceed to the next step.

40. For boot auto-start aria2 need to create a new profile, first press "CTRL + C" to abort aria2, and then enter "vi/etc/aria2.conf" in the/etc directory to create a new configuration file named Aria2.conf.

41. Press the "I" key to enter the input status, enter the following, make sure to press ESC and enter ": X" to save the exit, note that the blue box must be in accordance with your settings. #Aria2 configuration # RPC Setting enable-rpc=true rpc-listen-all=true rpc-allow-origin-all=true rpc-listen-port =6800 # General Settingdir=/mnt/aria2   input-file=/mnt/aria2/aria2.session   save-session=/mnt/aria2/aria2.sessionSave-session-interval=60Log=/mnt/aria2/aria2.logLog-level=warn #event-poll=select disk-cache=8m #enable-mmap=true file-allocation=trunc user-agent=utorrent/2210 (25130) # Connection Setting continue=true max-connection-per-server=5 max-concurrent-downloads=3 min-split-size =5m split=5 max-overall-download-limit=0 max-overall-upload-limit=0 max-upload-limit=0 lowest-speed-limit=0 au to-save-interval=300 # BT Setting bt-require-crypto=true bt-max-peers=100 enable-peer-exchange=true Follow-torre Nt=true listen-port=6881-6999

42. You can also edit it in notepad++, and then change the name to "Aria2.conf".

43. Use WINSCP to connect to the router and copy this file (aria2.conf) to the "/etc" directory.

44. Enter the command "ARIA2C--conf-path=/etc/aria2.conf" to start aria2 from the configuration file.

45. Confirm that you can log on to the router using your browser after you start the profile normally, click "Startup" under "System" and pull down the right slider, find the "Local startup" box and   enter "ARIA2C--conf-path=/etc/ Aria2.conf-d ", and click on the bottom right" Submit "save, so that aria2 in the router boot is automatically run in the background.

46. Because aria2 default to the command line interface, for convenience, install the graphical management interface Yaaw (yet another Aria2 Web), click here to download.   You can also copy the following URL into your browser and click the "Download ZIP" button at the bottom right to download it.   Https://github.com/binux/yaaw

47. Unzip the file, modify the folder name to a name you like (in this case, ARIA2), and then use WINSCP to copy the folder to the router "/www" directory.

48. Enter "Router IP address/folder name" (192.168.1.250/aria2 in this example) in the browser address bar to open Yaaw and click "Add" to add the seed file.   if "Internal server error" errors occur, you need to check whether ARIA2 is running correctly or viewing the YAAW author Web page.

49. Click "Upload Torrent" to add the seed file or enter it directly. Note In the Blue box "Dir" Enter the download directory you set (in this case/mnt/aria2), click the "Add" button to determine.

50. Start the download file.

51. File download complete.

52. Because openwrt default does not support FTP, it is necessary to install VSFTPD (very secure FTP daemon), in putty enter "Opkg install VSFTPD" installation.

53. Open the Router control screen in the browser, click "System" and select "Startup" to confirm that the VSFTPD has been started by default, it is recommended to restart the router to see if it starts.

52. Use FileZilla to copy the files to the machine.

Router openwrt How to download BT files offline (offline)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.