<?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 Mohammed Aminu on Medium]]></title>
        <description><![CDATA[Stories by Mohammed Aminu on Medium]]></description>
        <link>https://medium.com/@aminuolawale?source=rss-24790d6222d4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*x_pAezT_Grgj9q6y1RQarQ.jpeg</url>
            <title>Stories by Mohammed Aminu on Medium</title>
            <link>https://medium.com/@aminuolawale?source=rss-24790d6222d4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 07:43:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aminuolawale/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[My favorite books of 2024]]></title>
            <link>https://aminuolawale.medium.com/my-favorite-books-of-2024-859aa9eb7f8c?source=rss-24790d6222d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/859aa9eb7f8c</guid>
            <category><![CDATA[book-recommendations]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[2024]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[fiction]]></category>
            <dc:creator><![CDATA[Mohammed Aminu]]></dc:creator>
            <pubDate>Sun, 29 Dec 2024 23:27:18 GMT</pubDate>
            <atom:updated>2025-09-13T11:05:05.993Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Best Reads of 2024</h3><p>Let&#39;s dive in straight away!</p><ol><li>Six plays - <em>Wole Soyinka</em></li><li>Brave new world — <em>Aldous Huxley</em></li><li>Zero to One — <em>Peter Thiel</em></li><li>The Dispossessed — <em>Ursula Le Guin</em></li><li>Memory&#39;s Legion — <em>James S.A. Corey</em></li><li>Lagoon — <em>Nnedi Okorafor</em></li><li>Blackholes and Time Warps: Einstein&#39;s Outrageous Legacy — <em>Kip Thorne</em></li><li>LiftOff — <em>Eric Berger</em></li><li>Steve Jobs — <em>Walter Isaacson</em></li><li>The Laws of Human Nature — <em>Robert Greene</em></li><li>The Space Economy — <em>Chad Anderson</em></li><li>Mandela: An illustrated autobiography — <em>Nelson Mandela</em></li></ol><p>Now let&#39;s take a closer look at these books; why I chose to read them and the impression they left on me.</p><h3>Soyinka: Six Plays</h3><p><em>Wole Soyinka. Play, Tragicomedy.</em></p><h4>Why this book?</h4><p>I had always wanted to read a Soyinka play but I never really got around to it. Plays and Dramas are not my favorite genre and I know his writing style — from reviews — don&#39;t make for a relaxed, liesurely read. Eventually, I found some time and picked <em>Six Plays</em> off a bookshelf.</p><h4>What stuck?</h4><p>The book contains six plays:<em> The trials of Brother Jero</em>, <em>Jero&#39;s Metamorphosis</em>, <em>Camwood On The Leaves</em>, <em>Death And The King&#39;s Horseman</em>, <em>Madmen And Specialists</em>, <em>Opera Wonyosi</em>. My favorite was <em>Death and the King&#39;s Horseman </em>set in colonial Nigeria and tells the story of a clash of British and Nigerian traditions, featuring rich characters, brilliant prose and good humour. Soyinka&#39;s predilection for haughty long-winding prose was pretty tamed in this play so it made for a pretty easy read.<em> Camwood on The Leaves </em>was also pretty good. It tells the story of Isola, the most cursed, insolent and obnoxious boy you would ever meet. His continuous clashes with his parents and his community pretty much drives the story keeping you glued to the pages. <em>Madmen and Specialist </em>is probably the weirdest, dreamiest play I have ever read. I found it pretty hard to follow (who or what is &quot;As&quot;?) and the unrelenting puns do not help.</p><h4>Conclusion</h4><p>Soyinka&#39;s Six plays is overall a good read. Soyinka is a talented writer with a striking writing style.</p><h3>Brave New World</h3><p><em>Aldous Huxley. Science fiction.</em></p><h4>Why this book?</h4><p>This is listed as one of the greatest scifi books ever written so I had to pick it up. It&#39;s also pretty old, first published in 1932.</p><h4>What stuck?</h4><p>While the premise of the book was pretty interesting, most striking was the occassional, brisk, almost action-movie-esque scene cuts the author uses to convey simultaneity.</p><h4>Conclusion</h4><p>I found this a good read although much of the novelty in it is taken away by the abundance of similar material in its wake. I would not rever it as much as is done in the media but it still makes for a good read.</p><h3>Zero To One</h3><p><em>Peter Thiel. Non-fiction.</em></p><h4>Why this book?</h4><p>Peter Theil is considered a great investor being the first outside investor in The Facebook.</p><h4>What stuck?</h4><p>Better to go from zero to one (create something entirely new) than from one to one million (iterating on established ideas). Monopolies are good and you shoud strive to be one. To become a monopoly, your product should be considerably (or orders of magnitude) better than the competition.</p><h4>Conclusion</h4><p>It&#39;s a pretty short fastpaced book and straight to the point with examples. It&#39;s a worthy read.</p><h3>The Dispossessed</h3><p><em>Ursula Le Guin. Science fiction.</em></p><h4>Why this book?</h4><p>Ursula Leguin is listed as one of the greatest science fiction writers ever. The yellow paper back of this book was beaming at me off a bookshelf in the bookstore and I just had to pick it up.</p><h4>What stuck?</h4><p>This book was more of a political satire compairing socialism and capitalism. It was also told in split timelines alternating between chapters. We would follow the main character Shevek on his trip to the Capitalist planet Urras in this chapter and in the next, follow his younger self through his stoic Socialist homeplanet of Anarres.</p><h4>Conclusion</h4><p>It is not your usual science fiction book as it is only scifi as a consequence of its setting. Very few, if any, science fiction elements drive the plot. It is a worthy read if you like political science fiction.</p><h3>Memory&#39;s Legion</h3><p><em>James S.A. Corey. Science Fiction.</em></p><h4>Why this book?</h4><p>The Expanse series is one of my favorite science fiction book and tv series. Besides the 9 books in the series, there are 8 other short stories that get featured in the adapted tv series. I had to read them to be up to date with all Expanse material.</p><h4>What stuck?</h4><p>The first short story &quot;Drive&quot; was my favorite. It tells the story of how humanity&#39;s expansion to the outer planets began in the Expanse universe. Solomon Epstein, a smart Martian engineer, invents a new type of rocket with incredible power and efficiency that limits travel to Jupiter and beyond to days instead of years. Unluckily for him, while testing the engine in space, he accidentally accelerates himself into the void of space being crushed to death under the tremendous thrust generated by his engine. It was crazy to me that beyond a certain magnitude of acceleration, the human body becomes too heavy to move. Solomon&#39;s hands became too heavy to even move to shut off the engine, sealing his eternal Magellanic fate.</p><h4>Conclusion</h4><p>It makes sense to read this book only if you have read The Expanse books or watched the TV series. Much of the content is based on characters and events already developed in the main series. However, together with the main Expanse content, it makes for a delighting read.</p><h3>Lagoon</h3><p><em>Nnedi Okorafor. Science Fiction.</em></p><h4>Why this book?</h4><p>Nnendi Okarafor is a good science fiction writer. I had read her &quot;Children Of Blood and Bone&quot; set in (a historically and geographically fictionized) Nigeria and wanted to try some of her other books. I chose this one because the story involved aliens invading Lagos which I thought was a very potent premise.</p><h4>What stuck?</h4><p>I found the idea of aliens crawling out of bar beach and invading Lagos pretty interesting although the story keeps it contained within the circle of our main characters and some figures from the military.</p><h4>Conclusion</h4><p>There are not many books featuring alien invasion of an African city. Lagoon takes this premise on and delivers a hilarious and intriguing story. Although I can&#39;t let slide the pretty inconsistent use of pidgin English.</p><h3>Black Holes And Time Warps</h3><p><em>Kip Thorne. Non-fiction.</em></p><h4>Why this book?</h4><p>Kip Thorne is a scientist I have followed ever since I saw <em>Interstellar</em> and learnt that he worked on the script. I have read his book <em>The Science of Interstellar</em> that describes much of the science featured in the movie and more; and wanted to explore more of his work. This was the other prominent science-popularizer book written by him.</p><h4>What Stuck?</h4><p>I was pleasantly surprised to learn that the fictional story featured in the Prologue of the book was the similar to the travails of the <em>Endurance</em> crew within the <em>Gargantua</em> system in 2nd act of <em>Interstellar</em>. After some digging, I learnt that <a href="https://en.wikipedia.org/wiki/Interstellar_(film)#Development_and_financing">the movie was conceived by Kip Thorne</a> himself! Something else that stuck was the description of how the universe would appear to you when you hovered at a short distance above a blackhole. Due to the blackhole&#39;s warpage of spacetime and the accretion of all nearby photons, around you, you would not see the expanse of stars and galaxies but an enveloping blackness only punctuated by a disc above you into which the whole universe is shrunk. In essense, it would appear as if you were already in the blackhole with only a tiny hole above you to escape. This description is similar to the aberration of light experienced when we travel close to the speed of light as described in this <a href="https://www.youtube.com/watch?v=vFNgd3pitAI">video</a>. It&#39;s always amazing to tie these things together!</p><p>It was also interesting to learn how long it took Blackholes to become a real thing even in the world of Theoretical Physics. Einstein, as well as many other physicists did not (want to?) believe blackholes could exist and believed some nuclear force would prevent objects from collapsing into one. A memorable character in the book was the physicist Subrahmanyan Chandrasekhar whose work on White Dwarf and Neutron stars paved the way for blackholes to become accepted as real in the world of Theoretical physics.</p><h4>Conclusion</h4><p>Great book if you want a detailed no-holds-barred dive into blackholes.</p><h3>Liftoff</h3><p><em>Eric Berger. Non-fiction.</em></p><h4>Why this book?</h4><p>I got more interested in SpaceX after their<a href="https://www.youtube.com/watch?v=hI9HQfCAw64"> chopstick landing of the Starship</a> and ordered this book which chronicles the early days of SpaceX.</p><h4>What stuck?</h4><p>The story of how Elon Musk founded SpaceX. The man had had much smaller goals back then. Fresh off his lucrative Paypal-X exit, Musk had browsed the NASA website and had been disappointed after finding no real plans to send humans to Mars. He decided he would launch a rocket carrying a plant growing in earth-soil to Mars where a camera would record it growing in realtime. This — he hoped — would inspire a real manned mission to Mars. He approached the Russians to help him build a rocket, who turned him away with their hefty prices. He then decided, after reading a few books on aeronautics, that he would build the rockets himself, enlisting as many aerospace professionals as he could — and so spaceX was founded. The early days at SpaceX were incredibly hard. Engineers had to give up their lives and travel to remote islands like the Kwajalein Atoll to work, isolated from friends, family and basically everyone. Many of the feats achieved by SpaceX were due to Engineers whose names get drowned out in the Elon Musk media persona.</p><h4>Conclusion</h4><p>This is pretty detailed book about the struggles at SpaceX in the early days. I definitely recommend it.</p><h3>Steve Jobs</h3><p><em>Walter Isaacson. Non-fiction.</em></p><h4>Why this book?</h4><p>I had watched the two movies made about Steve Jobs but I felt they did not really scratch the surface about his character. The reviews seemed to say the same. I decided I would read the most highly rated biography of him.</p><h4>What Stuck?</h4><p>Steve Job&#39;s personality and strong views were what made the company what it is today. He was tough and harsh on people and had an almost binary view of the world. A prototype design by an engineer was either revolutionary or complete piece of sh*t. This was also how he dealt with people. While many had a lot of unpleasant things to say about him, they all agreed that he drove them to achieve things they didn&#39;t believe they could. He was so effective at doing this that his employees coined a term &quot;Reality Distortion Field&quot; which was the effect that in his presence, things you would normally consider impossible suddenly became possible. His enthusiasm was infective and drove people to build amazing things.</p><h4>Conclusion</h4><p>Great book if you want a full biography of Steve Jobs. I did not know he was of Syrian descent.</p><h3>The Laws of Human Nature</h3><p><em>Robert Greene. Non-fiction.</em></p><h4>Why this book?</h4><p>I like Robert Greene&#39;s writing style and I still reread <em>Mastery</em> every now and then. <em>The Laws of Human Nature</em> seemed to be a tome bound to be filled with even more knowledge, I added it to my reading list.</p><h4>What Stuck?</h4><p>We are all narcissists. For real.</p><h4>Conclusion</h4><p>This is a much longer read than Mastery or The 48 Laws of Power but it is still worth reading. Much of the knowledge in this book is already in the previous books but it adds more lessons and more depth to much known wisdom.</p><h3>The Space Economy</h3><p><em>Chad Anderson. Non-fiction.</em></p><h4>Why this book?</h4><p>There&#39;s the prevailing notion that Space is the frontier of revolution for this century as Industry was for the last. I wanted a book that gave a broad overview of the sector in its current state and its potential for growth; and was not a fanciful view of the future. A practical assessment constrained by economics.</p><h4>What stuck?</h4><p>Google launched the Lunar X Prize, a competition among privately funded teams to launch and land a rover on the moon. The program ran from 2007 to 2018 with a cash money of $30 million up for grabs. The deadline for a successful launch had been set to 2012 but as no team was nearing completion, it was extended to 2018. Still, no team was able to successfully land a rover so the prize money went unclaimed. Also notable were the names of lesser known companies operating in the space sector (Space capital, Planet labs, Astrobotic, Universal spaceline…)</p><h4>Conclusion</h4><p>Great book if you&#39;re interested in the economics of Space.</p><h3>Mandela: An Illustrated Autobiography</h3><p><em>Nelson Mandela. Non-fiction.</em></p><h4>Why this book?</h4><p>I picked this up by chance in a book store in Lagos and was delighted it was embellished with pictures from South Africa.</p><h4>What Stuck?</h4><p>How horribly dehumanizing the Apartheid system in South Africa had been. Native South Africans had their homes demolished and were routed to the outskirts of the city to make space for more settler settlements.</p><p>While Mandela suffered greatly for his movement, his second wife (of 3), Winnie, was imprisoned severally because of her visits to him and her own nationalist activism.</p><h4>Conclusion</h4><p>It was great reading a first-hand account of the collapse of the Apartheid system from Nelson Mandela himself, detailing it from his childhood up until his proud walk to freedom. I recommend this book.</p><p>And that&#39;s it! The most notable books I read in 2024. I hope to read (and remember) even more in 2025! Feel free to comment your book recommendations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=859aa9eb7f8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Geo-Martian Fiscal Rendezvous]]></title>
            <link>https://medium.com/hercules-corona/the-geo-martian-fiscal-rendezvous-ded0d18152da?source=rss-24790d6222d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ded0d18152da</guid>
            <dc:creator><![CDATA[Mohammed Aminu]]></dc:creator>
            <pubDate>Tue, 28 Sep 2021 15:35:50 GMT</pubDate>
            <atom:updated>2021-09-28T18:08:58.539Z</atom:updated>
            <content:encoded><![CDATA[<p>The director of the NCSE (the National Committee on Space Efforts) rose to the podium, accompanied by resounding applause so relentless and unending that he had to motion for the audience to stop. He grinned, tapped the mic to test the sound, and cleared his throat to speak. He exuded confidence and great pride.</p><p>“Good day Ladies and Gentlemen,” he said. “I will go straight to the point and not bore you with unnecessary introductions and prologues. As we all know, today makes it the 8th day since an unknown civilization landed on Mars and started building structures only God can understand. The world is terrified. News media all over the world are all reporting this event and nothing else. Even here in our country, no media outlet saw it fit to report the street light projects we just inaugurated in some states. But while other countries are busy trying to safely establish communication with these alien visitors, we have swung into action to use the situation to our advantage before anyone beats us to it. I don’t think I need to restate the obvious but we are in a serious financial crisis. We don’t have enough money to fund the upcoming budget and it is common knowledge that we have obtained a loan from nearly every country in the world. Except for Gogoria of course, with which we have cut our diplomatic ties in the aftermath of their barbaric actions. Nothing can justify launching a missile at an entourage simply because they came to ask for a loan. It is clear that we are not welcome anywhere on this earth, not even in our own country. So we at the NCSE, as we are a foremost Space Agency, have decided to look beyond the planet for revenue.</p><p>The arrival of this civilization is timely and one can’t help but deem it divine intervention. They came just at the right time. And I think it is a reasonable assumption that for a civilization to travel from the furthest depths of space all the way here and begin to build structures immediately, they must be really buoyant. So putting all this together, we at the NCSE have decided to put together a manned mission to obtain a loan from this civilization. We call this the Geo-Martian Fiscal Rendezvous. The mission is the first of its kind. No other nation in the history of mankind has ever conceived much less attempted to secure a loan from an extraterrestrial civilization. We will be making history”.</p><p>The director motioned to a curtain behind him and it was pulled back to reveal the image of a spacecraft on a large screen.</p><p>“This is the NULAM. The National Ultramodern Loan Acquisition Module. The first-ever spacecraft in the history of humanity to be designed for the sole purpose of acquiring a loan. We have identified the location of what we think is the leader of the aliens on Mars through our powerful and ultramodern telescopes and we will be launching the spacecraft directly at this location. This mission if successful will put an end to inflation, insecurity, banditry, climate change, gender-based violence, and all the other problems plaguing this great country. ”</p><p>He paused and looked around.</p><p>“I will now take your questions,” he said and a lot of hands flew in the air. “Please be brief and concise, and remember…”</p><p>“Do not be a mouthpiece of the opposition” the entire audience said in unison and the NCSE director nodded in satisfaction.</p><p>A female journalist was allowed to speak. As she stood up her body language implied a little nervousness.</p><p>“Sir, of all the… basically innumerable issues that have been raised on the topic of this … ambitious mission, the most interesting thing is the decision on the part of the NCSE to install the flag of the ruling party on the space probe. People would like to know why this decision was made.”</p><p>The director of the NCSE scoffed as if he had just heard the silliest thing in the world.</p><p>“How would the aliens know which party sent the probe?”</p><p>The journalist looked stunned.</p><p>“With all due respect sir.. those aliens might not even have the concept of politics much less our kind of politics that has parties and emblems. From the images we’ve seen so far, they’re not even anthropomorphic. Their societal structure might be much different from ours”</p><p>The director of the NCSE stared at her for a while before breaking into a chuckle.</p><p>“I see that right there on the spot you have transformed from a journalist to an expert on aliens. I mean, if you have your CV with you right now, you can just submit it and we’ll see who we can sack at the NCSE to make space for you; since you know so much about aliens. We could use your help and all your grammar.”</p><p>The journalist stood there just taken aback by the comment.</p><p>“If you are done with being a mouthpiece of the opposition, you can sit down and allow us to attend to the next question.”</p><p>The journalist shook her head in disbelief and sat down.</p><p>Another journalist was allowed to speak.</p><p>“Sir members of the National Council of Aerospace Engineers have derided the mission design. They have nicknamed the final stage, where the NULAM lands on Mars, the Inshallah Phase because they believe the spacecraft barely has the capacity to enter Mars’s atmosphere. What do you say to this?”</p><p>“Well, I hope the federal government speedily implements the Criticism Regulation Bill so that these people can deliver their messages through prison guards. They call themselves aerospace engineers. What have they done? What have they achieved?”</p><p>“Sir they actually helped build the cheapest solar plane till date that was just recently bought by the - ”</p><p>“And so? And so? If they know so much why are they not assisting the government in solving our current financial crisis? They’d rather criticize and frustrate the government’s efforts than support it. Is that what they stand for?”</p><p>“ Sir, they’ve donated millions to numerous ventures across the country. They’re well-known for-”</p><p>“Mr man. If you are here on behalf of the opposition, we won’t let you distract us from the matter at hand. I have answered your question. Please sit down and let us attend to more questions. We don’t have the whole day here.”</p><p>The journalist hung his shoulders and sat down flustered. A question was asked by another journalist.</p><p>“Sir, what are the measures that have been put in place to prevent the loan from being hijacked by other space-faring countries on its way back to earth?”</p><p>“Hmm. Good question. While we have a lot of measures put in place to deal with this scenario, I mean, it’s an ultramodern spacecraft we’re talking about, I highly doubt that this scenario will ever arise- “</p><p>“But sir. It’s alien materials and resources, I think every country will want to lay their hands on it.”</p><p>“Listen to me, young man. Every country on earth knows our situation. It will be wicked and inconsiderate of them to attempt to hijack our loan. Well, that’s unless you are aware of such a plan. Are you?”</p><p>“No sir.” the journalist reflexively retorted.</p><p>“Then stop wishing ill on the mission.” the director clapped his hands and glanced around. “Alright, I think I have attended to enough questions. The NCSE will release a detailed mission plan later today to quiet the naysayers. Thank you, God bless you all, and have a great day.”</p><p>With this, the NCSE director got off the stage and was escorted out of the hall by heavily armed policemen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0BQcD0vuA8DtlVDs2xj9WA.png" /><figcaption>Artist Impression: The NULAM (National Ultramodern Loan Acquisition Module) en route to mars.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ded0d18152da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hercules-corona/the-geo-martian-fiscal-rendezvous-ded0d18152da">The Geo-Martian Fiscal Rendezvous</a> was originally published in <a href="https://medium.com/hercules-corona">Satires</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Metabase on Amazon Lightsail]]></title>
            <link>https://aminuolawale.medium.com/deploying-metabase-on-amazon-lightsail-e875f0d69f46?source=rss-24790d6222d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e875f0d69f46</guid>
            <category><![CDATA[metabase]]></category>
            <category><![CDATA[lightsail]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[bigquery]]></category>
            <dc:creator><![CDATA[Mohammed Aminu]]></dc:creator>
            <pubDate>Mon, 17 May 2021 08:20:38 GMT</pubDate>
            <atom:updated>2021-07-25T13:48:11.401Z</atom:updated>
            <content:encoded><![CDATA[<p>Metabase is an easy, open-source tool for querying and visualizing data. In this article, we will walk through deploying Metabase on an Amazon Lightsail instance with docker and securing our server with an SSL Certificate.</p><h3><strong>Setting up Amazon Lightsail</strong></h3><ol><li>Access the Lightsail service on your AWS Console and create an OS Only instance running Ubuntu 20.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*3iayWmlCOcG_a7em7Xhg4g.png" /><figcaption>Choose availability region</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*F-1MvfYnilmnZmLe_bG5iA.png" /><figcaption>Choose instance OS and image</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*42Cn7lTuL2pgHjBXuqKDmQ.png" /><figcaption>Choose instance plan</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*p8eY3yVr1zhctEhss8Ys9Q.png" /><figcaption>Choose a name for your instance and click `Create instance`</figcaption></figure><p>You will be redirected to the Lightsail dashboard where you will find your new instance being provisioned. After a few seconds, the provisioning should be complete and the status should change from ‘pending’ to ‘running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*5LsVuhduf3VtGJTZwgzhFQ.png" /><figcaption>Our instance is now up and running.</figcaption></figure><p>2. The next thing we want to do is to connect to our instance via SSH and start installing the tools we need to get Metabase running but first, we will need to create a static IP address and attach it to our instance. Go to the networking tab on your Lightsail dashboard and click ‘create static IP’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*JD8IlXp5gto9i1Bwemt8Gg.png" /><figcaption>You will be redirected to this page where you will choose the instance to which to attach the static IP address (‘metabase-demo’ in our case) and also a name for the static IP address (‘metabase-demo-ip’)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*S-n8ifwuO7zrJEIYjHeqig.png" /><figcaption>Static IP address is now created and attached to our metabase-demo instance.</figcaption></figure><p>3. Now that we have a static IP attached to our instance we will proceed to connect using a terminal via SSH protocol. Go to the accounts page via the Account menu on the navbar and click the SSH keys tab to download your SSH key. You must download the key associated with the availability zone of your instance which in our case is Frankfurt (eu-central-1). ( You can verify this on your Lightsail dashboard at the bottom right corner of your instance’s display card).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*RnXRd6p5-4Y-3ENDDMvyVA.png" /></figure><p>4. Time to connect to our Lightsail instance. Open a terminal on your machine and run the following command.</p><pre>$ sudo chmod 600 /path/to/ssh-key<br>$ ssh -i /path/to/ssh-key ubuntu@&lt;static-IP&gt;</pre><p>Answer ‘yes’ to the prompt and you should now be logged in to your Lightsail instance.</p><p>5. We will be running Metabase and Postgres in docker containers so we would need to install docker and docker-compose. Run the following commands to install docker and docker-compose</p><p>Docker</p><pre>$ sudo apt update &amp;&amp; sudo apt install apt-transport-https ca-certificates curl software-properties-common &amp;&amp; curl -fsSL <a href="https://download.docker.com/linux/ubuntu/gpg">https://download.docker.com/linux/ubuntu/gpg</a> | sudo apt-key add - &amp;&amp; sudo add-apt-repository &quot;deb [arch=amd64] <a href="https://download.docker.com/linux/ubuntu">https://download.docker.com/linux/ubuntu</a> focal stable&quot; &amp;&amp; sudo apt update &amp;&amp; apt-cache policy docker-ce &amp;&amp; sudo apt install docker-ce &amp;&amp; sudo systemctl status docker</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iz5-bFRHtMnb5C24GB4tMQ.png" /></figure><p>Once you get the printout above, the installation is successful. Hit ‘q’ on your keyboard and proceed to install docker-compose.</p><p>Docker-Compose</p><pre>$ sudo curl -L &quot;<a href="https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname">https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname</a> -s)-$(uname -m)&quot; -o /usr/local/bin/docker-compose &amp;&amp; sudo chmod +x /usr/local/bin/docker-compose &amp;&amp; docker-compose --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*TRxMPTL0Cxfl8w3EdtyHzw.png" /></figure><p>6. We are almost done with the configuration. The last configuration we will be doing is as a result of our RAM size. Our instance is running on 512MB RAM and Metabase needs a little more room to run efficiently. If you had created your instance with 1GB ram and above then you can skip this step. But for mere mortals like us on a budget, we will need to create a ‘swap space’. This is just a region on the SSD allocated to be used as extra RAM once the RAM is full. This is a pretty straightforward process. We will use the following command to create 2GB of swap space from our storage.</p><pre>$ sudo fallocate -l 2G /swapfile &amp;&amp; sudo dd if=/dev/zero of=/swapfile bs=1024 count=2097152 &amp;&amp; sudo chmod 600 /swapfile &amp;&amp; sudo mkswap /swapfile &amp;&amp; sudo swapon /swapfile &amp;&amp; sudo nano /etc/fstab</pre><p>Once nano pops up, move the cursor to the next line and paste in the following.</p><pre>/swapfile swap swap defaults 0 0</pre><p>Then Ctrl X, Y, Enter to save and you’re out of nano and good to go.</p><h3>Running our Metabase and Postgres Containers</h3><p>1. So far, we haven’t done anything related to Metabase. But fortunately, we are out of the primary configuration phase and can now proceed to build and run a Metabase container. Create a folder called Metabase, cd into this folder, and create a docker-compose.yml file.</p><pre>$ mkdir Metabase &amp;&amp; cd Metabase/ &amp;&amp; nano docker-compose.yml</pre><p>When the nano interface pops up, paste in the following.</p><pre>version: &quot;3&quot;<br>services:</pre><pre>postgres-db:<br>    image: postgres<br>    restart: always<br>    ports:<br>      - 5432:5432<br>    environment:<br>      POSTGRES_USER: postgres<br>      POSTGRES_PASSWORD: postgres<br>      POSTGRES_DB: metabase<br>      PGDATA: /var/lib/postgresql/data<br>    volumes:<br>      - /home/ubuntu/pgdata:/var/lib/postgresql/data</pre><pre>metabase-app:<br>    image: metabase/metabase<br>    restart: always<br>    ports:<br>      - 3000:3000<br>    volumes:<br>      - /home/ubuntu/metabase-data:/metabase-data<br>    environment:<br>      MB_DB_TYPE: postgres<br>      MB_DB_DBNAME: metabase<br>      MB_DB_PORT: 5432<br>      MB_DB_USER: postgres<br>      MB_DB_PASS: postgres<br>      MB_DB_HOST: postgres-db<br>    depends_on:<br>      - postgres-db<br>    links:<br>      - postgres-db</pre><p>Save and close the file, then spin up the containers with the following command.</p><pre>$ sudo docker-compose up</pre><p>You should run it without the ‘detached’ flag so you can see the logs of both containers, especially if you’re deploying Metabase for the first time. You should also wait till the last log from the ‘metabase-app’ container is Metabase initialization COMPLETE . To test that everything is working fine, go to the ‘Networking’ tab of your Metabase instance on your Lightsail dashboard and add a ‘Custom’ Ipv4 Firewall Rule with TCP protocol on port 3000. Then paste the following in a fresh browser tab.</p><pre>&lt;static-IP&gt;:3000</pre><p>… where &lt;static-IP&gt; is the static IP address of your instance. It will load for a while and then the following should show up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t5Ug9NCWde_6T6imZVhCRQ.png" /></figure><p>2. We have come a great way. You can click the `Let’s get started` button and go through Metabase’s straightforward setup process. At this stage, you probably want to kill the containers and restart them in detached mode.</p><pre>$ sudo docker-compose up -d</pre><h3><strong>Configuring a reverse-proxy server and setting up a Subdomain</strong></h3><p>For performance, security and reliability, we want to use a much more robust web server than our Metabase container’s web server. More specifically, we want to put a much more reliable server between the internet and our Metabase container. We will use <a href="https://www.nginx.com/">nginx</a>.</p><ol><li>Run the following command to install and enable nginx.</li></ol><pre>$ sudo apt-get update &amp;&amp; sudo apt-get install nginx &amp;&amp; sudo systemctl start nginx &amp;&amp; sudo systemctl enable nginx &amp;&amp; sudo systemctl status nginx</pre><p>Respond in the affirmative to any prompts. The installation should end with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*eF56GOAs_8TULCGLRQ_dyQ.png" /></figure><p>If you paste your instance’s static IP address in the browser, you should get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vbkI1z0LBYQudYZaIN138A.png" /></figure><p>2. Remove this default landing page by removing the symbolic link to the default configuration file.</p><pre>$ sudo unlink /etc/nginx/sites-enabled/default</pre><p>3. Now we will create a new configuration file for our Metabase server.</p><pre>$ sudo nano /etc/nginx/sites-available/metabase.conf</pre><p>This brings up a nano interface into which you should paste the following.</p><pre>server {</pre><pre>listen 80;<br> location / {</pre><pre>           proxy_pass <a href="http://localhost:3000/">http://localhost:3000/</a>;</pre><pre>      }</pre><pre>}</pre><p>Then save and close the file.</p><p>4. Create a symbolic link for this new configuration file.</p><pre>$ sudo ln -s /etc/nginx/sites-available/metabase.conf /etc/nginx/sites-enabled/metabase.conf</pre><p>Then test the new configuration with the following commands.</p><pre>$ sudo service nginx configtest &amp;&amp; sudo service nginx restart</pre><p>If you reload the browser tab into which you pasted your static IP, the Nginx landing page should now be replaced with the Metabase landing page.</p><p>If you mess anything up, for example, a typo in your `metabase.conf` file (which happened to me a lot), you should:</p><p>Check the Nginx logs for the exact error with</p><pre>$ cat /var/log/nginx/error.log</pre><p>For example, if I had initially missed the ‘/’ on line 3 in my metabase.conf file like so:</p><pre>server {<br>listen 80; <br> location {<br>           proxy_pass <a href="http://localhost:3000/">http://localhost:3000/</a>;<br>      }<br>}</pre><p>… and gone ahead to enable the config and restart Nginx, I would get an error page when I load the IP in the browser.</p><p>Checking the Nginx error log would reveal the following message.</p><pre>$ cat /var/log/nginx/error.log <br>    10  2021/05/18 14:42:46 [emerg] 64343#64343: <strong>invalid number of arguments in &quot;location&quot; directive in /etc/nginx/sites-enabled/metabase.conf:3</strong></pre><p>Just correct the `metabase.conf` file as necessary and run the following commands.</p><pre>$ sudo rm /etc/nginx/sites-enabled/metabase.conf<br>$ sudo ln -s /etc/nginx/sites-available/metabase.conf /etc/nginx/sites-enabled/metabase.conf<br>$ sudo service nginx configtest &amp;&amp; sudo service nginx restart</pre><p>Given that there are no more errors in the conf file, the site should be back up and running.</p><p>5. If you have a domain/hosted zone, you can simply create an A record to point to the IP of your Metabase instance on whatever DNS Registrar you are using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tjnwz8-v4LUfpK_B8_F0SA.png" /></figure><p>Once the subdomain is set up, you can now access Metabase via <a href="http://metabase.aminuolawale.com/">URL</a></p><h3>Securing Metabase with an SSL Certificate</h3><ol><li>Run the following command to install Cerbot.</li></ol><pre>$ sudo apt update &amp;&amp; sudo apt install certbot python3-certbot-nginx</pre><p>2. Open the `metabase.conf` file and add the following just before the location directive</p><pre>server_name &lt;metabase-domain&gt;;</pre><p>where &lt;metabase-domain&gt; is the name of the record you created with your hosting provider. (`metabase.aminuolawale.com` in my case).</p><p>3. Update the enabled sites like so</p><pre>$ sudo rm /etc/nginx/sites-enabled/metabase.conf<br>$ sudo ln -s /etc/nginx/sites-available/metabase.conf /etc/nginx/sites-enabled/metabase.conf</pre><p>4. Install the certificate with the following command.</p><pre>$ sudo certbot --nginx -d &lt;metabase-domain&gt;</pre><p>Fill in the info requested correctly and answer in the affirmative to the prompts. Alas, you should get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*PTr1f2kzLA8kbwBjdlzHuQ.png" /></figure><p>5. Configure your firewall to allow only HTTPS:</p><pre>$ sudo ufw allow &#39;Nginx HTTPS&#39; &amp;&amp; sudo ufw deny &#39;Nginx HTTP&#39; &amp;&amp; sudo ufw allow &#39;Nginx Full&#39; &amp;&amp; sudo ufw enable &amp;&amp; sudo ufw status</pre><p>You should get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*_ZvGjyclSwaOi0oerV6hWQ.png" /></figure><p>6. Now on your Lightsail dashboard, visit your instance’s Networking tab and add an HTTPS Rule. You should also delete the custom rule we had created on port 3000. Your networking tab should look like this at the end:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*YeFJdeTpn8shaQJZvkPEEg.png" /></figure><p>Now type your Metabase URL in the browser and it should load with HTTPS!</p><p>7. Now that we have concluded the deployment and configuration phase, we can now connect Metabase to our data warehouse and start viewing tables and creating charts!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*xWcAuhWVoo7x5o8PLXGJew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*ufg-iL9K1ARYK7t5gDDFTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*_a4v4820ua8CTo_lGiJlpw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*E80HLKNw-IzgXvVJ8mIJQQ.png" /></figure><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e875f0d69f46" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>