我想给浏览器设置代理IP,浏览器说设置系统代理IP就行,其本身不支持设置。
Lubuntu代理IP在 ~/.bashrc 中设置能对浏览器生效么?换了几个IP好像都没什么用。
在 ~/.bashrc 最后加上:
http_proxy=http://abc:1234@:202.xx.xx.xx:80
export http_proxy
无论是在新终端中用 firfox 打开,还是 reboot 后打开浏览器,查询 Ip 都没有发生变化。
换用支持设置代理IP的浏览器换不同IP的时候好像有延迟,不能立即生效,重新打开浏览器才行。有点麻烦,所以想在系统中设置
lubuntu该怎么设置代理IP
-
- 帖子: 70
- 注册时间: 2010-02-12 19:47
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: lubuntu该怎么设置代理IP
具体说明 何种浏览器?sluding 写了:其本身不支持设置。
根据浏览器类型具体研究
部分应用程序可使用 proxychains 实现代理
建议在浏览器中设置sluding 写了:我想给浏览器设置代理IP,浏览器说设置系统代理IP就行。
Firefox 使用图标为“福”字的插件设置
Chrome/Chromium 使用 SwitchyOmega 设置
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 帖子: 70
- 注册时间: 2010-02-12 19:47
Re: lubuntu该怎么设置代理IP
比如 opera developer 38.0vickycq 写了:具体说明 何种浏览器?sluding 写了:其本身不支持设置。
根据浏览器类型具体研究
部分应用程序可使用 proxychains 实现代理
建议在浏览器中设置sluding 写了:我想给浏览器设置代理IP,浏览器说设置系统代理IP就行。
Firefox 使用图标为“福”字的插件设置
Chrome/Chromium 使用 SwitchyOmega 设置
当初因为它自带VPN才装的。
这是它代理的说明:
Setting up proxy servers on Linux
Under a supported Desktop Environment, Opera will use the proxy settings from your system. If you see this page, Opera was not able to automatically determine your proxy settings from the environment. If you want Opera to use a proxy server, you can configure it either by a command line switch or by setting appropriate environment variables.
Command-line switches
--proxy-server=[<proxy-scheme>://]<proxy-host>[:<proxy-port>]
Set up a proxy server to use. The scheme can be one of http (the default, also supports https), socks, socks4 or socks5.
--proxy-pac-url=URL
Set up a proxy server using autoconfiguration. The URL should point to a proxy autoconfiguration URL.
Examples
--proxy-server="example.org:8080"
--proxy-server="socks://example.org:1080"
--proxy-server="https=example.org:8080;http=example.net:1080"
Environment variables
<proxy-scheme>_proxy=
http://[<username>:<password>@]<proxy-host>[:<proxy-port>]/
Set up a proxy server. The scheme can be one of http, https or ftp.
Examples
export http_proxy="http://example.org:8080/"
export https_proxy="$http_proxy"
export ftp_proxy="$http_proxy"
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: lubuntu该怎么设置代理IP
这里指的是 opera 还是 firefoxsluding 写了:无论是在新终端中用 firfox 打开
顾名思义 *bashrc 只对 interactive bash shell 生效sluding 写了:还是 reboot 后打开浏览器,查询 Ip 都没有发生变化。
在 bashrc 中设置后,再从图形界面菜单中启动 opera 无效
根据此说明,启动 opera 时使用 --proxy-server="" 开关即可sluding 写了:这是它代理的说明
例如
代码: 全选
opera --proxy-server="127.0.0.1:8087"
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 帖子: 70
- 注册时间: 2010-02-12 19:47
Re: lubuntu该怎么设置代理IP
vickycq 写了:这里指的是 opera 还是 firefoxsluding 写了:无论是在新终端中用 firfox 打开
顾名思义 *bashrc 只对 interactive bash shell 生效sluding 写了:还是 reboot 后打开浏览器,查询 Ip 都没有发生变化。
在 bashrc 中设置后,再从图形界面菜单中启动 opera 无效
根据此说明,启动 opera 时使用 --proxy-server="" 开关即可sluding 写了:这是它代理的说明
例如参考 http://superuser.com/questions/855586/i ... the-system代码: 全选
opera --proxy-server="127.0.0.1:8087"
谢谢~回复真快。 “在新终端中用 firefox 打开”指的是 firefox, opera安装完后我不知道它叫什么,所以不会在终端中用命令打开,只会从图形打开。
编辑完 ~/.bashrc 后, source ~/.bashrc,然后从终端中打开firefox,倒是可以下载原来不能下载的文献了,但是用百度查询IP,还是显示本地IP。而且好像企图打开 www.google.com 的话,代理就失效了,重新要开浏览器也没用了
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: lubuntu该怎么设置代理IP
如果是从官网下载的 deb:sluding 写了:opera安装完后我不知道它叫什么,所以不会在终端中用命令打开,只会从图形打开。
是 opera
位置 /usr/bin/opera
新建 /usr/share/applications/opera-proxy.desktop 改为以下内容
假设代理为 http://127.0.0.1:8087
代码: 全选
[Desktop Entry]
Version=1.0
Name=Opera(w/ proxy)
GenericName=Web browser
Comment=Fast and secure web browser
TryExec=opera --proxy-server="127.0.0.1:8087"
Exec=opera %U --proxy-server="127.0.0.1:8087"
Terminal=false
Icon=opera
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;application/x-opera-download;
Actions=NewWindow;NewPrivateWindow;
[Desktop Action NewWindow]
Name=New Window
Exec=opera --new-window --proxy-server="127.0.0.1:8087"
TargetEnvironment=Unity
[Desktop Action NewPrivateWindow]
Name=New Private Window
Exec=opera --private --proxy-server="127.0.0.1:8087"
TargetEnvironment=Unity
具体使用的开关 见你贴出来的说明
firefox 无需搞这些,直接在 firefox 中设置即可sluding 写了:编辑完 ~/.bashrc 后, source ~/.bashrc,然后从终端中打开firefox,倒是可以下载原来不能下载的文献了,但是用百度查询IP,还是显示本地IP。而且好像企图打开 http://www.google.com 的话,代理就失效了,重新要开浏览器也没用了
或用图标为“福”字的插件设置
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户