<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dexter Brylle</title>
    <description>The latest articles on DEV Community by Dexter Brylle (@dexterbrylle).</description>
    <link>https://dev.to/dexterbrylle</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F19019%2Fdef2e58d-efaa-4ef2-93e6-fb8bec643647.jpg</url>
      <title>DEV Community: Dexter Brylle</title>
      <link>https://dev.to/dexterbrylle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dexterbrylle"/>
    <language>en</language>
    <item>
      <title>Speed up Ubuntu apt-get downloads with apt-fast</title>
      <dc:creator>Dexter Brylle</dc:creator>
      <pubDate>Fri, 15 Sep 2017 03:07:52 +0000</pubDate>
      <link>https://dev.to/dexterbrylle/speed-up-ubuntu-apt-get-downloads-with-apt-fast</link>
      <guid>https://dev.to/dexterbrylle/speed-up-ubuntu-apt-get-downloads-with-apt-fast</guid>
      <description>&lt;h2&gt;
  
  
  Intro
&lt;/h2&gt;

&lt;p&gt;I've been experiencing slow download speeds on my Ubuntu VirtualBox a couple of weeks ago. Initially, I thought that my internet connection was acting up again (I have an 8 Mbps connection at home), so I did speed tests. However, tests consistent which led me to conclude that it's probably an Ubuntu mirror server thing. Half a day passed, and the connection was still a struggle so I  cleaned my sources list and changed them from the mirror that my location was using to US with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;    &lt;span class="nb"&gt;sudo sed&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; &lt;span class="s1"&gt;'s/http:\/\/us./http:\/\//g'&lt;/span&gt; /etc/apt/sources.list
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  apt-fast
&lt;/h2&gt;

&lt;p&gt;So, speed was normal again. However, I kept thinking about the latency of downloading it from the server that I set it to. With a few Google searches, I came up with this great package that uses parallel connections to speed up downloads. It's &lt;a href="https://github.com/ilikenwf/apt-fast"&gt;&lt;strong&gt;apt-fast&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;apt-fast is a shellscript wrapper for apt-get and aptitude that can drastically improve apt download times by downloading packages in parallel, with multiple connections per package.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I felt the drastic improvement! You can install it by following the set of commands below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;add-apt-repository ppa:saiarcot895/myppa
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get update
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get &lt;span class="nt"&gt;-y&lt;/span&gt; &lt;span class="nb"&gt;install &lt;/span&gt;apt-fast
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  How to use apt-fast
&lt;/h2&gt;

&lt;p&gt;You'll use &lt;strong&gt;apt-fast&lt;/strong&gt; the same way you'd use &lt;strong&gt;apt-get&lt;/strong&gt; or &lt;strong&gt;aptitude&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-fast update
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-fast &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-y&lt;/span&gt; &amp;lt;package-name&amp;gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-fast dist-upgrade
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-fast remove
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Further increase download speeds
&lt;/h2&gt;

&lt;p&gt;You can add mirrors that are closest to your location for better results. Open up:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;vim etc/apt-fast.conf
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Then add this line of code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;MIRRORS&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt; &lt;span class="s1"&gt;'http://ftp.debian.org/debian, http://ftp2.de.debian.org/debian, http://ftp.de.debian.org/debian, ftp://ftp.uni-kl.de/debian'&lt;/span&gt; &lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;You can read more about &lt;strong&gt;apt-fast&lt;/strong&gt; on its Github &lt;a href="https://github.com/ilikenwf/apt-fast"&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This was originally published on my &lt;a href="https://dexterbrylle.info/fast-apt-get-downloads-apt-fast/"&gt;blog&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ubuntu</category>
      <category>linux</category>
      <category>debian</category>
      <category>aptget</category>
    </item>
    <item>
      <title>Ubuntu Dev Environment setup</title>
      <dc:creator>Dexter Brylle</dc:creator>
      <pubDate>Wed, 30 Aug 2017 16:00:51 +0000</pubDate>
      <link>https://dev.to/dexterbrylle/ubuntu-dev-environment-setup</link>
      <guid>https://dev.to/dexterbrylle/ubuntu-dev-environment-setup</guid>
      <description>&lt;p&gt;I have a Macbook Pro for personal use and I already have my workflow setup. However, in my day job, I was assigned a machine running on Windows. I've made the switch to macOS since 2013 and that change kind of set me back with efficiency and productivity. So I decided to run Ubuntu 16.04 on Virtualbox. &lt;/p&gt;

