如何为整个xubuntu系统设置代理?

7 xubuntu proxy

您好,我需要了解如何在 xubuntu 10.10 中启用系统范围的代理

小智 7

虽然其他答案都很好(对于终端/bash 提示),但在我看来,添加这些的正确位置是/etc/environment.

使用sudogksu添加:

http_proxy="http://user:password@proxyserver:port"
https_proxy="http://user:password@proxyserver:port"
ftp_proxy="http://user:password@proxyserver:port"
Run Code Online (Sandbox Code Playgroud)

非常相似,但对于那些在一个术语内运行所有内容的人来说,是的,其他答案将给出结果,但对于那些在 GUI 领域中的人来说,最好将上述行添加到环境文件中,以便完全正确地在系统范围内使用。


小智 6

将以下行添加到您的 ~/.bashrc 文件中:

export http_proxy="http://user:password@proxyserver:port"
export https_proxy="http://user:password@proxyserver:port"
export ftp_proxy="http://user:password@proxyserver:port"
Run Code Online (Sandbox Code Playgroud)