<?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 Victoria Aoka on Medium]]></title>
        <description><![CDATA[Stories by Victoria Aoka on Medium]]></description>
        <link>https://medium.com/@victoriaaoka?source=rss-9c5e13a51e70------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*1V3B9eqlD4Ky05nJyJ5b4A.png</url>
            <title>Stories by Victoria Aoka on Medium</title>
            <link>https://medium.com/@victoriaaoka?source=rss-9c5e13a51e70------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:56:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@victoriaaoka/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[How to Deploy an Angular 9 App to Github Pages]]></title>
            <link>https://medium.com/@victoriaaoka/how-to-deploy-an-angular-9-app-to-github-pages-284d2ac68fd7?source=rss-9c5e13a51e70------2</link>
            <guid isPermaLink="false">https://medium.com/p/284d2ac68fd7</guid>
            <category><![CDATA[github-pages-for-angular]]></category>
            <category><![CDATA[angular-9]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[deploy-angular-app]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Victoria Aoka]]></dc:creator>
            <pubDate>Sat, 04 Apr 2020 02:45:28 GMT</pubDate>
            <atom:updated>2020-04-04T02:46:36.542Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WRRN-m5hEsYW1tXT2l6rTQ.jpeg" /></figure><p>Here are the steps you need to follow to deploy your Angular 9 app to Github Pages.</p><p>I am assuming you have already created the app and pushed it to Github.</p><h4>Step 1: Edit your angular.json file</h4><p>In your angular.json file, change the <strong>“outputpath”</strong> value to <strong>“docs/”</strong></p><p>Replace <strong><em>“outputPath”: “dist/example”</em></strong> with <strong><em>“outputPath”: “docs/”</em></strong></p><figure><img alt="“outputPath”: “docs/”" src="https://cdn-images-1.medium.com/max/440/1*JtKnIKIXTtP4wVDQIfPbBA.png" /></figure><h4>Step 2: Build the app</h4><p>In your CLI, cd to the project folder and run the command:</p><pre>$ ng build --prod --base-href <a href="#">https://username.github.io/repo-name/</a></pre><blockquote>NB:</blockquote><blockquote>Edit the command and add your Github username and the Github repository name</blockquote><blockquote>It is github.io and not github.com</blockquote><p>The build command will generate the <strong><em>docs</em></strong> directory in the project folder. The docs directory will contain all the files needed to run the app on Github Pages.</p><h4>Step 3: Push the docs Directory to Github</h4><p>Ensure you push the docs folder to Github. You can run the following commands to commit and push the changes.</p><p>$ git add .<br>$ git commit -m &quot;generate deployables&quot;<br>$ git push -u origin branchName</p><h4>step 4: Configure your Github Repo to publish to Github Pages</h4><p>Go to your Github repository &gt;&gt; Navigate to the <strong><em>settings</em></strong> tab</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lhr7Slk3h7T3EKQVhTXIXA.png" /></figure><p>Scroll to the bottom, where we have <strong><em>GitHub Pages </em></strong>&gt;&gt; Change<strong><em> </em></strong>the Source by clicking on the drop-down as shown below. Ensure you change the source to <strong><em>the-branch/docs folder</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3YXR4ZvwLN65CrQPoUUrWA.png" /></figure><p>This will enable the repository to publish the app on Github Pages.</p><h4>Step5: Access the app!</h4><p>Finally, you can view the deployed app on Github Pages by clicking on the link in the Github Pages section as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OEZnsRGrfDt4WuJZ52cKAw.png" /></figure><p>You can view the app at <a href="#">https://github-username.github.io/github-repo-name/</a></p><p>Congratulations! You have successfully deployed your app to Github Pages! 🎉</p><p>In conclusion, it is normal for the app to take a few minutes before it is available on the GitHub Pages URL. It can take up to 5 minutes, keep refreshing :) It is also important to note that for every change you make to the app, you need to run the build command again and push the changes to Github for the changes to be made to the deployed app. Do not hesitate to ask any questions in the comment section below.</p><p>I wish you all the best in your development journey! Remember it is a marathon and not a sprint! Keep being AWESOME 😊😊😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=284d2ac68fd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Tripwire for Intrusion Detection on an Ubuntu Server]]></title>
            <link>https://medium.com/@victoriaaoka/using-tripwire-for-intrusion-detection-on-an-ubuntu-server-239a8a980693?source=rss-9c5e13a51e70------2</link>
            <guid isPermaLink="false">https://medium.com/p/239a8a980693</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[configuration-management]]></category>
            <category><![CDATA[intrusion-detection]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Victoria Aoka]]></dc:creator>
            <pubDate>Tue, 28 Nov 2017 15:06:56 GMT</pubDate>
            <atom:updated>2018-01-19T12:14:38.156Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*yppdHiOEIMr8Q4GnDxrehA.png" /></figure><h3><strong>Introduction</strong></h3><p>Security is very crucial in any system. Servers need to be monitored and any intrusion detection dealt with accordingly. Any configuration changes to the servers also need to be monitored to ensure that only authorized changes are implemented on the servers.</p><p>Tripwire is a host-based intrusion detection system. It collects information about the server’s filesystem and configuration. This information is then stored to reference and validate the current state of the server/system. If changes are found between the preceding state and the current state, and you are not aware of the changes, it could imply that security has been compromised. However, if you made the changes, then you can approve them.</p><h3>1. Installation</h3><p>Tripwire can be installed using ubuntu’s package manager apt-get.</p><pre>sudo apt-get update<br>sudo apt-get install tripwire</pre><p>During the installation, you will be prompted to enter a site-key and local-key passphrase.</p><p>First, it will configure the mail application that is being pulled in as a dependency. If you want to configure email notifications, select “internet site”.</p><p>Next, it will ask you if you want to select passphrases during installation. Select “yes” for all the prompts.</p><p>Next, it will ask if it can rebuild the configuration file. Select “yes”. It will then ask a similar question about the policy file. Again, answer “yes”.</p><p>Finaly, It will prompt you to enter the site-key and local-key passphrases.</p><p>Tripwire uses these two keys to secure its configuration files. The site-key is used to secure the configuration files while the local-key is used on each machine to run the binaries.</p><h3><strong>2. Database Initialization</strong></h3><p>After installation, the database must be configured and initialized. This can be done by running the command:</p><pre>sudo tripwire --init</pre><p>This will create our database file.</p><p>However, it will complain about the things that we must adjust in the configuration.</p><p>Because we want to save the results to inform our configuration decisions, we can take any instance where it mentions a “Filename”, and put it in a file called test_file:</p><pre>sudo tripwire --check | grep Filename &gt; test_file</pre><p>If we view this file, we should see entries that look like this:</p><pre>less test_file</pre><pre>Filename: /etc/rc.boot     <br>Filename: /root/mail     <br>Filename: /root/Mail     <br>Filename: /root/.xsession-errors     <br>Filename: /root/.xauth     <br>Filename: /root/.tcshrc     <br>Filename: /root/.sawfish<br>. . .</pre><h3>3. Policy File Configuration</h3><p>Now that we have a list of files that are setting off tripwire, we can go through our policy file and edit it to match our system.</p><p>Open the plain text policy in your favorite editor with root privileges:</p><pre>sudo vim /etc/tripwire/twpol.txt</pre><p>Do a search for each of the files that were returned in the test_file file. Comment out all of the lines that you find that match.</p><p>In the “Boot Scripts” section, you should comment out the /etc/rc.boot line, since this isn&#39;t present in an Ubuntu system:</p><pre>(<br>  rulename = &quot;Boot Scripts&quot;,<br>  severity = $(SIG_HI)<br>)<br>{<br>        /etc/init.d             -&gt; $(SEC_BIN) ;<br>        #/etc/rc.boot            -&gt; $(SEC_BIN) ;<br>        /etc/rcS.d              -&gt; $(SEC_BIN) ;<br>        /etc/rcS.d              -&gt; $(SEC_BIN) ;        <br>        /etc/rc0.d              -&gt; $(SEC_BIN) ;        <br>        /etc/rc1.d              -&gt; $(SEC_BIN) ;        <br>        ...<br>}</pre><p>There were a lot of files in the /root home directory that need to be commented out. Anything that is not present on your system should be commented out. In the “Root config files” section, comment out all the files except:</p><p>/root</p><p>/root.bashrc</p><p>/root.bash_history</p><p>After commenting out the files. the :Root config files section should look like this:</p><pre>(<br>  rulename = &quot;Root config files&quot;,<br>  severity = 100<br>)<br>{<br>        /root                           -&gt; $(SEC_CRIT) ; # Catch all additions to /root<br>        #/root/mail                     -&gt; $(SEC_CONFIG) ;<br>        #/root/Mail                     -&gt; $(SEC_CONFIG) ;<br>        #/root/.xsession-errors         -&gt; $(SEC_CONFIG) ;<br>        #/root/.xauth                   -&gt; $(SEC_CONFIG) ;<br>        #/root/.tcshrc                  -&gt; $(SEC_CONFIG) ;<br>        #/root/.sawfish                 -&gt; $(SEC_CONFIG) ;<br>        #/root/.pinerc                  -&gt; $(SEC_CONFIG) ;<br>        #/root/.mc                      -&gt; $(SEC_CONFIG) ;<br>        #/root/.gnome_private           -&gt; $(SEC_CONFIG) ;<br>        #/root/.gnome-desktop           -&gt; $(SEC_CONFIG) ;<br>        #/root/.gnome                   -&gt; $(SEC_CONFIG) ;<br>        #/root/.esd_auth                        -&gt; $(SEC_CONFIG) ;<br>        #/root/.elm                     -&gt; $(SEC_CONFIG) ;<br>        #/root/.cshrc                   -&gt; $(SEC_CONFIG) ;<br>        /root/.bashrc                   -&gt; $(SEC_CONFIG) ;<br>        #/root/.bash_profile            -&gt; $(SEC_CONFIG) ;<br>        #/root/.bash_logout             -&gt; $(SEC_CONFIG) ;<br>        /root/.bash_history             -&gt; $(SEC_CONFIG) ;<br>        #/root/.amandahosts             -&gt; $(SEC_CONFIG) ;<br>        #/root/.addressbook.lu          -&gt; $(SEC_CONFIG) ;<br>        #/root/.addressbook             -&gt; $(SEC_CONFIG) ;<br>        #/root/.Xresources              -&gt; $(SEC_CONFIG) ;<br>        #/root/.Xauthority              -&gt; $(SEC_CONFIG) -i ; # Changes Inode number on login<br>        #/root/.ICEauthority                -&gt; $(SEC_CONFIG) ;<br>}</pre><p>The check was also complaining about file descriptors in the /proc filesystem. These files change frequently, hence they’ll trigger false positives regularly if we leave the configuration as it is. Therefore, in the “Devices &amp; Kernel information” section, you can see that the /proc filesystem is listed to be checked.</p><pre>(<br>  rulename = &quot;Devices &amp; Kernel information&quot;,<br>  severity = $(SIG_HI),<br>)<br>{<br>        /dev            -&gt; $(Device) ;<br>        /proc           -&gt; $(Device) ;<br>}</pre><p>However, this will check every file under it. We don’t particularly want that. Instead, we will remove this specification, and add configuration options for all of the directories under /proc that we want to check:</p><pre>{<br>        /dev                    -&gt; $(Device) ;<br>        #/proc                  -&gt; $(Device) ;<br>        /proc/devices           -&gt; $(Device) ;<br>        /proc/net               -&gt; $(Device) ;<br>        /proc/tty               -&gt; $(Device) ;<br>        /proc/sys               -&gt; $(Device) ;<br>        /proc/cpuinfo           -&gt; $(Device) ;<br>        /proc/modules           -&gt; $(Device) ;<br>        /proc/mounts            -&gt; $(Device) ;<br>        /proc/filesystems       -&gt; $(Device) ;<br><br>}</pre><p>The last thing we will comment out are the /var/run and /var/lock in the “system boot changes section”. This will ensure that our system does not flag normal filesystem changes by services:</p><pre>(<br>  rulename = &quot;System boot changes&quot;,<br>  severity = $(SIG_HI)<br>)<br>{<br>        #/var/lock              -&gt; $(SEC_CONFIG) ;<br>        #/var/run               -&gt; $(SEC_CONFIG) ; # daemon PIDs<br>        /var/log                -&gt; $(SEC_CONFIG) ;<br>}</pre><p>Save and close the file when you are done editing.</p><p>Now that our file is configured, we need to implement it by recreating the encrypted policy file that tripwire actually reads:</p><pre>sudo twadmin -m P /etc/tripwire/twpol.txt</pre><p>After this is created, we must reinitialize the database to implement our policy:</p><pre>sudo tripwire --init</pre><p>Now, you should be able to see an output similar to this:</p><pre>Please enter your local passphrase:<br>Parsing policy file: /etc/tripwire/tw.pol<br>Generating the database...<br>*** Processing Unix File System ***<br>Wrote database file: /var/lib/tripwire/tripit.twd<br>The database was successfully generated.</pre><p>If there are still warnings, you should continue editing your /etc/tripwire/twpol.txt file until they clear.</p><p>We can now delete the test_file file that we created:</p><pre>sudo rm test_file</pre><h3>4. Configuration verification</h3><p>Configuration can be verified by running a check:</p><pre>sudo tripwire --check</pre><p>You should see a report output to your screen specifying that there are no errors or changes found on your system. It should be similar to :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xc6Ign3Jg-_Y1bRcX5XMBg.png" /></figure><p>We can now remove the plain text configuration files. We can do this safely because they can be generated whenever needed from the encrypted files with our password.</p><p>All we have to do to regenerate the plain text file is pass the encripted file to twadmin, the same way we generated the encrypted version. We just pipe it into a plain text file again:</p><pre>sudo sh -c &#39;twadmin --print-polfile &gt; /etc/tripwire/twpol.txt&#39;</pre><p>This can be tested by moving the text version to a backup location and then recreating it:</p><pre>sudo mv /etc/tripwire/twpol.txt /etc/tripwire/twpol.txt.bak<br>sudo sh -c &#39;twadmin --print-polfile &gt; /etc/tripwire/twpol.txt&#39;</pre><p>If it worked correctly, the plain text files can be removed now:</p><pre>sudo rm /etc/tripwire/twpol.txt<br>sudo rm /etc/tripwire/twpol.txt.bak</pre><h3>5. Configuring Email Notifications</h3><p>We will use the mail command to send email notifications to our email address. We need to install mailutils to be able to use the mail functionality.</p><p>This gives us an opportunity to see how tripwire reacts to changes in the system.</p><p>Install mailutils:</p><pre>sudo apt-get install mailutils</pre><p>Now that we have mailutils installed, let’s do a test of our system’s ability to mail out a tripwire report. This report will have warnings and changes too, since we just installed new software without telling tripwire:</p><pre>sudo tripwire --check | mail -s &quot;Tripwire report for `uname -n`&quot; your_email@domain.com</pre><p>You should receive a report shortly in your email with details about the new mail software you just installed to send the message! This implies that tripwire is picking up changes in the filesystem and that our mail software is working as well.</p><h3>6. Handling changes</h3><p>From the report, we can see the changes made by installing mailutils. We should now approve the software changes we made by doing an interactive check to update the database by running the command:</p><pre>sudo tripwire --check --interactive</pre><p>This will run the same tests as normal, but at the end, instead of outputting the report to the screen, it is copied into a text file and opened with the default editor.</p><p>The check boxes indicate that you want to update the database to allow these changes. You should search for every box that has an “x” in it and verify that those are changes that you made or are okay with.</p><p>If you are not okay with a change, you can remove the “x” from the box and that file will not be updated in the database. This will cause this file to still flag tripwire on the next run.</p><p>After you have decided on which file changes are okay, you can save and close the file.</p><p>At this point, it will ask for your local passphrase so that tripwire can update its database files.</p><h3>7. Automating Tripwire with Cron</h3><p>Now that we have verified that all of this functionality works as expected, we can set up a cron job to execute a tripwire check every morning at 0900hrs.</p><p>We will be using root’s crontab, because edits to the system cronjob can get wiped out with system updates.</p><p>Check to see if root already has a crontab by running this command:</p><pre>sudo crontab -l</pre><p>If a crontab is present, you should pipe it into a file to back it up:</p><pre>sudo sh -c &#39;crontab -l &gt; crontab.bad&#39;</pre><p>Afterwards, we can edit the crontab by typing:</p><pre>sudo crontab -e</pre><p>If this is your first time running crontab, it will ask you which editor you wish to use. Just select your favorite editor then you will be taken to a file where we can automate tripwire.</p><p>The format we need to use is min hour * * * command. The command that we want to use is the same one we used to mail our report before. We don&#39;t need to use sudo since this is going to be run as root.</p><p>To have tripwire run at 0900hrs every day, we add the line below into our file:</p><pre>0 9 * * * /usr/sbin/tripwire --check | mail -s &quot;Tripwire report for `uname -n`&quot; your_email@domain.com</pre><p>You can adjust this to your preference. Checkout more information on crontabs <a href="http://www.adminschoice.com/crontab-quick-reference">here</a>.</p><h3>Conclusion</h3><p>Tripwire is a very important configuration management tool. It can help one track any configuration changes in a system as well as detect any intrusions. I hope you enjoyed this tutorial and tripwire is set on your ubuntu server! :) Please feel free to leave any feedback/comments below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=239a8a980693" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is DevOps?]]></title>
            <link>https://medium.com/@victoriaaoka/what-is-devops-23fb60a0283a?source=rss-9c5e13a51e70------2</link>
            <guid isPermaLink="false">https://medium.com/p/23fb60a0283a</guid>
            <category><![CDATA[andela]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Victoria Aoka]]></dc:creator>
            <pubDate>Mon, 02 Oct 2017 13:03:27 GMT</pubDate>
            <atom:updated>2017-10-23T14:25:50.308Z</atom:updated>
            <content:encoded><![CDATA[<p>“What is DevOps” is exactly what I typed in Google search as I prepared to apply for apprenticeship. The search results made me more curious and that explains why I am in the DevOps apprenticeship team in Andela Kenya.</p><p>Back to our question “What is DevOps?”. As the name suggests, it is a combination of development and operations. DevOps is a synergetic approach to releasing software. It bridges the gap between ongoing software development and operations. It brings together developers who write the software with operation managers who are responsible for deploying the software. Software developers concentrate on delivering changes as soon as possible while Operations focus on reliability and stability in the software. DevOps combines the best of all the teams (development, Quality Assurance and Operations) to deliver top-notch software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZ6-pp7SP-InC5xPZKffVg.png" /><figcaption>DevOps</figcaption></figure><p><strong>Do we really need DevOps?</strong></p><p>Absolutely!</p><p>Here are some of the <strong><em>benefits</em></strong> that come with DevOps.</p><ul><li>DevOps cuts the cost and time taken to deliver software by performing deployments more often and faster.</li><li>DevOps increases the quality of software through automated testing.</li><li>DevOps reduces defect cycle time by increasing the ability to reproduce and fix bugs.</li><li>DevOps maximizes the use of virtual environments by using a number of virtualization tools.</li><li>DevOps generally minimizes deployment related downtime.</li></ul><p><strong>DevOps and Automation</strong></p><p>Automation is at the heart of DevOps. DevOps Engineers seek to automate the following:</p><ul><li>Change and configuration management</li><li>Infrastructure Provisioning</li><li>Software Orchestration</li><li>Testing</li><li>Deployments</li><li>Build Management</li><li>Monitoring</li><li>Performance Metrics</li></ul><p>To achieve automation, DevOps Engineers use various tools. Just like any toolbox, the DevOps’ toolbox contains several tools used for specific tasks. For instance; <a href="https://jenkins.io/">Jenkins</a>, <a href="https://travis-ci.org/">Travis CI </a>and <a href="https://circleci.com/">CircleCI </a>can be used for Continuous Integration while <a href="https://www.ansible.com/">Ansible</a> can be used for configuration management.</p><p>This is just a tip of the DevOps iceberg. I hope you’ve gained some insight into what DevOps entails and you’d like to learn more:)… Please feel free to checkout more on DevOps <a href="http://www.happiestminds.com/whitepapers/devops.pdf">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23fb60a0283a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>