Submitted by Archer.
Hello everyone, long time no see, I am Archer. Recently, I got some low-cost boards and also bought a Raspberry Pi 1 on Xianyu, which I have been keeping idle. I thought about flashing 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 raise the CPU usage to 100%. Since the main router is not working, can it be used as a downloader? With this thought, 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 a Raspberry Pi 1 with OpenWrt. If you don’t know how to flash OpenWrt, please refer to my previous tutorial.
I chose the latest version of OpenWrt 19.07.3. After flashing the system, there is no need to manually expand the SD card; it can be expanded automatically.
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 root, default password admin. After entering, go to System -> Administration to change the password, then go to Network -> Interfaces to configure the correct IP address and gateway for internet access. Finally, connect it to the network, and you can install the relevant software packages.
(Network settings: For example, my internal main router is 192.168.1.1, so 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 set to 192.168.1.255, and DNS set to 180.76.76.76. Any incorrect item will prevent the Raspberry Pi from connecting to the internet.)
Then switch to PUTTY command line operation.
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, turn off the power, connect the storage device (the hard drive requires an external power USB hub or the mobile hard drive itself has external power supply), and then power it on. After booting, continue to connect with Putty and use the following command to find the newly connected disk
ls /dev/sd*
If you see /dev/sda, it is successful. If you want to format the hard drive, use the following command
mkfs.ext4 /dev/sda
You can create your own download folder in the home directory, for example, I created /root/data, then use the command or the webpage to bind the command as follows
mount -t ext4 /dev/sda /root/data
For web binding, go to System -> Mount Points, set it as shown in the image . Then install the necessary 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 required package for using the transmission-remote-gui software to control remotely, and transmission-web-control and transmission-web are required packages 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 rebooting, set up transmission on the web side, go to Services -> Transmission, and set the parameters of transmission as shown in the following image
Change user permissions to root, change the download path to /root/data, and finally set the download folder permissions via the Putty command line
chgrp transmission /root/data
chmod 770 /root/data
This way, in most cases, it can download normally without errors. To operate on the web, enter 192.168.1.100:9091 in the browser’s address bar to access it, and the account is root, and the password is what you changed.
For remote control operation, you can download the transmission-remote-gui software or use the UWP app Transmission Client, both can be used to operate downloads. Okay, the tutorial ends here. I hope that the Raspberry Pi 1 will no longer gather dust, I am going to download some files now, Teacher San, I am here.
The links in the article can be clicked at the end to read the original text.
More exciting content
Make a motorcycle dashboard with Raspberry Pi
Make a smart pet feeder with Raspberry Pi
Build a smart planetary observer based on Raspberry Pi
Handmade metal wireframe X-wing clock
Arduino + 280 LEDs DIY music spectrum light
DIY Stanford Pupper 12 Degree of Freedom Quadruped Robot Dog
Barrier: PC and Raspberry Pi keyboard and mouse sharing solution
Leave a Comment
Your email address will not be published. Required fields are marked *