Due to the changes in the article push rules of the public account, which no longer sort by publication time, please remember to hit the「Looking」 in the lower right corner, and click the “ … ” in the top right corner of the public account homepage to set Programmer Geek Laboratory as a star mark ~ this way you won’t miss any wonderful pushes~
I am Archer, recently I got some low-cost boards, and I also bought a Raspberry Pi 1 from Xianyu, which is sitting idle in my hands. I wanted to flash OpenWrt to use it as a high-performance soft router, but unfortunately, the performance is not enough. Under OpenWrt, just 56Mbps of data forwarding can cause the CPU usage to rise to 100%. So I thought, can it be used as a downloader instead of the main router?
With this idea, I spent a day turning the Raspberry Pi 1 with OpenWrt into a BT downloader. After all, the OpenWrt system is small in size and consumes much less resources than Raspbian. This time, I will share my configuration method, hoping everyone can use it.
First, flash OpenWrt onto a Raspberry Pi 1. I chose the latest OpenWrt version 19.07.3, and after flashing the system, there is no need to manually expand the SD card, it can expand itself.
First, connect the computer’s network port to the Raspberry Pi’s network port with an Ethernet cable, enter 192.168.1.1 in the browser’s address bar to access the Raspberry Pi, username is root, default password is admin. After entering, go to System – Management Rights to change the password, then go to Network – Interfaces to configure the correct IP address and gateway for internet connectivity. Finally, connect it to the network, and you can install the related software packages.
(Network settings related: For example, my internal main router is 192.168.1.1, the Raspberry Pi should be set to 192.168.1.100 or any IP address that does not conflict with existing network devices. The gateway is 192.168.1.1, broadcast is set to 192.168.1.255, DNS is set to 180.76.76.76. Any incorrect item will cause the Raspberry Pi to be unable to connect to the internet.)
Then switch to PUTTY for command line operations.
First, update the software list
opkg update
Then install USB disk driver software
opkg install kmod-usb-core kmod-usb-ohci kmod-usb-uhci kmod-usb2 kmod-ledtrig-usbdev usbutils kmod-usb-storage kmod-fs-ext4 mount mount-utils e2fsprogs
After installation is complete, turn off the power, connect the storage device (the hard drive needs an external power USB hub or the external power supply of the mobile hard drive), and then power it on.
After booting, continue to connect via Putty, use the following command to find the disk just connected.
ls /dev/sd*
If you see /dev/sda, it is successful. If you want to format the hard drive, use the following command to do so.
mkfs.ext4 /dev/sda
Create your own download folder in the home directory, for example, I created /root/data, then bind it using the command or web interface:
mount -t ext4 /dev/sda /root/data
To bind via the web interface, go to System – Mount Points and set it as shown in the image below:Then install the required software packages for BT software
opkg update
opkg install transmission-cli-mbedtls transmission-daemon-mbedtls transmission-daemon-openssl luci-app-transmission luci-i18n-transmission-zh-cn transmission-remote-openssl transmission-web-control transmission-web
Among them, transmission-remote-openssl is a must-have package for remotely controlling with the transmission-remote-gui software, while transmission-web-control and transmission-web are essential for web operations. You can choose according to your conditions. According to tests, remote control has the least burden on the server.
Then restart the Raspberry Pi and wait for the transmission service to load successfully.
After restarting, set the transmission parameters on the web side, go to Service – Transmission, and set the transmission parameters as shown in the images below.
Change the user permission to root, change the download path to /root/data, and finally set the permissions for the download folder using Putty command line.
chgrp transmission /root/data
chmod 770 /root/data
In most cases, this should allow for normal downloading without errors.
To operate via the web, enter 192.168.1.100:9091 in the browser’s address bar. The account is root, and the password is what you changed it to.
For remote control operations, you can download the transmission-remote-gui software or use the UWP application Transmission Client, both of which can operate downloads.
Well, the tutorial ends here. I hope that Raspberry Pi 1 around the world will no longer collect dust. I’m going to download some content now, Teacher San is here.
Recommended Reading: (Click the title to jump)
Likes and views are the biggest support