2024-08-26 11:54:54 +00:00
|
|
|
# Installation
|
|
|
|
|
2024-08-27 02:57:51 +00:00
|
|
|
## Homebrew 🍻
|
|
|
|
```bash
|
|
|
|
brew install spoofdpi
|
|
|
|
```
|
2024-08-27 03:14:54 +00:00
|
|
|
### Run with binary
|
2024-08-27 02:57:51 +00:00
|
|
|
```bash
|
|
|
|
spoofdpi
|
|
|
|
```
|
2024-08-27 03:14:54 +00:00
|
|
|
### Run as a service
|
|
|
|
```bash
|
|
|
|
brew services start spoofdpi # This will automatically relaunch SpoofDPI on startup
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
brew services run spoofdpi # This will not relaunch SpoofDPI on startup
|
|
|
|
```
|
|
|
|
### Logs
|
|
|
|
If you run SpoofDPI as a service, it will write logs into the files below
|
|
|
|
```bash
|
2024-08-27 02:57:51 +00:00
|
|
|
$HOMEBREW_PREFIX/var/log/spoofdpi/output.log
|
|
|
|
$HOMEBREW_PREFIX/var/log/spoofdpi/error.log
|
|
|
|
```
|
|
|
|
|
2024-08-27 03:14:54 +00:00
|
|
|
## Curl
|
|
|
|
SpoofDPI will be installed in `~/.spoofdpi/bin`.
|
2024-08-26 11:54:54 +00:00
|
|
|
To run SpoofDPI in any directory, add the line below to your `~/.bashrc || ~/.zshrc || ...`
|
2024-08-27 03:14:54 +00:00
|
|
|
```bash
|
|
|
|
export PATH=$PATH:~/.spoofdpi/bin
|
2024-08-26 11:54:54 +00:00
|
|
|
```
|
|
|
|
---
|
|
|
|
```bash
|
|
|
|
# macOS Intel
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s darwin-amd64
|
|
|
|
|
|
|
|
# macOS Apple Silicon
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s darwin-arm64
|
|
|
|
|
|
|
|
# linux-amd64
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-amd64
|
|
|
|
|
|
|
|
# linux-arm
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-arm
|
|
|
|
|
|
|
|
# linux-arm64
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-arm64
|
|
|
|
|
|
|
|
# linux-mips
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-mips
|
|
|
|
|
|
|
|
# linux-mipsle
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-mipsle
|
|
|
|
```
|
|
|
|
|
2024-08-27 03:14:54 +00:00
|
|
|
# Run
|
|
|
|
```bash
|
|
|
|
spoofdpi
|
|
|
|
```
|
|
|
|
|
2024-08-26 11:54:54 +00:00
|
|
|
## Go
|
|
|
|
You can also install SpoofDPI with `go install`
|
|
|
|
```bash
|
2024-08-27 03:14:54 +00:00
|
|
|
go install github.com/xvzc/SpoofDPI/cmd/spoofdpi@latest
|
2024-08-26 11:54:54 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Git
|
|
|
|
You can also build your own
|
|
|
|
```bash
|
2024-08-27 03:14:54 +00:00
|
|
|
git clone https://github.com/xvzc/SpoofDPI.git
|
|
|
|
cd SpoofDPI
|
|
|
|
go build ./cmd/...
|
2024-08-26 11:54:54 +00:00
|
|
|
```
|
|
|
|
|