banner
miaoer

miaoer

喵二の小博客 https://www.miaoer.xyz xLog 分站
tg_channel
telegram
bilibili

Unable to use the CatWrt online source, then deploy one locally!

Many people are unable to use various download sources for routers due to network issues, such as detection or firewall blocking on campus networks. And recently, isn't it because hub.docker.com has been sanctioned?

I randomly wrote a script that allows Windows to deploy a local copy of the software source by downloading a copy of the software source from a domestic cloud storage software.

Support for Win7 requires the preparation of an extraction tool.

We need to download the tool first and then download the source, and finally select Extract to here.

Download the tool#

Download the tool

After downloading the tool, extract it to any directory, preferably one without Chinese characters or partitions. Here, I directly extract and use it in the downloads folder.

Do not extract all, otherwise it will be nested. Just select Extract to here. If nesting occurs, please pull the file out.

Current file structure

C:\

├── Downloads\
│   ├── nginx-for-windows-catwrt-repo-main\  ## Directory where the tool is located
│   │   ├── conf\
|   |   |   ...
│   │   ├── html\
│   │   ├── start.bat
│   │   └── stop.bat

Download the source#

Here, you can directly download the resources after they have been transferred to a cloud storage or download them directly from Github. Both the main and releases sections, as well as the so-called Source code(zip) can be recognized by batch processing files.

Obtain the compressed package#

Cloud storage

123 Cloud Extraction code: miao | Baidu Cloud Extraction code: miao | Green Union Extraction code: GVV3

Or choose one of the following Github accelerated direct links
GHProxy | DDLC | abskoop cfworker

Here, extract directly in the current directory of the tool to get CatWrt-main. After opening it, there are various series of folders.

Do not extract all, otherwise it will be nested. Just select Extract to here. If nesting occurs, please pull the file out.

Use Git to obtain#

If you know how to use Git, you can clone it locally in the directory of the tool git clone https://github.com/miaoermua/CatWrt.git


File structure#

The file structure after extraction should be like this, without nesting!

image

C:\

├── Downloads\
│   ├── nginx-for-windows-catwrt-repo-main\     ## Directory where the tool is located
│   │   ├── conf\
│   │   ├── CatWrt-xxxx.zip\     ## The downloaded software package is extracted here, and can be deleted after extraction
│   │   ├── CatWrt-xxxx\     ## Directory where the tool is located, the software package folder under it, open one layer to find the html file
|   |   |   |   ...
│   │   │   ├── x86_64\
│   │   │   ├── index.html\
|   |   |   |   ...
|   |   |   ...
│   │   ├── html\
│   │   ├── start.bat
│   │   └── stop.bat

Usage#

Double-click start.bat to start it. The first time you use it, you need to grant administrator permissions. If there is network authorization, you need to check all of them. Then, you can see the http:// protocol header in the CMD.

Select the URL and copy it to the browser to open it. You can see the directory and related descriptions of the software source here, which is similar to the online version.


Match the URL with the https://www.miaoer.xyz/posts/network/catwrt-install-application in the blog, 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 address of the computer.

image

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 package list (opkg update). The replacement is complete. If you have encountered problems using the online software source before, you can refer to this blog to solve them.

1

image

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 don't 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 it up. It is not recommended to operate on a Windows server with a deployed website, as it will occupy port 80.

Q: Can other branches be used? A: Yes, as long as the name contains CatWrt and does not contain Chinese characters.

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 is synchronized and updated to xLog by Mix Space
The original link is https://www.miaoer.xyz/posts/blog/windows-deploy-catwrt-repo


Footnotes#

  1. https://www.miaoer.xyz/posts/network/catwrt-applist

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.