Many people are unable to use various download sources for their routers due to network issues, such as campus networks having detection or firewalls blocking access, and recently, isn't hub.docker.com being sanctioned the reason?
I casually wrote a script that allows Windows to deploy a local copy of the software source by downloading a copy of the software source through domestic cloud disk download software.
Support for Win7 requires you to prepare your own decompression tool.
We need to download the tool first, then download the source, and finally select Extract Here.
Download Tool#
After downloading the tool, extract it to any directory, preferably in a directory or partition without Chinese characters. I directly extracted and used it in downloads.
Do not extract everything, or it will create nested folders. Just select Extract Here. If nested folders appear, please pull the files out to avoid nesting.
Current File Structure
C:\
│
├── Downloads\
│ ├── nginx-for-windows-catwrt-repo-main\ ## Directory of the tool
│ │ ├── conf\
| | | ...
│ │ ├── html\
│ │ ├── start.bat
│ │ └── stop.bat
Download Source#
Here you can directly download the resources transferred to the cloud disk or visit Github to download. Both the main (main) and the so-called Source code(zip)
in the releases can be recognized by the batch file.
Obtaining the Compressed Package#
Cloud Disk
123 Cloud Disk Extraction Code: miao
| Baidu Cloud Disk Extraction Code: miao
| Ugreen Extraction Code: GVV3
Or choose one of the following Github acceleration direct links:
GHProxy | DDLC | abskoop cfworker
Here, extract directly in the current directory under the tool to get the CatWrt-main folder, which contains various series of folders.
Do not extract everything, or it will create nested folders. Just select Extract Here. If nested folders appear, please pull the files out.
Using Git to Obtain#
If you know how to use Git, you can directly clone it to your local machine in the tool's directory: git clone https://github.com/miaoermua/CatWrt.git
File Structure#
The file structure after extraction should look like this; do not have nested folders!
C:\
│
├── Downloads\
│ ├── nginx-for-windows-catwrt-repo-main\ ## Directory of the tool
│ │ ├── conf\
│ │ ├── CatWrt-xxxx.zip\ ## The downloaded software compressed package extracted here, can be deleted after extraction
│ │ ├── CatWrt-xxxx\ ## Directory of the tool, the folder of the downloaded package, open one layer to see the html files
| | | | ...
│ │ │ ├── x86_64\
│ │ │ ├── index.html\
| | | | ...
| | | ...
│ │ ├── html\
│ │ ├── start.bat
│ │ └── stop.bat
Usage#
Double-click start.bat
to start. The first time you use it, you need to grant administrator permissions. If there is network authorization, you also need to check all options. At that time, you will see that the local address has an http:// protocol header in CMD.
Select the URL and copy it to the browser to open, and you will see the directory of the software source and related descriptions, which is similar to the online version.
Match the URL with the template in the blog [https://www.miaoer.net/posts/network/catwrt-install-application], such as:
src/gz openwrt_core https://repo.miaoer.xyz/targets/x86/64/packages
src/gz openwrt_base https://repo.miaoer.xyz/x86_64/base
src/gz openwrt_luci https://repo.miaoer.xyz/x86_64/luci
src/gz openwrt_packages https://repo.miaoer.xyz/x86_64/packages
src/gz openwrt_routing https://repo.miaoer.xyz/x86_64/routing
src/gz openwrt_telephony https://repo.miaoer.xyz/x86_64/telephony
Replace it with the URL just outputted. If the IP address is incorrect, please use the actual IP of your computer.
src/gz openwrt_core http://10.0.0.100/targets/x86/64/packages
src/gz openwrt_base http://10.0.0.100/x86_64/base
src/gz openwrt_luci http://10.0.0.100/x86_64/luci
src/gz openwrt_packages http://10.0.0.100/x86_64/packages
src/gz openwrt_routing http://10.0.0.100/x86_64/routing
src/gz openwrt_telephony http://10.0.0.100/x86_64/telephony
Then click submit to update the software package list (opkg update), and the replacement is complete. If you have encountered issues with online software sources before, you can refer to this blog for solutions.
BusyBox v1.36.0 (2023-07-05 11:34:20 UTC) built-in shell (ash)
_____ _ _
| |___| |_ _ _ _ ___| |_
| --| .'| _| | | | _| _|
|_____|__,|_| |_____|_| |_|
W I R E L E S S F R E E D O M
======================================
CatWrt.v24.3.x86_64
Blog: miaoer.xyz
OpenWrt: Lean source r6448-a61217134
======================================
root@CatWrt:~# opkg update
Downloading http://10.0.0.100/targets/x86/64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://10.0.0.100/x86_64/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://10.0.0.100/x86_64/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://10.0.0.100/x86_64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://10.0.0.100/x86_64/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://10.0.0.100/x86_64/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
root@CatWrt:~#
About#
If you do not need to use it, just double-click stop.bat
to stop the service. If you accidentally clicked start multiple times, you can go to the task manager to clean up. It is not recommended to operate on a Windows server with deployed websites, as it will occupy port 80.
Q: Can I use other branches? A: Yes, as long as the name contains CatWrt and does not contain Chinese characters after that.
Based on ngnix:1.27.0 open source nginx-for-windows-catwrt-repo
If you have any questions, please leave a comment or join the group to ask.
This article was synchronized and updated to xLog by Mix Space. The original link is https://www.miaoer.net/posts/blog/windows-deploy-catwrt-repo