个人工具
登录
查看“UbuntuHelp:Polipo”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Polipo”的源代码
来自Ubuntu中文
←
UbuntuHelp:Polipo
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Polipo}} {{Languages|UbuntuHelp:Polipo}} Someone rightly pointed out that i didn't say what the point of the proxy is - <<BR>>A caching proxy can be useful for slow or high latency connections, allowing you to download a file once, but view it multiple times. The images that make up a websites UI, or advertising (unless you [[UbuntuHelp:Privoxy| remove it]]) all takes bandwidth to download. In the case of Advertising, for no benefit to you. Polipo even has this funky little option for you: <<BR>># Uncomment this if you have no network: <<BR>># proxyOffline = yes <<BR>>Offline mode! == Installing and setting up polipo == Misc notes: When I say "vi", feel free to use any other editor instead (such as emacs or nano). For a GUI editor, run gksudo gedit or kdesudo kate. This assumes your setting polipo up for use on a gateway- if your setting it up on a stand alone pc, change all references to `192.168.0.1` to your loopback ip, or your ethernet ports ip (either will work). === Lets get started === First, start out by making sure you have universe enabled, up to date package lists and downloading the polipo package (it has no dependancies). <pre><nowiki> sudo apt-get update sudo apt-get install polipo </nowiki></pre> Now to edit the polipo config file. This is found in `/etc/polipo/config`, and by default is the only file there to configure. Now I'm going to list the required changes to the config file - all 2 of them!. Remember to customise these as required :). Its also worth noting that theres lots of other options to play with, and you should feel free. these are just the 2 you need to change to get going. <pre><nowiki> # Add your proxy's address proxyAddress = 192.168.0.1 # Allow from anyone in the 192.168.0.* range to connect to your proxy allowedClients = 192.168.0.0/24 </nowiki></pre> Restart the service, and we are done! <pre><nowiki> sudo /etc/init.d/polipo restart </nowiki></pre> === Now for client config! === ==== First things first - APT. ==== This one is stupidly easy - Open a terminal, and type the following (it creates a blank file) <pre><nowiki> sudo vi /etc/apt/apt.conf </nowiki></pre> In the file, add <pre><nowiki> Acquire::http::Proxy "http://192.168.0.1:8123"; </nowiki></pre> as the only line. ==== Firefox: ==== Open the browser, click Edit -> Preferences. Click the 'connection settings' button, and click on 'manual proxy configuration'. In the top field add the following: <pre><nowiki> HTTP Proxy: 192.168.0.1 Port: 8123 </nowiki></pre> PS, if you go and [[UbuntuHelp:Privoxy| set up privoxy]] as well, this port is changed. One step at a time though! ==== GNOME: ==== Click System -> Preferences -> network proxy. Click Manual proxy configuration, and put in the same details as above : <pre><nowiki> HTTP Proxy: 192.168.0.1 Port: 8123 </nowiki></pre> Log out and in to apply GNOME settings, and your done! ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Polipo
。