当我尝试设置 Google Chrome 的代理设置(在 chrome://linux-proxy-config/ 上)时,我收到以下消息:
在受支持的桌面环境下运行 Google Chrome 时,将使用系统代理设置。但是,要么您的系统不受支持,要么启动您的系统配置时出现问题。
但是您仍然可以通过命令行进行配置。有关标志和环境变量的更多信息,请参阅 man google-chrome-stable。
我需要设置代理设置才能使用 Chrome,但我不想每次使用 Chrome 时都在命令行中设置它们。有没有办法永久设置这些设置?
另外,Chrome 中是否有一个选项,以便它不对特定域使用代理(类似于No proxy forFirefox 中的设置)?
sudo apt-get update在我的服务器(有互联网连接)上运行失败。服务器是否暂时损坏,或者我的 APT 配置错误并使用旧服务器?简而言之,我该如何解决这个问题?
这是输出:
~$ uname -a
Linux nematode 2.6.28-19-server #66-Ubuntu SMP Sat Oct 16 18:41:24 UTC 2010 i686 GNU/Linux
~$ sudo apt-get update
Err http://us.archive.ubuntu.com jaunty Release.gpg
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/main Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/restricted Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/universe Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates Release.gpg
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US
Could …Run Code Online (Sandbox Code Playgroud) 我想在我的大学代理服务器上使用互联网,这也需要身份验证。我在谷歌上搜索了解决方案,我找到的最好的解决方案是这个。我已经修改了接受的答案中的脚本以包含身份验证。它是这样的:
if [ $(id -u) -ne 0 ]; then
echo "This script must be run as root";
exit 1;
fi
if [ $# -eq 4 ] then
gsettings set org.gnome.system.proxy mode 'manual' ;
gsettings set org.gnome.system.proxy.http host '$1';
gsettings set org.gnome.system.proxy.http port $2;
gsettings set org.gnome.system.proxy.http authentication-user '$3';
gsettings set org.gnome.system.proxy.http authentication-password '$4';
grep PATH /etc/environment > lol.t;
printf \
"http_proxy=http://$3:$4@$1:$2/\n\
https_proxy=http://$3:$4@$1:$2/\n\
ftp_proxy=http://$3:$4@$1:$2/\n\
no_proxy=\"localhost,127.0.0.1,localaddress,.localdomain.com\"\n\
HTTP_PROXY=http://$3:$4@$1:$2/\n\
HTTPS_PROXY=http://$3:$4@$1:$2/\n\
FTP_PROXY=http://$3:$4@$1:$2/\n\
NO_PROXY=\"localhost,127.0.0.1,localaddress,.localdomain.com\"\n" >> lol.t;
cat lol.t > /etc/environment; …Run Code Online (Sandbox Code Playgroud) 我通过代理服务器访问我的 Internet 连接。我需要输入的只是 HTTP 地址和端口。我在哪里可以输入这些进行系统范围的设置?
注意:此问题和答案仅适用于默认的 Ubuntu 桌面环境,称为Unity。这些步骤不适用于 Xubuntu、Lubuntu、Kubuntu 或其他变体。
每次我尝试通过终端安装时,我都会得到这个“我无法安装或更新,我在这里找不到工作答案。这是我的 apt-get 更新结果:
点击 http://ppa.launchpad.net raring Release.gpg 点击 http://deb.opera.com stable Release.gpg 点击 http://ppa.launchpad.net raring Release.gpg 点击 http://deb.opera.com 稳定版 点击 http://ppa.launchpad.net raring 发布 点击 http://deb.opera.com stable/non-free i386 Packages 点击 http://ppa.launchpad.net raring 发布 点击 http://ppa.launchpad.net raring/main i386 Packages 点击 http://ppa.launchpad.net raring/main i386 Packages Ign http://deb.opera.com stable/non-free Translation-en_US Ign http://deb.opera.com stable/non-free Translation-en Ign http://ppa.launchpad.net raring/main Translation-en_US Ign http://ppa.launchpad.net raring/main 翻译-en Ign http://ppa.launchpad.net raring/main Translation-en_US Ign http://ppa.launchpad.net raring/main 翻译-en 错误 http://archive.ubuntu.com raring Release.gpg 解决“archive.ubuntu.com:http”(-11 - 系统错误)时发生了一些邪恶的事情 错误 http://extras.ubuntu.com raring Release.gpg 解决“extras.ubuntu.com:http”(-11 - 系统错误)时发生了一些邪恶的事情 错误 …
我正在寻找一种在整个系统(包括终端、应用程序、浏览器等)中使用配置的 Socks5 的方法。
例如,我1080使用 V2ray 或 Shadowsocks 或 SSH 隧道在本地主机上的端口上运行ocks5代理,然后我可以通过 Firefox 代理配置在浏览器上使用这些代理来从端口侦听1080或通过 Chrome 上的 FoxyProxy 扩展以相同的方式进行侦听。现在,我将找到一种在整个系统中使用它的方法,就像连接到 VPN 一样。
任何帮助将不胜感激。
请考虑伊朗目前的限制,不要关闭这篇文章,希望得到一个中肯的答案,这真的很感谢我们。
我碰巧在使用 xubuntu,但我认为桌面环境不适用于这种情况。
我注意到,如果公司网络使用代理,则某些基于 gnome 的应用程序(例如 rhythmbox)无法从 Internet 获取任何信息。
在这种特殊情况下 - rhythmbox 的封面艺术搜索工具无法找到从 Internet 上的各种提供商处寻求的封面艺术。
我已经尝试了常用的技巧,例如设置http_proxy和从终端运行 rhythmbox,但这似乎不起作用。
有任何想法吗?
我想构建一个脚本来在家庭和工作之间切换代理。我知道您可以使用 设置 wget 代理export http_proxy=proxy_address,但这不是 gui 保存设置的设置。
例如,Chrome 使用我在System settings -> Network -> Proxy下部署的设置。这些信息保存在哪里?
标题说明了一切。我在一所经过身份验证的代理的大学。Wine 没有检测到这一点。因此,wine 中的所有应用程序都无法连接到互联网。请帮忙。
我刚刚从 Windows 切换回 Ubuntu。我在 Windows (Fiddler) 中有一个程序,它捕获所有传出流量并可以编辑它们的标头以使用代理。
有没有办法强制我所有的传出流量都使用代理?
如果我已经编辑
/etc/apt/apt.conf
Run Code Online (Sandbox Code Playgroud)
这是行不通的。
有人提议使用系统代理设置。 该面板编辑此文件,但甚至无法使用代理身份验证。
我的大部分程序都使用代理,但不是全部。
我也尝试从终端运行它,在运行它之前我设置了这个:
tpeti@TLabs-MSI:~$ export http_porxy="http://username:password@ip:port"
tpeti@TLabs-MSI:~$ export https_porxy="https://username:password@ip:port"
Run Code Online (Sandbox Code Playgroud)
但这也不起作用。
有什么方法可以强制所有程序使用代理,或者编辑所有传出流量标头以通过代理?
我也可以只用特定的程序做到这一点吗?
谢谢你的帮助!
我想使用 pac-file-url 为 lubuntu 中的 Chromium 设置 Web 代理规则。Chromium 从系统范围的操作系统设置中读取其设置。我阅读了如何在 Xubuntu、Lubuntu 或 Ubuntu Studio 中设置系统范围的代理服务器?但我对以下问题不清楚。
如何在 lubuntu 的系统范围设置中指定 pac-file-url?