278 字
1 分钟
黑苹果
记得分好区!
第一步一定是分区,要至少200M的EFI分区,格式为FAT32。如果采用微PE安装Windows,也要给Windows提前分好EFI分区和安装的分区。
macOS配置
v2ray
把下载好的v2raya和v2ray移动到如下地址:
sudo mkdir /usr/local/bin/sudo mkdir -p /usr/local/share/v2ray/mkdir ~/Library/LaunchAgents/
sudo mv v2raya /usr/local/bin/sudo mv v2ray /usr/local/bin/
mv geoip.dat ~/Library/Application\ Support/v2ray/geoip.datmv geosite.dat ~/Library/Application\ Support/v2ray/geosite.dat
sudo chmod 755 /usr/local/bin/v2raysudo chmod 755 /usr/local/bin/v2raya新建服务文件并保存到~/Library/LaunchAgents/
如:vim ~/Library/LaunchAgents/org.v2raya.v2raya.plist
内容如下:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>EnvironmentVariables</key> <dict> <key>V2RAYA_LOG_FILE</key> <string>/tmp/v2raya.log</string> <key>V2RAYA_V2RAY_BIN</key> <string>/usr/local/bin/v2ray</string> </dict> <key>KeepAlive</key> <true/> <key>Label</key> <string>org.v2raya.v2raya</string> <key>ProgramArguments</key> <array> <string>/usr/local/bin/v2raya</string> <string>--lite</string> </array> <key>RunAtLoad</key> <true/></dict></plist>运行
launchctl load ~/Library/LaunchAgents/org.v2raya.v2raya.plist如果要关掉v2rayA服务,将上述命令从load替换为unload即可。可以通过Web前端查看日志。
Web前端地址为:localhost:2017
配置git代理
设置全局代理:
git config --global http.proxy socks5://127.0.0.1:20170git config --global https.proxy socks5://127.0.0.1:20170针对某项目,在根目录下:
git config --local http.proxy socks5://127.0.0.1:20170git config --local https.proxy socks5://127.0.0.1:20170查看代理配置情况:
git config --global --get http.proxygit config --global --get https.proxy取消代理:
git config --global --unset http.proxygit config --global --unset https.proxy配置Homebrew
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"