由于一些问题,导致使用WineHQ安装带来不必要的麻烦。俗话说:速度慢。本文主要解决ubuntu的apt走通道的方案,从而解决安装慢的问题。
下载通道架设客户端:
ubuntu shadow dxvk socksr s1s2sr backup
git clone https://github.com/
创建通道配置文件:
sudo gedit dxvk.json
通道配置文件内容:
{
"server": "0.0.0.0",
"server_ipv6": "::",
"server_port": 9427,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "password",
"method": "none",
"protocol": "auth_chain_a",
"protocol_param": "",
"obfs": "plain",
"obfs_param": "",
"speed_limit_per_con": 0,
"speed_limit_per_user": 0,
"additional_ports" : {}, // only works under multi-user mode
"additional_ports_only" : false, // only works under multi-user mode
"timeout": 120,
"udp_timeout": 60,
"dns_ipv6": false,
"connect_verbose_info": 0,
"redirect": "",
"fast_open": false
}
内容中部分参数需要自己配置:
"server_port":9427, //端口
"password":"password", //密码
"protocol":"auth_chain_a", //协议插件
"obfs":"plain", //混淆插件
"method":"none", //加密方式
启动通道(审核问题自行百度):
python ~/local.py -c dxvk.json
如果出现找不到python:
sudo ln /usr/bin/python3 /usr/bin/python
这里我用一个软链接把 python3 链接到 python 上
通道默认支持Socks5协议的,对于Terminal的get,wget等走http协议的地方是无能为力的,所以需要转换成http代理,加强通用性,这里使用的转换方法是基于Polipo的。
sudo apt-get install polipo # 安装Polipo
sudo gedit /etc/polipo/config # 修改配置文件
配置文件内容:
# This file only needs to list configuration variables that deviate
# from the default values. See /usr/share/doc/polipo/examples/config.sample
# and "polipo -v" for variables you can tweak and further information.
logSyslog = false
logFile = "/var/log/polipo/polipo.log"
socksParentProxy = "127.0.0.1:1080"
socksProxyType = socks5
chunkHighMark = 50331648
objectHighMark = 16384
serverMaxSlots = 64
serverSlots = 16
serverSlots1 = 32
proxyAddress = "0.0.0.0"
proxyPort = 2578
Polipo默认端口为:8123 可以自行修改
重启Polipo:
/etc/init.d/polipo restart
验证代理是否正常工作:
export http_proxy="http://127.0.0.1:2578/"
curl www.google.com
如果需要apt走通道(这样sudo apt-get update或者sudo apt-get install走的就是通道了。):
echo -e "Acquire::http::Proxy \"http://127.0.0.1:1090\";" | sudo tee -a /etc/apt/apt.conf > /dev/null
echo -e "Acquire::https::Proxy \"http://127.0.0.1:1090\";" | sudo tee -a /etc/apt/apt.conf > /dev/null
解除apt走通道:
sudo sed -i -e '/Acquire::http::Proxy/d' /etc/apt/apt.conf
sudo sed -i -e '/Acquire::https::Proxy/d' /etc/apt/apt.conf
本文主要是解决ubuntu18.04安装wineHQ也就是:
sudo apt install --install-recommends winehq-stable
速度及其缓慢的问题。23MB的包要用5个小时,真的是要了老命了。还请审核哥放过。
审核老哥我们谈谈:这玩意我百度上面大把的是。况且我这个只是一个教程。都不含节点。为什么这么敏感嘛。改好了。没含关键字符了。