<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jerrell Jones on Medium]]></title>
        <description><![CDATA[Stories by Jerrell Jones on Medium]]></description>
        <link>https://medium.com/@Jerrell_L_Jones?source=rss-68f435d28fc2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KT8GRnZ6P6Sg156bw_ewAQ@2x.jpeg</url>
            <title>Stories by Jerrell Jones on Medium</title>
            <link>https://medium.com/@Jerrell_L_Jones?source=rss-68f435d28fc2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:15:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Jerrell_L_Jones/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Creating Your Own Server ~ Linux Style]]></title>
            <link>https://medium.com/@Jerrell_L_Jones/creating-your-own-server-linux-style-98cdc79f4c28?source=rss-68f435d28fc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/98cdc79f4c28</guid>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Jerrell Jones]]></dc:creator>
            <pubDate>Wed, 03 Feb 2016 03:52:14 GMT</pubDate>
            <atom:updated>2016-02-08T05:44:08.970Z</atom:updated>
            <content:encoded><![CDATA[<p>I have recently started building a mobile app for a non-profit (<a href="http://www.corchurch.org/"><em>insert shameless plug here</em></a>). This application is essentially a mobile version of the churches website with embedded chat functionality to communicate with all of its members. With this being a non-profit organization, it may or may not be obvious that they do not want to purchase server space via AWS, Google, Parse, etc. Since they are a small enough organization, I offered them an alternative solution of owning their own server, which I will maintain.</p><p><em>Now to the good stuff…</em></p><p><strong>Server Specs:</strong></p><ul><li>Intel Core-i5–4430 Haswell Quad-Core Processor</li><li>2x — Samsung 500GB SSD (RAID1)</li><li>G.Skill Ripjaws X 32GB 240-Pin DDR3 1600</li><li>Gigabyte GA-B85M-DS3H-A Motherboard</li><li>Xion XON-560 Case</li><li>Thermaltake TR2 W0070 PSU</li><li>CD/DVD Drive, Monitor, Keyboard, and Mouse</li><li>Ubuntu Server 15.10</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*opxSbYcfKKWlZ5nJbCOiUQ.jpeg" /><figcaption>Completed Server</figcaption></figure><p>After I assembled the machine, it was time to install Ubuntu Server 15.10 and more importantly setup my two SSDs for RAID1. My first OS of choice was <a href="http://ubuntu.com/download/server">Ubuntu 14.04.3 LTS</a> (for the Long Term Support). I was unable to setup my RAID configuration because this distro of Ubuntu would not allow me to designate between Primary and Logical partitions for my drives. I believe it was declaring my drives logical when they were primary, which wouldn’t allow me to install GRUB aka a boot-loader (correct me if I’m wrong). After a few hours of tinkering around, “googling”, and jumping between the Desktop and Server versions of Ubuntu, I decided to jump to Ubuntu 15.10 and BOOM! I was able to define a primary partition for my drive. This <a href="https://help.ubuntu.com/lts/serverguide/advanced-installation.html">link</a> should offer <em>some </em>assistance if you wish to setup a RAID configuration.</p><h4>After a big sigh of relief…</h4><p>I had to setup the remaining parts of the server;</p><ul><li>Virtual Network Computing Application (VNC)</li><li>File Transfer Protocol Application (FTP)</li><li>Secure Shell (SSH)</li><li>Database</li><li>Router port forwarding (won’t go into detail about this)</li><li>and… a desktop!</li></ul><p>In order to maintain the server remotely, I had to have a sure fire way of having access to it <strong><em>24/7</em></strong>. This meant changing some BIOS settings to ensure that the computer will power on if it happens to lose power and setting up the VNC and SSH to start during boot. In all reality, I could’ve just had the SSH start on boot, then use that to start the VNC whenever I needed it. In theory, before I deploy the server, I should disable VNC at startup and just use SSH, because of its security and data compression rates which come in handy when dealing with a slow connection on the server side. For the FTP, I used Pro FTP Daemon (proftpd), installing it using these commands:</p><blockquote>sudo apt-get install proftpd<br>sudo apt-get install gadmin-proftpd</blockquote><p>The SSH was actually installed during installation, perks of installing Ubuntu Server over Ubuntu Desktop. For those of you that don’t know, Ubuntu Server distro does not come with a GUI/Desktop. I wanted a desktop to be able to use a GUI to manage my database, among other things. However, I did not want the full desktop experience aka <em>bloatware</em>. Therefore, I did a minimal install of the Unity Desktop.</p><blockquote>sudo apt-get install --no-install-recommends ubuntu-desktop</blockquote><p>Now the tough part, for me at least. I wanted to have my VNC server and database start at the same time. For my VNC server, I chose <em>x11vnc </em>and for my database I chose <em>MongoDB. </em>Getting x11vnc to start at boot-up was easy, until I decided to start MongoDB on boot-up also. I simply followed <a href="http://c-nergy.be/blog/?p=5870">these instructions</a> to configure x11vnc to become a startup service.</p><p>I figured that I could just get MongoDB to start by editing the rc.local file found at <strong>/etc/rc.local</strong>. Anything placed into this file runs at startup. So, I simply added the line <em>/usr/bin/mongod</em> to the file and a quick <strong>:wq</strong>, then I was off to the races! Rebooted my machine, tried to login via my VNC Client and got the lovely “Connection refused by the host machine.” error… uh, what?! After multiple reboots and even a reinstall, I realized that I could not have anything in my rc.local file while having other startup services. I then realized (actually a coworker told me) that using rc.local was a lazy mans (or womans) way to creating startup “services”. Next, I tried editing the mongod.config file to no avail. MongoDB is supposed to startup on boot by default! After some research, I learned that the <a href="https://jira.mongodb.org/browse/SERVER-17742">MongoDB team said</a> that they won’t support Ubuntu 15.04/15.10, but will support the next LTS, presumably 16.04.</p><blockquote>“Instead of this, we’ll probably add support for 16.04, which will presumably be LTS.”</blockquote><h3>Stumped I was!</h3><p>After sitting and thinking for a few moments, I remembered that I now knew how to create startup services using a <em>service unit file</em>, thanks to the x11vnc tutorial, using the following command.</p><blockquote>sudo vi /lib/systemd/system/mongodb.service</blockquote><p>Containing the following lines.</p><blockquote>[Unit]<br>Description=Start MongoDB at startup.<br>After=multi-user.target<br>[Service]<br>Type=simple<br>ExecStart=/usr/bin/mongod<br>[Install]<br>WantedBy=multi-user.target</blockquote><p>Then I configured systemd to make it aware of the changes I made and to make the service run at startup.</p><blockquote>sudo systemctl daemon-reload<br>sudo systemctl enable mongodb.service</blockquote><p>The next steps are to build a <a href="https://nodejs.org/en/">Node.js</a> application to act as a server using <a href="http://socket.io/">socket.io</a>. I’ll be sure to post an update once I get finished, containing some code snippets! Feel free to comment with questions or helpful advice!</p><p>You can follow me on Twitter <a href="https://twitter.com/Jerrell_L_Jones">@Jerrell_L_Jones</a> and on Instagram <a href="https://www.instagram.com/jerrell.l.jones/">@Jerrell.L.Jones</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98cdc79f4c28" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>