<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Scott Knight's Blog</title>
    <link>https://sknight.xyz/tags/homelab/</link>
    <description>Recent content from Scott Knight</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>"en-us"</language>
    <managingEditor>Scott Knight</managingEditor>
    <webMaster>Scott Knight</webMaster>
    <copyright>Scott Knight. All rights reserved.</copyright>
    <lastBuildDate>Sat, 27 Apr 2024 09:00:28 -0500</lastBuildDate><atom:link href="https://sknight.xyz/tags/homelab/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Homelab Update</title>
      <link>https://sknight.xyz/homelab-update/</link>
      <pubDate>Sat, 27 Apr 2024 09:00:28 -0500</pubDate>
      <author>Scott Knight</author>
      <guid isPermaLink="false">http://scottk.mba/homelab-update/</guid>
      <description>&lt;p&gt;Some time last year I wrote about using a cheap &lt;a href=&#34;https://www.stacksocial.com/sales/lenovo-thinkcentre-m900-tiny-core-i5-6500t-16gb-256gb-ssd-wi-fi-windows-10-pro-refurbished&#34;&gt;Lenovo Thinkcentre&lt;/a&gt; I bought as a lab machine to run my &lt;a href=&#34;https://www.reddit.com/r/homelab/wiki/introduction/&#34;&gt;homelab&lt;/a&gt; server. Initially I used it to &lt;a href=&#34;https://sknight.xyz/linux-poll/&#34;&gt;try out a new (to me) Linux distro&lt;/a&gt;, which I installed straight onto the machine. I enjoyed test driving it, but it never replaced my primary system.&lt;/p&gt;
&lt;p&gt;So, this week I decided to repurpose the ThinkCentre as a general lab server to locally host open-source applications and dust off some of my brain&amp;rsquo;s cobwebs around server configs and networking.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://youtu.be/olUD_F37n0E?si=zmN2r9tcmL9jTKta&#34;&gt;This YouTube video from TechHut&lt;/a&gt; provides a really easy way to get set up if you&amp;rsquo;re interested in doing something similar.&lt;/p&gt;
&lt;p&gt;For now I&amp;rsquo;m running &lt;a href=&#34;https://ubuntu.com/download/server&#34;&gt;Ubuntu Server LTS&lt;/a&gt; with &lt;a href=&#34;https://www.docker.com&#34;&gt;Docker&lt;/a&gt; and &lt;a href=&#34;https://www.portainer.io/&#34;&gt;Portainer&lt;/a&gt; for container management.&lt;/p&gt;
&lt;p&gt;On top of this, I installed &lt;a href=&#34;https://cosmos-cloud.io/&#34;&gt;Cosmos&lt;/a&gt; as a dashboard which looks nice and has a really decent OOTB feature set. So far, I dig it.&lt;/p&gt;










  




&lt;figure&gt;
  &lt;a href=&#34;https://sknight.xyz/homelab-update/cosmos.png&#34;&gt;
    &lt;img src=&#34;https://sknight.xyz/homelab-update/cosmos_hu_4169aa2420986588.png&#34; width=&#34;600&#34; height=&#34;314&#34; alt=&#34;A tiny view of the Cosmos dashboard. The default color scheme reminds me of Mardi Gras.&#34;&gt;
  &lt;/a&gt;
  
    &lt;figcaption&gt;
      A tiny view of the Cosmos dashboard. The default color scheme reminds me of Mardi Gras.
    &lt;/figcaption&gt;
  
