在 Terminal 终端中通过代理服务器连网
terminal
The new Windows Terminal and the original Windows console host, all in the same place!
项目地址:https://gitcode.com/gh_mirrors/term/terminal
免费下载资源
·
环境
操作系统:Ubuntu Kylin 优麒麟 20.04 LTS、Debian、Deepin、UOS
适用架构:AMD64、ARM64、MIPS64EL
方法
当你在 Deepin 深之度或 Ubuntu 等 Linux 中设置完系统代理后,发现 Terminal 终端并没有启用代理,还是直接连接网络。这样会影响 Apt-get 等应用的使用。其实,使用下面的方法就可以了:
Http 代理
sudo http_proxy=‘http://user:pass@proxy.example.com:port/’ apt install package-name
Socks5 代理
sudo all_proxy=‘socks5://user:pass@proxy.example.com:port/’ apt install package-name
也就是在常规命令行中加入:http_proxy=‘http://用户名:密码@地址:端口/’
proxychains4
sudo apt install proxychains4
sudo nano /etc/proxychains4.conf
在文件末尾,修改 socks5 服务地址为“socks5 127.0.0.1 1080”。
使用时,在命令前加上 proxychains4 就可以了。
参考
GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec
"HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 8 天前
e83434ff
Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!).
Bonus points:
- we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly
- ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether.
Validated command palette with multiple high contrast themes. See PR thread for demo.
Closes #17914 8 天前
更多推荐
已为社区贡献3条内容
所有评论(0)