<?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 paulgdan on Medium]]></title>
        <description><![CDATA[Stories by paulgdan on Medium]]></description>
        <link>https://medium.com/@paulgdan?source=rss-81d52562f68d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*SNoxmYysmZPRe5VI.jpeg</url>
            <title>Stories by paulgdan on Medium</title>
            <link>https://medium.com/@paulgdan?source=rss-81d52562f68d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:58:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paulgdan/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[Create your own PaaS with Dokku]]></title>
            <link>https://medium.com/philosophie-is-thinking/create-your-own-paas-with-dokku-22cf92d28444?source=rss-81d52562f68d------2</link>
            <guid isPermaLink="false">https://medium.com/p/22cf92d28444</guid>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[paulgdan]]></dc:creator>
            <pubDate>Wed, 20 May 2015 01:37:01 GMT</pubDate>
            <atom:updated>2015-05-20T01:37:01.270Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever get frustrated with a deployment solution on a VPS using something like <a href="http://capistranorb.com/">Capistrano</a> and you can’t use Heroku because of client restrictions?</p><p>Dokku gives you Heroku-like functionality that can be deployed to any number of VPS providers.</p><p>Let’s use Vagrant with Dokku so we can just test Dokku out on our local machine.</p><p>Requirements for OS X:</p><ul><li>Virtualbox: <a href="https://www.virtualbox.org/">https://www.virtualbox.org/</a></li><li>Vagrant: <a href="https://www.vagrantup.com/">https://www.vagrantup.com/</a></li><li>Dokku: <a href="https://github.com/progrium/dokku">https://github.com/progrium/dokku</a></li></ul><ol><li>Add the following to your /etc/hosts (you’ll have to use sudo):</li></ol><pre>10.0.0.2 dokku.me<br>10.0.0.2 rails.dokku.me<br>10.0.0.2 js.dokku.me</pre><p>2. Clone the Dokku repository:</p><pre>git clone <a href="/service/mailto:git@github.com">git@github.com</a>:progrium/dokku.git</pre><p>3. Change to the Dokku directory:</p><pre>cd dokku</pre><p>4. Bring up the Vagrant virtual machine (takes a few minutes):</p><pre>vagrant up </pre><p>5. Add the correct permissions for the Dokku user:</p><pre>cat ~/.ssh/id_rsa.pub | ssh <a href="/service/mailto:root@dokku.me">root@dokku.me</a> sudo sshcommand acl-add dokku onnimonni</pre><p>6. Browse to <a href="http://dokku.me/">http://dokku.me</a> to setup your install:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VTHyh_d6nsLORcnXsG6XMQ.png" /></figure><ul><li>Your public key should be auto-populated in the ‘Public Key’ section.</li><li>Change the hostname to dokku.me</li><li>Check ‘Use virtualhost naming for apps’</li><li>Click ‘Finish Setup’</li></ul><p>7. Let’s use Heroku’s Node.js sample project:</p><pre>git clone <a href="/service/mailto:git@github.com">git@github.com</a>:heroku/node-js-sample.git<br>cd node-js-sample<br>git remote add dokku <a href="/service/mailto:dokku@dokku.me">dokku@dokku.me</a>:js<br>git push dokku</pre><p>8. Navigate to <a href="http://js.dokku.me/">http://js.dokku.me/</a> and you should see “Hello World!”</p><p>9. Now let’s add Heroku’s Rails sample project now:</p><p>10. First install the Postgres Dokku plugin:</p><pre>ssh root@dokku.me<br>cd /var/lib/dokku/plugins<br>git clone https://github.com/jeffutter/dokku-postgresql-plugin postgresql</pre><pre>dokku plugins-install</pre><p>11. Start Postgres:</p><pre>ssh <a href="/service/mailto:dokku@dokku.me">dokku@dokku.me</a> postgresql:start</pre><p>12. Clone the Heroku Rails example:</p><pre><a href="/service/mailto:git@github.com">git@github.com</a>:heroku/ruby-rails-sample.git<br>git remote add dokku <a href="/service/mailto:dokku@dokku.me">dokku@dokku.me</a>:rails<br>git push dokku</pre><p>13. When you ssh using the Dokku user it functions similar to the Heroku toolbelt:</p><pre>ssh dokku@dokku.me</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GTsOJMee1QRPKrF24S8FnA.png" /></figure><p>14. Now run the following to create a Postgres database and run your migration:</p><pre>ssh dokku@dokku.me postgresql:create rails<br>ssh <a href="/service/mailto:dokku@dokku.me">dokku@dokku.me</a> run rails rake db:migrate</pre><p>Browse to <a href="http://rails.dokku.me/">http://rails.dokku.me/</a> and you should have a working Rails app!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22cf92d28444" width="1" height="1" alt=""><hr><p><a href="https://medium.com/philosophie-is-thinking/create-your-own-paas-with-dokku-22cf92d28444">Create your own PaaS with Dokku</a> was originally published in <a href="https://medium.com/philosophie-is-thinking">Philosophie is Thinking</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adventures in DevOps I]]></title>
            <link>https://medium.com/philosophie-is-thinking/adventures-in-devops-i-ededab920eb1?source=rss-81d52562f68d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ededab920eb1</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[slackware]]></category>
            <dc:creator><![CDATA[paulgdan]]></dc:creator>
            <pubDate>Thu, 26 Feb 2015 21:27:50 GMT</pubDate>
            <atom:updated>2015-03-10T17:34:45.149Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5g4IOOh6vWcIAoLhjTLStA.png" /></figure><h3>Adventures in DevOps: Installing Linux 101</h3><p>As web developers we are spoiled with platforms such as Heroku that make deploying our applications relatively easy. Once in a while you might be tasked with maintaining a system that is hosted on a VPS or even an actual physical server and need to get your hands dirty.</p><p>In this series of posts I aim to make life easier by giving you a helping hand but let’s start with the real basics and go from there.</p><p>I have been asked on occasion what is the best way to really learn Linux and what distribution should I use?</p><p>For servers you might look to the well known Ubuntu, Red Hat or CentOS(Red Hat clone). All of these are relatively easy to install, and a lot of VPS’s have a simple one click install and you are ready to go within a couple of minutes.</p><p>What if you want to earn some serious Linux nerd chops?</p><p>I recommend my favorite distribution, <a href="http://www.slackware.com/">Slackware</a>. It has been around since 1993 and is basically maintained by one man, Patrick Volkerding, along with a few volunteers. The last stable release was 2013, but the packages are kept up to date and can be updated once you have your system installed.</p><p>Why do I like it? Its simplicity and flexibility. I’ve used it on everything from embedded systems to commercial video severs. It is great for really learning how Linux works. Not to mention how about having a release with a version number of 13.37?</p><p>What is the difference between all the different Linux distributions anyhow? Not a whole lot really. The main differences are the package managers and how the startup scripts are handled. They all use the <a href="https://www.kernel.org/">Linux kernel</a>, the heart of the operating system.</p><p>I feel Slackware’s startup scripts are much easier to understand than those on other distributions. Additionally they try to use generic packages whereas other distribution’s packages are often patched or modified.</p><p>So let’s start earning those DevOps badges like a boss and install Slackware in the easiest way possible by using a virtual machine.</p><ol><li>Download and install <a href="https://www.virtualbox.org/">Virtualbox</a>.</li><li>Download the Slackware DVD iso image from <a href="http://www.slackware.com/getslack/torrents.php">here</a>.</li><li>Start VirtualBox.</li><li>Create new virtual machine by clicking “New” in the upper left (don’t worry about the version it doesn’t really matter in this case):</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ciL7skcAkSRC0Muadkm3_A.png" /></figure><p>5. Click “Continue” until you reach this screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WHFUrj3YA_Qz86gL3tT9Zg.png" /></figure><p>Here increase the disk size to at least 10 GB if you want a full installation. Then you can safely continue through the rest of the prompts and accept the defaults until the dialog closes.</p><p>6. Click the green “Start” arrow.</p><p>7. Browse to where you downloaded the Slackware iso image by clicking the folder icon then click “Start”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YX4kIAOTW8NtE1a0U_ziww.png" /></figure><p>8. Next you’ll come to the screen below, just hit enter, and you’ll see the kernel messages fly by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lMns1lLzc4yPiFpb6JYXuQ.png" /></figure><p>9. You’ll come to a prompt to select a keyboard map just hit enter.</p><p>10. Next you’ll be presented with a login: type “root” and then hit enter.</p><p>11. Now in order to install you need to partition your virtual disk the easiest method is by typing “cfdisk”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nxilUW9LkEa-iZCvOxZ2Dg.png" /></figure><p>12. For the sake of simplicity let’s just use the whole disk. Hit enter while new is selected. (Don’t worry this isn&#39;t destructive to your physical machine).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBzQEBLcQ0ktK13lxNNGDQ.png" /></figure><p>13. Next highlight “Write” and hit enter then type out “yes” to write the partition table so we are able to format the virtual drive.</p><p>14. Now highlight “Quit” and you will be returned to the command line.</p><p>15. Now we are ready to start the installer. Type “setup”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AF2b7iYgprR1e3f5OmOl4A.png" /></figure><p>16. Use the arrow keys and navigate to to “TARGET” and hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uEIc4vtqHcy8qa1OQRAdRA.png" /></figure><p>17. Now you will see the partition we create in the earlier steps. Select “/dev/sda1&quot; and hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Km6WjJ8iW28Rpso0rJQcQ.png" /></figure><p>18. Now we are going to format our disk. Make sure “Format” is selected and hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nDtQKWvQOxwrwZ6Kspuy6g.png" /></figure><p>19. “ext4&quot; is selected by default which is the standard Linux file system these days. Hit enter to format, it should only take a few seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*drDJNu5CGXOQDT0OarfdaA.png" /></figure><p>20. You now have formatted the disk. “/etc” is where Linux stores its configuration files. This file tells the system to mount the partition on root(“/”) when it boots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5zbISCrMiwq9gASTm-lREw.png" /></figure><p>21. There’s a number ways to do our install. Highlight the first and hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kiGKWH1hi57Cd9vdbpZw7w.png" /></figure><p>22. Let’s use the default again here. Hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gb4Wky4UN_5I8sxrpnRrxg.png" /></figure><p>23. Now the fun begins! Here is where we can select our package groups. Be safe here and just leave everything as default and hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3e-aj4-Ow3QA1TP__BP0Gw.png" /></figure><p>24. I’d recommend a “full” install. If you really want to be a champ use “newbie”, but as it says it will take forever.</p><p>You will see every package that is installed, although they will fly by rather quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LwLzASqUuTPGuRavTieFUA.png" /></figure><p>25. Highlight “Skip” on this screen and hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oYp8vF2yM2iwx65vq601rg.png" /></figure><p>26. Here you’ll want to select “simple”.</p><p>This will write a boot loader to a special section of the disk that the BIOS looks for when the machine is powered on. The boot loader’s job is to load the kernel and pass any special parameters along to the kernel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*buyEtbuc7DPYQ_QXsje8yw.png" /></figure><p>27. Here just go with “standard”, unless you want to be brave.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ig0iCevjMzHqOEZ5weTNeQ.png" /></figure><p>28. We don’t need anything here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RX7df3ne2sjHDy5pyvnS0w.png" /></figure><p>29. Unless you are using a language other than English use “No”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qYawUWI8EZtsbbB_AAZSxQ.png" /></figure><p>30. Use “MBR” here to write to the Master Boot Record on the virtual disk. Again don’t worry this is non-destructive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDNR9ELaJP3f8_EZuG7iSA.png" /></figure><p>31. Again go with the default here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bGQPkEAHhv0s7hLKlUfXjQ.png" /></figure><p>32. Use “No” here. This might help if you are using an actual dedicated machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OAsJYoU8vCc4TALTd0u6Xg.png" /></figure><p>33. “Yes” here so we can have a network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x72D_8ZClZQpN8lK_a0L6A.png" /></figure><p>34. Enter whatever you want here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yfVnj0Gc-qd-rPqzRSvNog.png" /></figure><p>35. Enter whatever you like here. It doesn’t have to be a real domain, I’d just put “test” or “home”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sq3wGPLNwdOtQ9zz15uexQ.png" /></figure><p>36. Unless you know what you are doing use “DHCP” here. If you want the DHCP to get an address from your local network makes sure to change the virtual machine’s network settings to use “Bridged” mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XBOXUrsQOEewLpCWbjydDA.png" /></figure><p>37. It’s safe to just hit enter here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VuAMcZAPuRys4mI4jJM0bg.png" /></figure><p>38. Here’s our final network settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EiZkFBAVfkf0pkkc1P5uwg.png" /></figure><p>39. These are the startup services that we can run by default. We can always start these later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nxzO0FRYmKvoiMrC3kT47Q.png" /></figure><p>40. Unless you want some strange fonts by default just say “No” here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPqIE3ZKZnqMisyp9nPUOw.png" /></figure><p>41. Set this to your liking. If you were dual-booting with a Windows machine you’d want to select “NO”. Since this is a VM there’s no issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7qrcYExHqrk-w6TVKw3oxw.png" /></figure><p>42. Here you can set your local timezone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Q-F0DGAFAGaT9LaG016vw.png" /></figure><p>43. If you want a window manager select one of these. KDE has the most features and also consumes the most resources. The other’s in the list are pretty bare-bones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xltrF-DOZQpyvfuXryQO4A.png" /></figure><p>44. Set your root password here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hWT60VhW6SIC7b0VwuQ9ww.png" /></figure><p>45. Yay! we are about done! Only 45 steps so far!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aFLVtzHyY8EluQeK0o9YZA.png" /></figure><p>46. Select exit and then type “reboot” and hit enter.</p><p>47. You’ll be greeted by your boot loader, hit enter to bypass the timeout.</p><p>48. Type “root” for your “login:” and then the password you chose earlier.</p><p>49. If you want to see your window manger type “startx”</p><p>50. If you used KDE you’d see this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w07G9YAklqmt6I9MQppcnw.png" /></figure><p>Pro-tip: Hit Control-Alt-Delete to kill a unresponsive Xserver (works on most versions of Linux)</p><p>That’s it! In my next post I’ll show you how to add users and groups in a distro agnostic manner that’s applicable to any version of Linux.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ededab920eb1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/philosophie-is-thinking/adventures-in-devops-i-ededab920eb1">Adventures in DevOps I</a> was originally published in <a href="https://medium.com/philosophie-is-thinking">Philosophie is Thinking</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>