Update README.md

This commit is contained in:
eventlOwOp
2024-05-06 20:06:48 +08:00
committed by GitHub
parent 2c5738d33b
commit f0333da524
+16 -10
View File
@@ -2,25 +2,31 @@
This magisk module enables you to start zerotier in the background after booting.
## Installation
if you're using a device with an older kernel where this version does not work, you can move to branch kernel-4.14 and installation steps are the same.
If you're using a device with an older kernel where this version does not work, you can move to branch kernel-4.14 and installation steps are the same.
but scripts in this branch may be **OUTDATED**.
1. download zipped code file from github and unzip
2. modify zerotier/network and write down your own network id.
3. zip the files, remember to put all files in the root path of the zipped file.
4. install and enjoy.
1. download zipped code file from github
2. install.
3. modify the config file at `/sdcard/Android/zerotier/network_id.txt" and put your 16-character network id in it with no trailing new line.
4. restart and enjoy.
To restart, you can just restart the whole system, or just execute `/data/adb/zerotier/restart.sh`; An android application to control zerotier (networkid, restart, ...) is scheduled.
### Scripts and binaries
all the scripts and binaries are placed in `/data/adb/zerotier/` you can use termux to run them if needed.
`add_ip_rule.sh` is used to make the `main` route table, which zerotier writes its routes to, available.
### Build binaries yourself
Note that the zerotier binaries are only build for aarch64, you can build it yourself in termux.
The following steps have only been tested in "Termux" with the package manager "apt".
Remember to delete `ZT_SSO_SUPPORTED=1` in `make-linux.mk` if you don't want to build zeroidc with rust.
Note that the zerotier binaries are only built for aarch64, you can build it yourself in "Termux".
Download libnatpmp library from http://miniupnp.free.fr/files/ and configure linking options in `make-linux.mk`
Download source files from [zerotier/ZeroTierOne](/zerotier/ZeroTierOne).
Or you can just download the source file modified by me in the zerotier branch, but be aware that it could be **OUTDATED**.
Delete `ZT_SSO_SUPPORTED=1` in `make-linux.mk` for "aarch64" (or your architecture). this will prevent building zeroidc with rust; the author encountered some problems building zeroidc
Install package `natpmpc` using `apt install natpmpc` and update your `libnpth` library using `apt install libnpth`.
At last run `make` or multithreaded `make -j8`.