<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: bandwidth</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/bandwidth/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Upgrading Ubuntu 12.04 To 14.04 With Limited Bandwidth</title>
      <link>https://chrisjrob.com/2014/09/04/upgrading-ubuntu-12-04-to-14-04-with-limited-bandwidth/</link>
      <pubDate>Thu, 04 Sep 2014 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2014/09/04/upgrading-ubuntu-12-04-to-14-04-with-limited-bandwidth</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/ubuntu-1404-desktop.png" align="right" alt="Featured Image">
         
         <p>Upgrading Ubuntu at work can make you rather unpopular, as the Internet bandwidth
is fully utilised downloading all the updates to packages you have long
since forgotten that you installed.</p>

<p>It also takes time, time that you should be working rather
than upgrading your computer.</p>

<p>For these reasons I like to trickle download the upgrade over a day and
only perform the actual upgrade once all the packages are ready,
typically the following morning.</p>

<!--more-->

<p>This is how I performed my low-bandwidth upgrade…</p>

<p><strong>N.B. This is not the official or recommended way of upgrading between
Ubuntu versions. Specifically my method involves manually disabling some
repositories and updating others to the new release. This would normally
be done by the do-release-upgrade program itself. It works for me, but
please do be aware that you are deviating slightly from the
official method.</strong></p>

<p> </p>

<h2 id="step-1-disable-3rd-party-repositories">Step 1: Disable 3rd Party Repositories</h2>

<p>Launch the Ubuntu Software Centre and from the menu select <strong>Edit</strong>
followed by <strong>Software Sources</strong>. Under the <strong>Other Software</strong> tab
please untick all active repositories.</p>

<p>(This step should in any case be done automatically by step 4).</p>

<h2 id="step-2-update-repositories">Step 2: Update Repositories</h2>

<p>Edit <code class="language-plaintext highlighter-rouge">/etc/apt/sources.list</code> and replace all occurrences of  ”precise”
with “trusty”. If you are of a brave disposition, the following command
should do this for you:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo sed -i.bak 's/precise/trusty/g' sources.list
</code></pre></div></div>

<p>(This will create a copy of sources.list to sources.list.bak, in case
you wish to reverse this.)</p>

<h2 id="step-3-download-packages">Step 3: Download Packages</h2>

<p>Still in the terminal, type:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get updatesudo apt-get -o Acquire::http::Dl-Limit=64 -d dist-upgrade
</code></pre></div></div>

<p>The 64 will limit the bandwidth to 64 Kbps, please adjust to suit your
available bandwidth. The “-d” will instruct apt-get to merely download
the packages and not to install them.</p>

<p>I believe this stage can be aborted with Ctrl+C at any time and run
again, until such time as all the required packages are downloaded.</p>

<h2 id="step-4-upgrade">Step 4: Upgrade</h2>

<p>Still in the terminal, I tend to use GNU Screen for extra resilience,
type:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo do-release-upgrade
</code></pre></div></div>

<h2 id="conclusion">Conclusion</h2>

<p>I am typing this on my newly upgraded 14.04 installation, after a clean
and trouble-free reboot and an entirely fault-free upgrade.</p>

<p>The truly astonishing aspect to an upgrade is the fact that the computer
remains largely usable throughout. I lost my fonts briefly in one
application during Step 4, but otherwise I was able to work normally. It
didn’t even seem to be slowing my computer down greatly, although this
is a fairly powerful workhorse, so your mileage may vary.</p>

<p>Please do comment, if you feel I’ve left anything out in the above, or
indeed if you have found it useful.</p>

<p>Good luck with your upgrade.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Limiting The Bandwidth Usage of apt-get and wget</title>
      <link>https://chrisjrob.com/2011/03/31/limiting-the-bandwidth-usage-of-apt-get-and-wget/</link>
      <pubDate>Thu, 31 Mar 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/03/31/limiting-the-bandwidth-usage-of-apt-get-and-wget</guid>
      <description>
       <![CDATA[
         
         <p>I have to be careful about the bandwidth I use at work; so I limit the
bandwidth of apt-get and wget.</p>

<h2 id="apt-get">apt-get</h2>

<p>For apt-get you just need to create a new file:</p>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/etc/apt/apt.conf.d/76download
</code></pre></div></div>

<p>with the following contents:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo vim /etc/apt/apt.conf.d/76download 
Acquire {
    Queue-mode "access";
    http {
        Dl-Limit "128";
    };
};
$
</code></pre></div></div>

<p>The above will limit your bandwidth to 128K, adjust this figure to suit
your network.</p>

<p>Alternatively, if you don’t want this change to be set permanently, then
you can specify it in the command line:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get -o Acquire::http::Dl-Limit=128 upgrade
</code></pre></div></div>

<h2 id="wget">wget</h2>

<p>To rate-limit wget, simply edit <code class="language-plaintext highlighter-rouge">/etc/wgetrc</code> or your personal
configuration at <code class="language-plaintext highlighter-rouge">~/.wgetrc</code> and add or edit the following line:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>limit-rate=128k
</code></pre></div></div>

<h2 id="other">other</h2>

<p>Other packages can be configured in different ways, but you could
install <code class="language-plaintext highlighter-rouge">trickle</code> and then read its man page to determine how to use it.
For example (from the man page):</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ trickle -u 128 -d 128 ncftp
</code></pre></div></div>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