&lt;p&gt;Below are some of the tools that I use to get you up and running.&lt;/p&gt;

&lt;h1&gt;
  
  
  Ubuntu Dev Environment setup
&lt;/h1&gt;

&lt;h3&gt;
  
  
  Chromium
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install -y chromium-browser
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Chrome
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" &amp;gt;&amp;gt; /etc/apt/sources.list.d/google-chrome.list'

sudo apt install -y google-chrome-stable
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  NodeJS
&lt;/h3&gt;

&lt;p&gt;&lt;em&gt;v 6.x&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

sudo apt install -y nodejs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;v 8.x&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

sudo apt-install -y nodejs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  zsh and oh-my-zsh
&lt;/h3&gt;

&lt;p&gt;Install zsh&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install zsh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install oh-my-zsh&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;You can read more about oh-my-zsh&lt;/em&gt; &lt;a href="https://github.com/robbyrussell/oh-my-zsh"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fixes to set zsh/oh-my-zsh as your default&lt;/p&gt;

&lt;p&gt;*&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    chsh -s $(which zsh)
    ```


* You may need to logoff and login again for the changes to take effect

### Visual Studio Code

Add the repository




&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;curl &lt;a href="https://packages.microsoft.com/keys/microsoft.asc"&gt;https://packages.microsoft.com/keys/microsoft.asc&lt;/a&gt; | gpg --dearmor &amp;gt; microsoft.gpg&lt;/p&gt;

&lt;p&gt;sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg&lt;/p&gt;

&lt;p&gt;sudo sh -c 'echo "deb [arch=amd64] &lt;a href="https://packages.microsoft.com/repos/vscode"&gt;https://packages.microsoft.com/repos/vscode&lt;/a&gt; stable main" &amp;gt; /etc/apt/sources.list.d/vscode.list'&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


Upate cache and install vs code



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;sudo apt update&lt;/p&gt;

&lt;p&gt;sudo apt install code #or code-insiders&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


### Sublime Text 3




&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;wget -qO - &lt;a href="https://download.sublimetext.com/sublimehq-pub.gpg"&gt;https://download.sublimetext.com/sublimehq-pub.gpg&lt;/a&gt; | sudo apt-key add -&lt;/p&gt;

&lt;p&gt;echo "deb &lt;a href="https://download.sublimetext.com/"&gt;https://download.sublimetext.com/&lt;/a&gt; apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list&lt;/p&gt;

&lt;p&gt;sudo apt update&lt;/p&gt;

&lt;p&gt;sudo apt install sublime-text&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;



### GitKraken


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;wget &lt;a href="https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz"&gt;https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;tar -xvzf gitkraken-amd64.tar.gz&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


or



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;wget &lt;a href="https://release.gitkraken.com/linux/gitkraken-amd64.deb"&gt;https://release.gitkraken.com/linux/gitkraken-amd64.deb&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;dpkg -i gitkraken-amd65.deb&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


### MongoChef

Download the .tar file [here](https://studio3t.com/download/)



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;cd ~/Downloads&lt;/p&gt;

&lt;p&gt;tar -xvzf studio-3t-linux-x64.tar.gz&lt;/p&gt;

&lt;p&gt;cd studio-3t-linux-x64/bin&lt;/p&gt;

&lt;p&gt;./studio-3t.sh&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;



### Spotify



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 0DF731E45CE24F27EEEB1450EFDC8610341D9410&lt;/p&gt;

&lt;p&gt;echo deb &lt;a href="http://repository.spotify.com"&gt;http://repository.spotify.com&lt;/a&gt; stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list&lt;/p&gt;

&lt;p&gt;sudo apt update&lt;/p&gt;

&lt;p&gt;sudo apt install y- spotify-client&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


I hope this may serve as a reference to people/devs with a fresh install of Ubuntu.

Thanks!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ubuntu</category>
      <category>node</category>
      <category>linux</category>
      <category>guide</category>
    </item>
  </channel>
</rss>
