<?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 Abdullah Abid on Medium]]></title>
        <description><![CDATA[Stories by Abdullah Abid on Medium]]></description>
        <link>https://medium.com/@mabdullahabid?source=rss-7bfa51efa43e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*3ifc3BheVJk61FfOWce6Gw.jpeg</url>
            <title>Stories by Abdullah Abid on Medium</title>
            <link>https://medium.com/@mabdullahabid?source=rss-7bfa51efa43e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:08:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mabdullahabid/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[Linux Hacks]]></title>
            <link>https://mabdullahabid.medium.com/linux-hacks-c2961a8474fe?source=rss-7bfa51efa43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2961a8474fe</guid>
            <dc:creator><![CDATA[Abdullah Abid]]></dc:creator>
            <pubDate>Thu, 17 Dec 2020 01:50:02 GMT</pubDate>
            <atom:updated>2020-12-17T01:50:02.321Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Add public ssh key to remote server in a single command</li></ol><pre>cat ~/.ssh/id_rsa.pub | ssh user@hostname ‘cat &gt;&gt; .ssh/authorized_keys’</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2961a8474fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install CodeDeploy Agent for Ubuntu Server]]></title>
            <link>https://mabdullahabid.medium.com/install-codedeploy-agent-for-ubuntu-server-6e87db526dba?source=rss-7bfa51efa43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e87db526dba</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[codepipeline]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[codedeploy]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <dc:creator><![CDATA[Abdullah Abid]]></dc:creator>
            <pubDate>Thu, 09 Jul 2020 03:58:31 GMT</pubDate>
            <atom:updated>2020-07-09T03:58:31.462Z</atom:updated>
            <content:encoded><![CDATA[<h3>Launch script</h3><pre>#!/bin/bash<br>sudo apt-get update<br>sudo apt-get install ruby<br>sudo apt-get install wget<br>cd /home/ubuntu<br>wget <a href="https://bucket-name.s3.region-identifier.amazonaws.com/latest/install">https://</a><strong><em>aws-codedeploy-ca-central-1</em></strong><a href="https://bucket-name.s3.region-identifier.amazonaws.com/latest/install">.s3.</a><strong><em>ca-central-1</em></strong><a href="https://bucket-name.s3.region-identifier.amazonaws.com/latest/install">.amazonaws.com/latest/install</a><br>chmod +x ./install<br>sudo ./install auto</pre><h3>Check status</h3><pre>sudo service codedeploy-agent status</pre><h3>Start service</h3><pre>sudo service codedeploy-agent start</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e87db526dba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker: Convenience Script]]></title>
            <link>https://mabdullahabid.medium.com/docker-convenience-script-135146277323?source=rss-7bfa51efa43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/135146277323</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[convenience]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[efficiency]]></category>
            <dc:creator><![CDATA[Abdullah Abid]]></dc:creator>
            <pubDate>Sat, 06 Jun 2020 06:23:33 GMT</pubDate>
            <atom:updated>2021-07-27T08:29:29.178Z</atom:updated>
            <content:encoded><![CDATA[<h3>The fastest way to install Docker on Linux</h3><p>This is a pretty simple guide to getting Docker and Docker-Compose setup on your server. Most of the information here is taken directly from Docker’s documentation and if you’ve played around with Docker then you’ll probably find this pretty beginner-level.</p><p>However, I found myself having to install docker and docker-compose quite so often on many of the fresh installs of servers that I did. Of course, you can find a pre-built AMI that already includes all this but I prefer having to do it myself, just so I know there is no extra bloatware on the server. I’m installing this on an <strong>Ubuntu Server 20.04 LTS</strong>.</p><p>So here goes…</p><h3>Step 1</h3><p>Download the convenience script for the latest release of Docker CE on Linux from <a href="http://get.docker.com/">get.docker.com</a></p><pre>curl -fsSL &lt;https://get.docker.com&gt; -o get-docker.sh</pre><p>This will download the <a href="http://get-docker.sh/">get-docker.sh</a> script which installs docker and configures everything for you.</p><pre>sudo sh get-docker.sh</pre><p>After this script finishes running, I always run a test docker command just to see if it’s working or not.</p><pre>docker --version</pre><p>By default, your current user does not always get access to run the Docker commands. If you want to use Docker as a non-root user, then you need to add your user to the Docker group.</p><pre>sudo usermod -aG docker $USER</pre><p>After running this, don’t forget to log out of the server and log back in for this to take effect.</p><h3>Step 2</h3><p>The next step is to configure Docker to start on boot. Most Docker deployments, whether they are used in staging or production, require that all the microservices are automatically run on server boot. We need to have Docker running as a daemon for that to happen.</p><pre>sudo systemctl enable docker</pre><h3>Step 3</h3><p>Now we need to download and make use of Docker Compose.</p><pre>sudo curl -L &quot;&lt;https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$&gt;(uname -s)-$(uname -m)&quot; -o /usr/local/bin/docker-compose</pre><p>This is pretty straightforward as it does not require installing or running any additional commands except giving the docker-compose appropriate permissions. At the time of writing this article, the version was <strong>1.29.1</strong>, please confirm that you are downloading the latest version.</p><p>We also want to give docker-compose permissions to be an executable binary</p><pre>sudo chmod +x /usr/local/bin/docker-compose</pre><p>The last and final step is to test that docker-compose has been successfully downloaded and it works.</p><pre>docker-compose --version</pre><p>This should show you the version of your docker-compose binary.</p><p>That’s it! This is a pretty straightforward process, and if you’re familiar with docker then you know this too well but I just thought that I’ll share my workflow with others so they can save some time.</p><h3>Launch Script</h3><p>Another way to do this would be to add the code to a launch script which is run at the time of instance initialization. Something like:</p><pre>#!/bin/bash<br>curl -fsSL &lt;https://get.docker.com&gt; -o get-docker.sh<br>sudo sh get-docker.sh<br>sudo usermod -aG docker ubuntu<br>sudo systemctl enable docker<br>sudo curl -L &quot;&lt;https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$&gt;(uname -s)-$(uname -m)&quot; -o /usr/local/bin/docker-compose<br>sudo chmod +x /usr/local/bin/docker-compose</pre><h3>Posted on</h3><p>Personal Blog: <a href="https://mabdullahabid.com/The-fastest-way-to-install-Docker-on-Linux-5fedb1c9035a4700b6eff8becdb53072">https://mabdullahabid.com/The-fastest-way-to-install-Docker-on-Linux-5fedb1c9035a4700b6eff8becdb53072</a></p><p>Medium: <a href="https://mabdullahabid.medium.com/docker-convenience-script-135146277323">https://mabdullahabid.medium.com/docker-convenience-script-135146277323</a></p><h3>Updates</h3><p>2021–07–27</p><ul><li>Changed docker-compose version to 1.29.2</li></ul><p>2021–04–26</p><ul><li>Changed docker-compose version to 1.29.1</li></ul><p>2021–02–28</p><ul><li>Changed docker-compose version to 1.28.4</li></ul><p>2021–02–18</p><ul><li>Changed docker-compose version to 1.28.3</li><li>Changed docker-compose version to 1.28.3</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=135146277323" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS: Resizing an EBS Volume]]></title>
            <link>https://mabdullahabid.medium.com/aws-resizing-an-ebs-volume-4a9721060f7f?source=rss-7bfa51efa43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a9721060f7f</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ebs-volume]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Abdullah Abid]]></dc:creator>
            <pubDate>Fri, 28 Feb 2020 19:02:13 GMT</pubDate>
            <atom:updated>2020-02-28T19:02:13.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oOjXnPvI6r0agF0IfzQH-g.png" /><figcaption>Output of df -h command on an Amazon EC2 instance running Ubuntu 18.04 LTS</figcaption></figure><p><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html</a></p><ol><li>Resize EBS volume from AWS Console &gt; EC2 &gt; Volumes</li><li>Identify the file system</li><li>Extend partition</li><li>Extend file system</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a9721060f7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use BitBucket Pipelines for Continuous Deployment to Amazon S3?]]></title>
            <link>https://mabdullahabid.medium.com/how-to-use-bitbucket-pipelines-for-continuous-deployment-to-amazon-s3-aeb4b3e1f282?source=rss-7bfa51efa43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/aeb4b3e1f282</guid>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[amazon-s3]]></category>
            <category><![CDATA[static-websites]]></category>
            <category><![CDATA[deployment-pipelines]]></category>
            <category><![CDATA[bitbucket]]></category>
            <dc:creator><![CDATA[Abdullah Abid]]></dc:creator>
            <pubDate>Wed, 18 Oct 2017 21:34:19 GMT</pubDate>
            <atom:updated>2017-10-18T21:34:19.867Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*Gz4P-zPhaxNIWL71iswU6w.png" /></figure><p>Are you tired of manually logging into AWS and updating your S3 Bucket every time you make changes to your git repository?</p><p>This article will provide a simple step-by-step guide to set up continuous deployment to <strong>Amazon S3 </strong>bucket using <strong>BitBucket Pipelines</strong>. This is super useful when you have multiple static websites hosted on Amazon S3.</p><h4>Steps</h4><ol><li>Create an Amazon S3 Bucket</li><li>Create and IAM User Group &amp; Add a User</li><li>Generate Access Keys</li><li>Enable BitBucket Pipelines</li><li>Add Environment Variables</li><li>Configure bitbucket-pipelines.yml</li><li>Run your pipeline</li></ol><p><em>For AWS-related steps, you must be signed in to the </em><strong><em>AWS Management Console</em></strong></p><p><em>For BitBucket-related steps, you must have already set up a </em><strong><em>BitBucket</em></strong><em> repository</em></p><h4><strong>Create an Amazon S3 Bucket</strong></h4><p>First thing that we need to do is create an S3 bucket to store</p><p>Navigate to <a href="https://console.aws.amazon.com/s3/"><strong>Services &gt; S3</strong></a></p><ul><li>Click <strong>Create Bucket</strong></li><li>Enter a <strong>Bucket name</strong></li><li>Select a <strong>Region</strong></li><li>Click <strong>Create</strong></li></ul><p><a href="https://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html">Creating a bucket</a></p><h4><strong>Create an IAM User Group &amp; Add a User</strong></h4><p>Navigate to <a href="https://console.aws.amazon.com/iam/"><strong>Services &gt; IAM</strong></a></p><p>Under <strong>Groups</strong></p><ul><li>Click <strong>Create New Group</strong></li><li>Enter <strong>Group Name</strong> and click <strong>Next Step</strong></li><li>Attach <em>AmazonS3FullAccess</em> as <strong>Policy</strong> and click <strong>Next Step</strong></li><li>Review information and click <strong>Create Group</strong></li></ul><p><a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups_create.html">Creating IAM Groups - AWS Identity and Access Management</a></p><p>Under <strong>Users</strong></p><ul><li>Click <strong>Add user</strong></li><li>Enter <strong>User name, </strong>select <strong>Access type*</strong> as <strong>Programmatic access </strong>and click <strong>Next: Permissions</strong></li><li>On the <strong>Set Permissions </strong>page, select <strong>Add user to group </strong>and select the <strong>IAM Group</strong> we created earlier and click <strong>Next: Review</strong></li><li>Click <strong>Create user</strong></li></ul><p><a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html">Creating an IAM User in Your AWS Account - AWS Identity and Access Management</a></p><h4>Generate Access Keys</h4><p>Under <strong>Users</strong></p><ol><li>Click on the <strong>User name</strong> you just created</li><li>Navigate to the <strong>Security credentials </strong>tab</li><li>Scroll down and click <strong>Create access key</strong></li><li>Save the <strong>Access key ID </strong>and <strong>Secret access key </strong>for later</li></ol><p><a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html#Using_CreateAccessKey">Managing Access Keys for IAM Users - AWS Identity and Access Management</a></p><p>For the most part, we’re done with <strong>AWS Management Console</strong> for now.</p><h4>Enable BitBucket Pipelines</h4><p>Open the repository you want to link with the <strong>S3 Bucket </strong>you created earlier</p><ul><li>Click <strong>Settings</strong></li><li>Go to <strong>Settings</strong> under <strong>Pipelines</strong> and <strong>Enable Pipelines</strong></li></ul><h4>Add Environment Variables</h4><ul><li>Go to <strong>Environment variables</strong> under <strong>Pipelines </strong>and enter the <strong>Access Keys </strong>you saved earlier</li></ul><pre><strong>Type variable 1 = </strong>AWS_SECRET_ACCESS_KEY</pre><pre><strong>Type value 1 = </strong>Your<strong> </strong>Secret access key</pre><pre><strong>Type variable 2 = </strong>AWS_ACCESS_KEY_ID</pre><pre><strong>Type value 2 = </strong>Your Access key ID</pre><h4>Configure bitbucket-pipelines.yml</h4><ul><li>Go back to <strong>Settings</strong> under <strong>Pipelines</strong> and click <strong>Configure bitbucket-pipelines.yml</strong></li><li>Scroll down and select <strong>Docker</strong></li><li>Paste the following code and add region and bucket name</li></ul><pre>image: abesiyo/s3</pre><pre>pipelines:<br>  branches:<br>    master:<br>      - step:<br>          script:<br>            - s3 --region &quot;&lt;region&gt;&quot; rm s3://&lt;bucket-name&gt;<br>            - s3 --region &quot;&lt;region&gt;&quot; sync . s3://&lt;bucket-name&gt;</pre><p>Use the link below to find AWS Regions and Endpoints</p><p><a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">AWS Regions and Endpoints - Amazon Web Services</a></p><h4>Run your pipeline</h4><ul><li>Click <strong>Commit file </strong>and watch your pipeline build!</li></ul><blockquote>You’ve successfully built a fully functional continuous deployment pipeline!</blockquote><p>Now every time you push your changes to your repository, BitBucket Pipelines will automatically build, test and deploy your code to your Amazon S3 bucket.</p><p>Keep in mind: there are a limited number of free build minutes per month depending on the type of account you have.</p><p>To check your remaining build minutes</p><ul><li>Go to <strong>Bitbucket settings</strong></li><li>Select <strong>Plan details</strong> under <strong>PLANS AND BILLING</strong></li></ul><p>I hope you found this tutorial simple and easy to follow. If you have any questions, please let me know!</p><p><strong><em>Abdullah is the Co-Founder of </em></strong><a href="https://autonomoustech.ca/"><strong><em>Autonomous Technologies</em></strong></a><strong><em>, a full-service design, marketing, and technology services agency in Vancouver, BC.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aeb4b3e1f282" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>