<?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 Okpallannuozo Nnaemeka A. on Medium]]></title>
        <description><![CDATA[Stories by Okpallannuozo Nnaemeka A. on Medium]]></description>
        <link>https://medium.com/@okpallannaemeka?source=rss-41a82b2b5ba4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Yy2xQuAqb-9hfFQpetabyA.jpeg</url>
            <title>Stories by Okpallannuozo Nnaemeka A. on Medium</title>
            <link>https://medium.com/@okpallannaemeka?source=rss-41a82b2b5ba4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:53:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@okpallannaemeka/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[A short guide to acing the Linux Foundation Certified System Administrator (LFCS) exam]]></title>
            <link>https://okpallannaemeka.medium.com/a-short-guide-to-acing-the-linux-foundation-certified-system-administrator-lfcs-exam-2db4518931e6?source=rss-41a82b2b5ba4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2db4518931e6</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Okpallannuozo Nnaemeka A.]]></dc:creator>
            <pubDate>Thu, 31 Dec 2020 18:49:03 GMT</pubDate>
            <atom:updated>2020-12-31T18:49:03.156Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A Linux Foundation Certified System Administrator (LFCS) certificate" src="https://cdn-images-1.medium.com/max/1024/1*SPUwWbqKJ7jhuG29RxAnFA.png" /><figcaption>Linux Foundation Certified System Administrator (LFCS)</figcaption></figure><p>I’ve longed to share an experience on my recent success in the LFCS exam; however, the time hasn’t really been on my side. Luckily for me, I’ve been able to squeeze this one in.</p><p>The <a href="https://training.linuxfoundation.org/certification/linux-foundation-certified-sysadmin-lfcs/">Linux Foundation Certified System Administrator (LFCS)</a> exam is one which seeks to validate a candidates ability to demonstrate hands-on expertise in administering Linux systems. It centres on curated domains, such as ;</p><ul><li>essential commands</li><li>operation of running systems</li><li>user and group management</li><li>networking, service configuration</li><li>storage management.</li></ul><h3><strong>The Journey</strong></h3><p>Somewhere in the month of April, I applied for the scholarship and got selected in the cloud captains category. My prior aim was to pursue the <a href="https://www.cncf.io/certification/cka/">Certified Kubernetes Administrator</a> exam but on reaching out to some seniors in the tech space, I was advised to go for the Linux Certification instead as it would help provide me with a solid understanding of computer architecture and operating systems in general so I ditched plan A to follow plan B.</p><p>My initial preparation was based on the <a href="https://training.linuxfoundation.org/training/essentials-of-linux-system-administration/">Essentials of Linux System Administration (LFS201</a>) course. I found the contents quite bulky and highly descriptive; however, I knew I was not fully covered with it, so I researched and was able to find the materials listed below quite useful;</p><ul><li><a href="https://www.amazon.com/UNIX-Linux-System-Administration-Handbook/dp/0134277554/ref=pd_sbs_14_1/141-4395215-2463019?_encoding=UTF8&amp;pd_rd_i=0134277554&amp;pd_rd_r=7ad1df6d-b67a-4d7e-b0d8-61a3a2d1c390&amp;pd_rd_w=iqk5b&amp;pd_rd_wg=TnAhR&amp;pf_rd_p=ed1e2146-ecfe-435e-b3b5-d79fa072fd58&amp;pf_rd_r=H98036B8MZ1KCMNGPJEZ&amp;psc=1&amp;refRID=H98036B8MZ1KCMNGPJEZ">UNIX and Linux System Administration Handbook 5th Edition</a></li><li><a href="https://www.amazon.com/CompTIA-Linux-Study-Guide-XK0-004/dp/1119556031/ref=sr_1_1?crid=1KO8XPORBLODB&amp;dchild=1&amp;keywords=comptia+linux+study+guide&amp;qid=1609433391&amp;sprefix=comptia+linux+stu%2Cstripbooks-intl-ship%2C348&amp;sr=8-1">CompTIA Linux+ Study Guide: Exam XK0–004 4th Edition</a></li><li><a href="https://www.oreilly.com/library/view/linux-foundation-certified/9780135473382/">Linux Foundation Certified System Administrator (LFCS)</a> (a course by <strong>Sander van Vugt</strong>)</li><li><a href="https://ravikirans.com/lfcs-linux-exam-study-guide/">LFCS Exam Study Guide (Linux Foundation Certified System Administrator)</a></li></ul><p>It took me about six (6) months to prepare for the exam. I wouldn&#39;t like to describe myself as a total beginner as I already had some experience with the basic Linux commands but that was it for me.</p><figure><img alt="An excerpt from my daily jottings back then" src="https://cdn-images-1.medium.com/max/1024/1*ynbCfq7MMt3eptuTjYOg1g.jpeg" /><figcaption>An excerpt from my daily jottings back then. Please, don’t ask what eba is 😸</figcaption></figure><p>Initially, I was spending about ten (10) hours in a week studying but along the line, I started lagging behind due to some setbacks. With the help of a close learning partner and pure determination, I was able to scale through.</p><p>On completing the Linux course (in October), I scheduled my exam in November then began to work on discovered weaknesses and on topics which weren’t treated in the material. Sander’s course proved really helpful during that period.</p><h3><strong>D-day</strong></h3><p>My preparations got me ready, but one thing I knew for sure was that there was no way I would ever be 100% prepared (I don’t think anyone prepares fully for Linux!) so I sat for the exam with little alacrity.</p><p>The exam lasted two (2) hours under supervision. At the onset, I got the usual exam chills but as the questions kept coming, my confidence level grew stronger. I wasn’t able to attempt a few of the questions but in the end, I passed :)</p><p>Below are some of the challenges I faced during the exam;</p><ul><li>The terminal was quite slow (possibly due to poor network) and this had an effect on my typing speed. I tried to remain calm during these periods.</li><li>The terminal provided was small so I wasn’t able to enjoy the use of a terminal multiplexer.</li></ul><h3><strong>Suggestions</strong></h3><p>My advice to anyone with the intention of taking the exam would be to;</p><ol><li>Maintain focus and do not be discouraged. A lot of people might have tried and failed but you are not them, and even if you fail, there is always a second chance to go hard on the exam.</li><li>Follow the guidelines (both the question and proctor issued guidelines). This is very important in order to avoid answering a question in the wrong server.</li><li>Make sure to schedule a date for the exam midway in your preparation and work towards it. This will help to keep you on your toes and also prevent procrastination.</li><li>Take your labs seriously. Go the extra mile of setting up a test environment on the cloud( you can use AWS, Google Cloud, Microsoft Azure, etc.) but make sure to decommission any running service after your sessions. Billings are not a fun thing :(</li><li>Take some time to get a good understanding of the exam in general. Know what is required and what is not. I suggest engaging in the links below</li></ol><p><a href="https://training.linuxfoundation.org/resources/publications/certification-preparation-guide/">Linux Foundation Certification Prep Guide</a></p><p><a href="https://training.linuxfoundation.org/about/policies/">Linux Foundation Certification Policies &amp; Candidate Handbook</a></p><h3><strong>On a parting note</strong></h3><p>The entire process was worth it as I got to gain experience on important computer concepts such as; virtualization, containerization, memory management, I/O management, and best of all the Linux kernel.</p><p>I would also love to have a share in the <a href="https://training.linuxfoundation.org/certification/linux-foundation-certified-engineer-lfce/">Linux Foundation Certified Engineer (LFCE)</a> exam in the nearest future (I heard it’s for the big boys but who cares 😎)</p><p>See you at the top!👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2db4518931e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set up a Node.JS Application for Production Using PM2 Process Manager and Nginx as a Reverse]]></title>
            <link>https://medium.com/swlh/how-to-set-up-a-node-js-762e08c8c04a?source=rss-41a82b2b5ba4------2</link>
            <guid isPermaLink="false">https://medium.com/p/762e08c8c04a</guid>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[pm2]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Okpallannuozo Nnaemeka A.]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 18:44:51 GMT</pubDate>
            <atom:updated>2020-07-04T17:31:02.471Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Set up a Node.JS Application for Production Using PM2 Process Manager and Nginx as a Reverse Proxy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IYfqdO5XhtRWBq_McwOcog.jpeg" /></figure><h3>Introduction</h3><p>This article provides a walk-through on how to configure a server to handle your node.js application using the PM2 process manager and Nginx as a reverse proxy server.</p><p><strong>Prerequisites</strong></p><ol><li>Access to an ubuntu server (In this article, we’ll be using the <a href="http://releases.ubuntu.com/18.04.4/"><strong>Ubuntu 18.04.4 LTS (Bionic Beaver)</strong></a>).</li><li>Node.js v10.0.0 and above. The express application framework should also be ready. <a href="https://nodejs.org/en/download"><strong>https://nodejs.org/en/download/</strong></a></li><li>Nginx installed (we’ll be using the nginx/1.14.0 ubuntu release in this article).<strong> </strong><a href="https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/"><strong>https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/</strong></a></li></ol><p><strong>Building the node.js application</strong></p><p>For simplicity, a basic hello world app will be created. The app will simply return the ‘hello world’ response once a request is made to the server. To start, we create a folder in our directory with a file called ‘<strong>helloWorld.js</strong>’.</p><pre>mkdir $HOME/hello<br>cd $HOME/HELLO &amp;&amp; nano helloWorld.js</pre><p>Next, we populate the file with a simple server script</p><pre>#! /usr/bin/env nodejs</pre><pre>const http = require(&#39;http&#39;);</pre><pre>http.createServer((req, res) =&gt; {</pre><pre>res.writeHead(200, {&#39;Content-Type&#39;: &#39;text/plain&#39;});</pre><pre>res.end(&#39;Hello World!&#39;);</pre><pre>}).listen(4000, &#39;localhost&#39;);</pre><pre>console.log(&#39;Server up and running at <a href="http://localhost:4000&#39;);">http://localhost:4000&#39;);</a></pre><p>The above code simply creates a server that responds to requests with a 200 status code and content-type HTTP header. The connection ends with a ‘Hello World!’ chunk as the response. The app will listen on port 4000 using ‘localhost’ as an address. Save the file (<strong>ctrl o</strong> then <strong>enter</strong>) and exit (<strong> ctrl x</strong>).</p><p><strong>Executing the script</strong></p><p>We will now have to assign an execute permission to the file, as<br>needed</p><pre>chmod +x $HOME/hello/helloWorld.js</pre><p>To run the script, simply type the following in your terminal</p><pre>./hello/helloWorld.js</pre><p>The output should be visible on our browser using the URL <a href="http://localhost:4000/"><strong>http://localhost:4000</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*AUjydBBtmBa5Y290E-ndQA.png" /></figure><p>After verifying the response, kill the application by pressing <strong>Ctrl+C on </strong>the terminal.</p><p><strong>note:</strong></p><p>If you do not see the response on the browser, ensure that the application is running, and configured to listen on the proper port (In this case, it’s <strong>4000</strong>) and with the proper address <strong>(‘localhost’).</strong></p><p><strong>Time to install PM2</strong></p><p>PM2 is an npm package that functions as a production process manager for Node.js applications. It comes with a built-in load balancer, allowing you to keep applications alive, and to reload them without encountering a downtime.</p><p>To install pm2 globally on your machine, simply enter the following in your terminal</p><pre>sudo npm install pm2 -g</pre><p>Next, we manage the app using pm2. To run your app, we simply run the following in terminal;</p><pre>pm2 start helloWorld.js</pre><p>The above will add your app to PM2’s process list of managed apps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*zwT-hriik_QRwadcXtG1wA.png" /></figure><p>Based on the output, PM2 basically assigns a name property as well as process id to the new process. In addition, information about the process status, memory, and CPU usage are included.</p><p>In order to get more details about your running app, you may use the command below:</p><pre>pm2 show [id]</pre><p>remember to replace <strong>id</strong> with the process id (in this case, it’s <strong>0</strong>).</p><p>Should you choose to stop your running app, use the command below:</p><pre>pm2 stop [id]</pre><p>So far, we have assigned pm2 the task of maintaining our app in a running mode. How do we ensure that the app is always launched on system startup?</p><p>For this, we simply use the PM2 startup command to generate pm2’s startup script. This will be launched on system startup.</p><pre>pm2 startup systemd</pre><p>output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*baIRMH1ay0QP1UkN-Xo5uA.png" /></figure><p>Make sure to run the command provided in your terminal output. This will basically create a systemd unit for your PM2 process manager. With this, the <strong>systemd</strong> system service manager will always bring up your service. Next, we configure the Nginx web server as a reverse proxy.</p><p><strong>Nginx reverse proxy configuration</strong></p><p>In order to configure the installed Nginx server as a reverse proxy, we simply: 1. create a file in the <strong>/etc/nginx/sites-available</strong> directory</p><pre>sudo nano /etc/nginx/sites-available/server</pre><p>Input the following in the server file created:</p><pre>server {<br>        listen 80;<br>        server_name server.io;<br>        location / {</pre><pre>        #you may replace server_name value with your<br>        #server hostname<br>        # e.g server_name www.server.com;</pre><pre>                proxy_pass <a href="http://localhost/">http://localhost</a>:4000;<br>                proxy_http_version 1.1;<br>                proxy_cache_bypass $http_upgrade;<br>                proxy_set_header Connection &#39;upgrade&#39;;<br>                proxy_set_header Upgrade $http_upgrade;<br>                proxy_set_header Host $host;<br>    }<br>}</pre><p>Basically, we are setting the server in such a way that requests coming into <strong>server.io</strong> (the <strong>server_name</strong> directive value) are directed to localhost on port 4000 (where our app is listening on).</p><p>The proxy_set_header directives are mainly used to pass vital information about the request. Also, proxy_pass specifies that the request should be forwarded to the backend server (the helloWorld app).</p><p><strong>note:</strong></p><ul><li>Normally, the server_name directive value should be <strong>localhost</strong> since it’s our hosts local domain name. Should you choose to change it locally like I did, simply add an entry in your<strong> /etc/hosts</strong> file:</li></ul><pre>127.0.0.1 localhost<br>127.0.1.1 mekky-mayata<br>127.0.0.1 server.io   # replace server.io with your desired local<br>                      # domain name</pre><pre># The following lines are desirable for IPv6 capable hosts<br>::1     ip6-localhost ip6-loopback<br>fe00::0 ip6-localnet<br>ff00::0 ip6-mcastprefix<br>ff02::1 ip6-allnodes<br>ff02::2 ip6-allrouters</pre><p>Save the file and remember to change the server_name directive value to your chosen local domain name.</p><p>2. Create a symbolic link to the newly created file in the /etc/nginx/sites-enabled directory and reload the Nginx service for updates to take place.</p><pre>cd /etc/nginx/sites-enabled<br>sudo ln -s /etc/nginx/sites-available/server <br>sudo service nginx restart</pre><p>Test your setup and Voila!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*7XI9m2pireh2YwcstMVZ2g.png" /><figcaption>Final result</figcaption></figure><p><strong>review:</strong></p><ul><li>If you encounter any issues at this point, you may need to open port 4000</li></ul><p>on your host due to system firewall.</p><pre>sudo ufw allow 4000/tcp<br>sudo ufw reload</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=762e08c8c04a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/how-to-set-up-a-node-js-762e08c8c04a">How to Set up a Node.JS Application for Production Using PM2 Process Manager and Nginx as a Reverse</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>