飞跃高山与大洋的鱼飞跃高山与大洋的鱼
首页
先看
计算机
  • 数学
  • Linux
  • Arch
  • Manjaro
  • Ubuntu
  • CentOS
  • Kubernetes
  • Web
  • JavaScript
  • TypeScript
  • CSS
  • Canvas
  • Vue
  • Vite
  • NuxtJS
  • Webpack
  • Flutter
  • D3
  • Jest
  • WeApp
  • Utils
  • Nodejs
  • Nestjs
  • Golang
  • Nginx
  • Traefik
  • MySQL
  • MongoDB
  • Redis
  • Docker
算法
  • 像素风
  • Git
  • Github
  • VSCode
  • Chrome
  • Google
  • Bookmark scripts
  • 导航 🎉
  • VuePress 侧边栏插件
  • VuePress 官网
🚇 开往
首页
先看
计算机
  • 数学
  • Linux
  • Arch
  • Manjaro
  • Ubuntu
  • CentOS
  • Kubernetes
  • Web
  • JavaScript
  • TypeScript
  • CSS
  • Canvas
  • Vue
  • Vite
  • NuxtJS
  • Webpack
  • Flutter
  • D3
  • Jest
  • WeApp
  • Utils
  • Nodejs
  • Nestjs
  • Golang
  • Nginx
  • Traefik
  • MySQL
  • MongoDB
  • Redis
  • Docker
算法
  • 像素风
  • Git
  • Github
  • VSCode
  • Chrome
  • Google
  • Bookmark scripts
  • 导航 🎉
  • VuePress 侧边栏插件
  • VuePress 官网
🚇 开往
  • MANJARO

    • 体验美好的 Manjaro 吧
    • Manjaro 下流畅使用 VirtualBox
    • 处理 IDEA
    • 在 Manjaro 安装 deb 程序
    • Konsole 无法启动
    • 锁屏快捷键
    • Manjaro 下使用 Nvidia 显卡
    • Manjaro 的常用软件
    • 播放工具 mpv
    • 代理工具
      • Shadowsocks
        • 1. 安装
        • 2. 配置
        • 3. 指定配置
        • 4. 启动
      • Qv2ray
      • Clash
        • 1. 安装
        • 2. 初试
        • 3. 配置
        • 4. 守护进程
        • 5. premium 版
    • Manjaro 挂载硬盘后只读
    • Manjaro 的异常处理
    • 终端代理 proxychains
    • 下载工具 You Get
    • zsh 无法找到 npm

代理工具

Shadowsocks

1. 安装

通过任意形式安装即可。

2. 配置

配置文件在 /etc/shadowsocks/config.json:

{
  "server": "xxx.xxx.xxx.xxx",
  "server_port": port,
  "local_address": "127.0.0.1",
  "local_port": 1080,
  "password": "yourpassword",
  "timeout": 300,
  "method": "aes-256-cfb",
  "fast_open": false,
  "workers": 1,
  "prefer_ipv6": false
}

文件名可以自定,且可以设置多个文件方便快速切换。

3. 指定配置

指定一个配置文件,如之前的 config.json 文件:

sslocal -c /etc/shadowsocks/config.json

4. 启动

# 通过 `@` 指定配置 
systemctl start shadowsocks@config
systemctl enable shadowsocks@config

Qv2ray

Qv2ray 在 manjaro 下经常一更新系统就崩,伤透了心

Clash

1. 安装

在 release 中选择一个适合你的,并解压。

sudo cp ~/downloads/clash /usr/local/bin

2. 初试

直接运行:

sudo /usr/local/bin

# 输出
INFO[0000] Can't find config, create a initial config file
INFO[0000] Can't find MMDB, start download
INFO[0000] Mixed(http+socks5) proxy listening at: 127.0.0.1:7890

然后呢?

3. 配置

在一些教程中能够直接解析服务商提供的 base64,但我失败了,于是采取了取巧的方案,从已有的导出 config.yaml 配置即可。

4. 守护进程

移入配置:

sudo cp ~/downloads/config.yaml /etc/clash
sudo cp ~/downloads/Country.mmdb /etc/clash

新增 systemd 配置 /etc/systemd/system/clash.service:

[Unit]
Description=Clash daemon, A rule-based proxy in Go.
After=network.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/clash -d /etc/clash

[Install]
WantedBy=multi-user.target

启动:

# 其他一致
sudo systemctl start clash.service
sudo systemctl enable clash.service

5. premium 版

越来越多的服务提供了 proxy-groups 及 tun 功能,这会导致普通版本的 clash 解析配置失败。

# 移除原有服务
sudo pacman -R clash
sudo systemctl stop clash.service
sudo systemctl disable clash.service

# 安装 premium 版
yay -S clash-premium-bin
sudo systemctl start clash.service
sudo systemctl enable clash.service
编辑文档!
上次更新:
贡献者: shanyuhai123
Prev
播放工具 mpv
Next
Manjaro 挂载硬盘后只读