V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ptg2008  ›  全部回复第 2 页 / 共 2 页
回复总数  33
1  2  
不好意思 v2 的回复不太会用, 按 cmd+enter 以为换行, 直接发出去了, 我用 linux 发行版是 manjaro
1. pamac install --aur mihomo
2. sudo vim /etc/mihomo/config.yaml(在这里自己定义配置, 想必贴主应该熟悉这个配置文件, #5 是我的配置, 供参考)
3. sudo echo 1 > /proc/sys/net/ipv4/ip_forward(开启内核 ip v4 转发功能)
4. sudo systemctl enable --now mihomo.service
pr: &pr {type: select, proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]}
p: &p {type: http, interval: 3600, health-check: {enable: true, url: https://www.gstatic.com/generate_204, interval: 300}}#

# url 里填写订阅,名称不能重复
proxy-providers:
xxxx:
<<: *p
path: ./xxxx.yaml
url: ""



ipv6: false
allow-lan: true
mixed-port: 7890
unified-delay: false
tcp-concurrent: true
external-controller: :9999
external-ui: /etc/mihomo/ui
external-ui-name: xd
# 因为 linux 用的是 server 版,所以 UI 指的是 yacd 等 dashboard
external-ui-url: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"

geodata-mode: true
geodata-loader: standard
geo-auto-update: true
geo-update-interval: 24
geox-url:
geoip: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat"
geosite: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
mmdb: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb"

find-process-mode: strict
global-client-fingerprint: chrome

sniffer:
enable: true
sniff:
HTTP:
ports: [80, 8080-8880]
override-destination: true
TLS:
ports: [443, 8443]
QUIC:
ports: [443, 8443]
skip-domain:
- '*.rc.sunlogin.net'

tun:
enable: true
stack: system
dns-hijack: ["any:53"]
auto-route: true
auto-detect-interface: true

dns:
enable: true
listen: :53
ipv6: false
enhanced-mode: redir-host
nameserver: ["tls://8.8.4.4", "tls://208.67.222.222"]
nameserver-policy:
"geosite:cn": ["202.96.128.166", "223.5.5.5"]

hosts:
'*.ptg.com': 192.168.66.55

proxies:
- name: "直连"
type: direct
udp: true
proxy-groups:
- {name: 默认, type: select, proxies: [自动选择, 直连, 香港, 台湾, 日本, 新加坡, 美国, 其它地区, 全部节点]}
- {name: YouTube, <<: *pr}
- {name: Google, <<: *pr}
- {name: OpenAI, <<: *pr}
- {name: 国内, type: select, proxies: [直连, 默认, 香港, 台湾, 日本, 新加坡, 美国, 其它地区, 全部节点, 自动选择]}
- {name: 其他, <<: *pr}
# 地区分组
- {name: 香港, type: select , include-all-providers: true, filter: "(?i)港|hk|hongkong|hong kong"}
- {name: 台湾, type: select , include-all-providers: true, filter: "(?i)台|tw|taiwan"}
- {name: 日本, type: select , include-all-providers: true, filter: "(?i)日|jp|japan"}
- {name: 美国, type: select , include-all-providers: true, filter: "(?i)美|us|unitedstates|united states"}
- {name: 新加坡, type: select , include-all-providers: true, filter: "(?i)(新|sg|singapore)"}
- {name: 其它地区, type: select , include-all-providers: true, filter: "(?i)^(?!.*(?:🇭🇰|🇯🇵|🇺🇸|🇸🇬|🇨🇳|港|hk|hongkong|台|tw|taiwan|日|jp|japan|新|sg|singapore|美|us|unitedstates)).*"}
- {name: 全部节点, type: select , include-all-providers: true}
- {name: 自动选择, type: url-test, include-all-providers: true, tolerance: 10}

rules:
- GEOIP,lan,直连,no-resolve
- GEOIP,private,直连,no-resolve
- GEOSITE,youtube,YouTube
- GEOSITE,google,Google
- GEOSITE,openai,OpenAI
- GEOSITE,cn,国内
- GEOSITE,geolocation-!cn,其他
- GEOIP,CN,国内
- MATCH,其他
有的 我用 manjaro, pamac install --aur mihomo, 配置规则如下:
313 天前
回复了 main1234 创建的主题 职场话题 求对比下 shopee 和字节的 offer
shopee 不推荐, 10%强制走, 天天抓考勤, 号称外企但没有任何人文关怀, 搞出点问题基本上就是背绩效走人, 业务都不急研发老板一直压排期, 现在情况很烂, 不如去字节卷
楼主晒出你的学信网, 当头一棒下来, 要是清北爷评论区全沉默
2024-04-19 14:12:33 +08:00
回复了 w292614191 创建的主题 职场话题 公司局域网开发,家里怎么办?
闲鱼捡一台小主机, 淘宝搞个随身 wifi 个小主机用, 记住小主机不要连公司网络, 将小主机用网线和公司主机连起来, 远程到小主机, 公司主机自然触手可达
2024-04-10 11:37:55 +08:00
回复了 Hopetree 创建的主题 问与答 零刻 mini 主机最近频繁重启,虚拟机和宿主机都会
多多 999 买的极摩客 5700u, 宿主机 manjaro, kvm 跑 win, 24h 运行挺稳的
深圳 17 >> 东莞 12, 现在这行情 15k 买方都挑挑拣拣, 12k 在东莞不加班体验很好的, 闲时研究副业, 实在想走建议骑驴找驴, 来深圳没 20 别走
2024-03-26 17:26:06 +08:00
回复了 buynonsense 创建的主题 程序员 寻找适合作为“第一本”Spring 的书籍
原理的话直接看源码就行了, 那些讲解源码书的也不过是大片大片的贴代码, 附上两句自己的两句解说, spring 源码不难懂的
2024-03-18 10:11:35 +08:00
回复了 yumozero 创建的主题 程序员 选什么当开发机比较好?
@jiangboyueplus @yongdongjino3 用的 frp, 阿里云 99 一年, 现在还有活动可以 99 续费 3 年, 2C2T3M, RDP 完全够用
2024-03-15 22:09:08 +08:00
回复了 yumozero 创建的主题 程序员 选什么当开发机比较好?
@yumozero 稳定 一般一个月一次滚动更新才手动重启, 低压 U 省点, 7840Hs 24h 挂机应该功耗高点, 你用来写代码限制一下 TDP 不会有太大散热问题
2024-03-15 18:39:00 +08:00
回复了 yumozero 创建的主题 程序员 选什么当开发机比较好?
我是用极摩客 M5 5700u 8C16T32G 开发绰绰有余, 当服务器用了, 装个 manjaro, 安装一个 vscode-server, 直接可以在浏览器上开发, kvm 再跑个 windows 虚拟机, 在公司 mac 远程到 win 摸鱼也美滋滋, 3 天一度电吧, 配合阿里云 99 元 3M 带宽服务器内网穿透很丝滑
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3494 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 05:07 · PVG 13:07 · LAX 22:07 · JFK 01:07
Developed with CodeLauncher
♥ Do have faith in what you're doing.