<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8166170055430099447</id><updated>2024-08-28T07:50:32.361-04:00</updated><title type='text'>The Information Technology Wonk</title><subtitle type='html'>Misc thoughts from a 20 year IT veteran.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://itwonk.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8166170055430099447/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://itwonk.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jeffrey Macko</name><uri>http://www.blogger.com/profile/08557807825371489996</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8166170055430099447.post-6409604084123137503</id><published>2012-05-02T11:01:00.000-04:00</published><updated>2012-05-02T11:01:46.034-04:00</updated><title type='text'>apt-catcher-ng No client changes needed.</title><content type='html'>&lt;span style=&quot;font-family: inherit;&quot;&gt;If you&#39;re familiar with windows updates and the need to have a WSUS server on your network to locally cache the torrent of Windows updates and now have a bunch of Ubuntu boxes on your network, you&#39;ll want to read on.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;apt-catcher-ng, apache2, a small php script, and some dns changes are the solution you need to cache these updates locally. &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Best of all you&#39;ll never need to reconfigure any of the Ubuntu boxes on your network.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
apt-catcher-ng stores the updates when requested from a http url in the local cache, it does this using a mangled url.&lt;br /&gt;
&lt;br /&gt;
Normal apt url: &amp;nbsp; http://us.archive.ubuntu.org/ubuntu/pool/main/s/blah blah&lt;br /&gt;
Normal apt-catcher url: &amp;nbsp;http://&amp;lt;apt-catcher-ng hostname&amp;gt;:3142/us.archive.ubuntu.org/ubuntu....&lt;br /&gt;
&lt;br /&gt;
To get the clients to update you now need to modify their sources, or insert a line to proxy on all of them. &amp;nbsp;Major pain. &lt;br /&gt;
&lt;br /&gt;
If you can update your DNS to re-direct all the us.archive.ubuntu.org to the apt-catcher server, they&#39;ll all get 404&#39;s as the apt-catcher server is running on the wrong port 3142, and the request arrives on port 80.&lt;br /&gt;
&lt;br /&gt;
So, why not use a php script to do a redirct to let the client go to the right URL and transform the url into the apt-catcher-ng mangled url at the same time.&lt;br /&gt;
&lt;br /&gt;
Your configuration will probably be different, but here are a few notes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;apt-catcher-server needs a different dns server in resolv.conf, otherwise it will resolve us.archive.ubuntu.org to itself, and no updates.&lt;/li&gt;
&lt;li&gt;Either use mod_rewrite, or make the 404 page your index.php page that does the rewrite, otherwise you&#39;ll miss URL requests.&lt;/li&gt;
&lt;li&gt;Expect the cache to grow. &amp;nbsp;Perhaps put a second disk into that VM.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Two days later things are working great.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://itwonk.blogspot.com/feeds/6409604084123137503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8166170055430099447/6409604084123137503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8166170055430099447/posts/default/6409604084123137503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8166170055430099447/posts/default/6409604084123137503'/><link rel='alternate' type='text/html' href='http://itwonk.blogspot.com/2012/05/apt-catcher-ng-no-client-changes-needed.html' title='apt-catcher-ng No client changes needed.'/><author><name>Jeffrey Macko</name><uri>http://www.blogger.com/profile/08557807825371489996</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>