&lt;/figure&gt;
&lt;p&gt;Future plans include trying out some new apps (&lt;em&gt;this sure beats more software subscriptions&lt;/em&gt;) and adding a &lt;a href=&#34;https://www.howtogeek.com/742893/what-is-a-nas/&#34;&gt;NAS&lt;/a&gt; to the lab, so if you have any recommendations send me an email reply using the button below.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Personal Automations</title>
      <link>https://sknight.xyz/personal-automations/</link>
      <pubDate>Wed, 25 Oct 2023 07:36:43 -0500</pubDate>
      <author>Scott Knight</author>
      <guid isPermaLink="false">http://scottk.mba/personal-automations/</guid>
      <description>&lt;p&gt;Since I learned to code, I&amp;rsquo;ve always been a fan of eliminating boring and/or tedious stuff with automation. This can involve anything from custom scripting (usually with Python, in my case) to using a service like &lt;a href=&#34;https://ifttt.com/&#34;&gt;IFTTT&lt;/a&gt;, &lt;a href=&#34;https://zapier.com/&#34;&gt;Zapier&lt;/a&gt;, or &lt;a href=&#34;https://www.make.com/en/integromat-evolves-to-make/&#34;&gt;Make&lt;/a&gt; (formerly Integromat). With these tools you can connect most common services that expose an &lt;a href=&#34;https://www.ibm.com/topics/api/&#34;&gt;API&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;While automation use cases are usually born out of some personal pain point or specific challenge, I&amp;rsquo;m always interested in seeing what other people automate and how they choose do it. I&amp;rsquo;ve also taken great inspiration from pieces like Al Sweigart&amp;rsquo;s &lt;a href=&#34;https://automatetheboringstuff.com/&#34;&gt;&lt;em&gt;Automate the Boring Stuff with Python&lt;/em&gt;&lt;/a&gt; and &lt;a href=&#34;https://github.com/NARKOZ/hacker-scripts&#34;&gt;this classic Github repo&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I recently bought an IFTTT subscription and audited my personal life for a list of things that take up too much time or involve a tedious process.&lt;/p&gt;
&lt;p&gt;Here are some of my favorites:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Email/SMS to Brag File (IFTTT)&lt;/strong&gt;: Sending an email or text to IFTTT creates a new row in my career &lt;a href=&#34;https://www.thefountaininstitute.com/blog/brag-documents&#34;&gt;brag file&lt;/a&gt; with text I include. (My &amp;ldquo;brag file&amp;rdquo; is what I humbly call the personal doc where I track my professional accomplishments so I don&amp;rsquo;t forget about past wins.)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Blog RSS to Socials (IFTTT)&lt;/strong&gt;: Each time I publish a new post on this site, it gets automatically posted to my Twitter and Mastodon accounts. (Bonus&amp;mdash;&lt;a href=&#34;https://buttondown.email/&#34;&gt;Buttondown&lt;/a&gt; also sends an RSS-driven email to readers subscribed to my posts)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Instapaper to Trello (IFTTT)&lt;/strong&gt;: New articles saved to Instapaper automatically get added to a &amp;ldquo;future blog posts&amp;rdquo; list on my personal Trello board.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Trello Board Automations (Trello)&lt;/strong&gt;: Using Trello&amp;rsquo;s built-in automation capability, I&amp;rsquo;ve set up rules and buttons that keep my task board organized so I never lose track of any reminders, tasks, or projects. These are driven by due-dates, sources (cards added via email, etc.), and task age (highlighting overdue items and so on).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Smart Home/IoT Automations (IFTTT)&lt;/strong&gt;: Various applets turn on/off lights and appliances using smart plugs driven by my location, times, alarms, etc.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Custom Transaction Categorization (Python)&lt;/strong&gt;: A custom script I wrote using Python which can take a CSV export of my bank transactions and categorize them for my accounting. It can categorize a year&amp;rsquo;s worth of transactions in less than a second, which is pretty neat. It&amp;rsquo;s also more secure and private than granting access or uploading my bank info to some third-party company&amp;rsquo;s database.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Is there anything useful or cool that you&amp;rsquo;ve automated? Send me an email, I&amp;rsquo;m interested to learn more about it!&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>A Week with Linux Mint</title>
      <link>https://sknight.xyz/linux-mint-first-impressions/</link>
      <pubDate>Fri, 14 Jul 2023 15:31:48 -0500</pubDate>
      <author>Scott Knight</author>
      <guid isPermaLink="false">http://scottk.mba/linux-mint-first-impressions/</guid>
      <description>&lt;p&gt;Last week I posted here about open-sourcing my decision on which Linux distribution to use on my new lab machine. The overwhelming majority voted for Linux Mint, so that&amp;rsquo;s what I went with.&lt;/p&gt;
&lt;p&gt;Not having used Linux in many years, I couldn&amp;rsquo;t recall anything particularly good or bad about my experience with the OS. That is to say, I&amp;rsquo;m going into this with an open mind.&lt;/p&gt;
&lt;p&gt;The hardware I&amp;rsquo;m using isn&amp;rsquo;t anything special, which personally I prefer in the sense that it will allow me to additionally evaluate my chosen OS on an average system.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re interested, here are the basic specs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Model: Lenovo ThinkCentre M900 (2017, Refurbished)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Processor: Core i5-6500T&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Processor speed: 2.5GHz&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Intel HD Graphics 4000&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;RAM: 16GB&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Storage: 256GB&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;vPro&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Support for USB 3.0&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The intention here is that it will serve as part of my home lab on which I can run experiments and projects without affecting my primary machines. So, with that in mind, it should be sufficient for its purpose.&lt;/p&gt;
&lt;h2 id=&#34;installation&#34;&gt;Installation&lt;/h2&gt;
&lt;p&gt;I didn&amp;rsquo;t have any major issues installing Linux Mint on the machine. LM provides detailed &lt;a href=&#34;https://linuxmint-installation-guide.readthedocs.io/en/latest/&#34;&gt;installation docs&lt;/a&gt; that were easy to follow, and the process was a standard one: create a bootable USB, boot it up using the BIOS, then install.&lt;/p&gt;
&lt;p&gt;One thing I appreciated was that, when booting with the install media before the main installation, you&amp;rsquo;re actually loading a live boot of Linux Mint, which allows you to preview and check for compatibility issues before you fully commit.&lt;/p&gt;
&lt;p&gt;Once I ran the full installation, it probably took less than ten minutes to get fully set up. Another plus in my book.&lt;/p&gt;
&lt;p&gt;By the way, I&amp;rsquo;m running &lt;strong&gt;Linux Mint 21.1 &amp;ldquo;Vera&amp;rdquo;&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id=&#34;user-experience&#34;&gt;User Experience&lt;/h2&gt;
&lt;p&gt;The one challenge I had in getting things fully operational was setting up the wi-fi adapter drivers on the system. Unfortunately, the &lt;a href=&#34;https://www.realtek.com/en/products/communications-network-ics/item/rtl8188ftv&#34;&gt;Realtek RTL8188FTV&lt;/a&gt; that came with the ThinkCentre (the hardware does not have internal wi-fi support) was not recognized by the OS.&lt;/p&gt;
&lt;p&gt;So, after some diligent research I was able to identify a solution that got it working. For those interested, I may write up a separate post on how specifically I accomplished this, but suffice it to say that it took some advanced tinkering to get things running. This is something that could be a major turn-off to&lt;/p&gt;
&lt;p&gt;This Github repo was critical in getting the drivers installed and adding the appropriate kernel modules: &lt;a href=&#34;https://github.com/kelebek333/rtl8188fu&#34;&gt;https://github.com/kelebek333/rtl8188fu&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After that minor inconvenience, everything in general has been pretty smooth. The OS itself is snappy and efficient. The themes and color options are a nice touch for those who like customization.&lt;/p&gt;
&lt;p&gt;The overall feel is similar to Windows, so it is not alien to someone who might be wanting to migrate to Linux from that domain. Many of the folder actions, start menus, and general functionality are akin to what you&amp;rsquo;d find in Windows. I&amp;rsquo;ve heard that Linux Mint is a good starter Linux experience for those coming from a strictly Windows background, and so far I say that notion holds up.&lt;/p&gt;
&lt;p&gt;My only small gripe is that some of the software packages seem to be intentionally held back by the distro maintainers from the publisher&amp;rsquo;s latest releases. For example, I wanted to set up the new &lt;em&gt;Supernova&lt;/em&gt; release of &lt;a href=&#34;https://www.thunderbird.net/en-US/&#34;&gt;Thunderbird&lt;/a&gt;, but at this time that does not appear to be possible. However, after some research I realized that this seems to be common practice in the Linux community and should not be unexpected. Some may see this as a negative, but I realize that this may also be a mechanism to protect against zero-day vulnerabilities as well as other issues by waiting a bit before integrating brand new releases. So for now, I&amp;rsquo;m okay waiting for a bit longer.&lt;/p&gt;
&lt;p&gt;All things considered, the experience has been positive after one week. We&amp;rsquo;ll see how things progress as I continue to build out the machine.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Using Data to Choose a Linux Distro</title>
      <link>https://sknight.xyz/linux-poll/</link>
      <pubDate>Fri, 07 Jul 2023 16:51:29 -0500</pubDate>
      <author>Scott Knight</author>
      <guid isPermaLink="false">http://scottk.mba/linux-poll/</guid>
      <description>&lt;h2 id=&#34;the-problem&#34;&gt;The Problem&lt;/h2&gt;
&lt;p&gt;I recently decided that I wanted to beef up my home lab a bit by adding a small, inexpensive machine that I can use as a sandbox for server projects and testing operating systems. When I realized that StackSocial had a &lt;a href=&#34;https://stacksocial.com/sales/lenovo-thinkcentre-m900-tiny-core-i5-6500t-16gb-256gb-ssd-wi-fi-windows-10-pro-refurbished&#34;&gt;Lenovo ThinkCentre M900&lt;/a&gt; on sale for less than $200, I ordered one.&lt;/p&gt;
&lt;p&gt;I also knew I wanted to try something besides Windows and MacOS on this new machine, so I decided to evaluate Linux distros. As it turns out, choosing a Linux distro is a really tall order for someone who&amp;rsquo;s only superifically familiar with the domain; there are hundreds, if not thousands, of distributions.&lt;/p&gt;
&lt;p&gt;So, knowing the membership to be Linux and FOSS fans, I turned to the Mastodon community to help me decide what to try out first.&lt;/p&gt;
&lt;h2 id=&#34;data-collection&#34;&gt;Data Collection&lt;/h2&gt;
&lt;p&gt;I &lt;a href=&#34;https://fosstodon.org/@scoknig/110634616581420265&#34;&gt;posted a poll&lt;/a&gt; on Mastodon asking everyone to vote for their favorite Linux Distro.&lt;/p&gt;
&lt;p&gt;I didn&amp;rsquo;t expect to get much engagement as a new member with few followers, but it seems as though this topic is something everyone has an opinion on.&lt;/p&gt;
&lt;p&gt;Having set the poll to stay open for a week, I received 58 votes, not accounting for recommendations from replies on the post (I asked everyone with an &amp;ldquo;Other&amp;rdquo; vote to specify their preference in a reply).&lt;/p&gt;
&lt;p&gt;After a week, I combed through the comments to create the full dataset analyze the results.&lt;/p&gt;
&lt;h2 id=&#34;analysis&#34;&gt;Analysis&lt;/h2&gt;
&lt;p&gt;I used a Jupyter Notebook for the basic analysis. Pandas helped me to import and transform the data, and I used Matplotlib for the visualizations. As there were two types of recommendations, I classified the recommendations as either &lt;strong&gt;distros&lt;/strong&gt; or &lt;strong&gt;desktops&lt;/strong&gt; (&lt;a href=&#34;https://embeddedinventor.com/linux-distros-vs-desktop-environments-differences-explained/&#34;&gt;what&amp;rsquo;s the difference?&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;From there, I added a few blocks of code to clean things up, sort the data, and create the bar charts.&lt;/p&gt;
&lt;h2 id=&#34;results&#34;&gt;Results&lt;/h2&gt;
&lt;p&gt;Now that I had a couple of visuals to evaluate, the results were quite interesting and unexpected. &lt;a href=&#34;https://zorin.com/os/&#34;&gt;Zorin OS&lt;/a&gt; was one of my personal preferences going into the poll, but it hadn&amp;rsquo;t received a single vote (since the poll closed, I&amp;rsquo;ve had some comments recommending it).&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://linuxmint.com/&#34;&gt;Linux Mint&lt;/a&gt; was by far the winner in the distro category, followed by &lt;a href=&#34;https://www.fedoraproject.org/&#34;&gt;Fedora&lt;/a&gt; and &lt;a href=&#34;https://nixos.org/&#34;&gt;NixOS&lt;/a&gt;. So, it looks like I&amp;rsquo;ll be starting off with Linux Mint.&lt;/p&gt;
&lt;p&gt;For desktop environments, &lt;a href=&#34;https://kde.org/plasma-desktop/&#34;&gt;KDE Plasma&lt;/a&gt; was the most recommended.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve since &lt;a href=&#34;https://fosstodon.org/@scoknig/110674998281361161&#34;&gt;posted the results on Mastodon&lt;/a&gt;, in case anyone who participated was interested in the overall outcome.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve pushed the project files to my &lt;a href=&#34;https://github.com/scoknig/mastodon-linux-recs/blob/main/Linux%20Poll%20Analysis.ipynb&#34;&gt;Github&lt;/a&gt;, but I recommend &lt;a href=&#34;https://nbviewer.org/github/scoknig/mastodon-linux-recs/blob/main/Linux%20Poll%20Analysis.ipynb&#34;&gt;checking it out here&lt;/a&gt; using the Jupyter Notebook Viewer if you just want to see the results.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>