<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Unixy on Holyarmy.org</title>
		<link>https://holyarmy.org/categories/unixy/</link>
		<description>Recent content in Unixy on Holyarmy.org</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Mon, 06 Sep 2021 15:16:42 -0500</lastBuildDate>
		
			<atom:link href="https://holyarmy.org/categories/unixy/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Non-Destructive PVC Namespace Move with Longhorn on K8s</title>
				<link>https://holyarmy.org/2021/09/non-destructive-pvc-namespace-move-with-longhorn-on-k8s/</link>
				<pubDate>Mon, 06 Sep 2021 15:16:42 -0500</pubDate>
				<guid>https://holyarmy.org/2021/09/non-destructive-pvc-namespace-move-with-longhorn-on-k8s/</guid>
				<description>&lt;h2 id=&#34;k3s-and-longhorn&#34;&gt;K3s and Longhorn&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve long run a server (or servers) in my home. There&amp;rsquo;s been many different tech&#xA;stacks used over the years, but I&amp;rsquo;ll save that saga for other posts.&lt;/p&gt;&#xA;&lt;p&gt;Today, without even providing the backstory for my current HomeLab adventures with &lt;a href=&#34;https://kubernetes.io/&#34;&gt;K8s&#xA;(Kubernetes)&lt;/a&gt;, I&amp;rsquo;m going to dive into the specifics of a storage related problem and&#xA;my quick and dirty solution.&lt;/p&gt;&#xA;&lt;p&gt;However, I suppose it&amp;rsquo;s at least important to know I&amp;rsquo;m running &lt;a href=&#34;https://k3s.io/&#34;&gt;K3s&lt;/a&gt;, a lightweight&#xA;Kubernetes distribution, and for my magical storage solution on Kubernetes, I&amp;rsquo;m&#xA;running &lt;a href=&#34;https://longhorn.io/&#34;&gt;Longhorn&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Ubuntu USB Ethernet Naming for Alias and VLAN Interfaces</title>
				<link>https://holyarmy.org/2016/12/ubuntu-usb-ethernet-naming-for-alias-and-vlan-interfaces/</link>
				<pubDate>Sat, 24 Dec 2016 18:18:25 +0000</pubDate>
				<guid>https://holyarmy.org/2016/12/ubuntu-usb-ethernet-naming-for-alias-and-vlan-interfaces/</guid>
				<description>&lt;p&gt;In my ongoing adventures of playing with the &lt;a href=&#34;http://www.amazon.com/gp/product/B00IT1WJZQ/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B00IT1WJZQ&amp;amp;linkCode=as2&amp;amp;tag=benjasherm-20&amp;amp;linkId=GCUVONIR4FLBOQSI&#34;&gt;Chromebox&lt;/a&gt; as a firewall, I eventually found a reason to use stock Ubuntu 16.04 instead of VyOS.&lt;/p&gt;&#xA;&lt;p&gt;For the most part, devices just work as you’d expect under Ubuntu. Even my USB ethernet network interface (NIC) devices work fine. But I eventually noticed a problem.&lt;/p&gt;&#xA;&lt;p&gt;By default USB NICs under Ubuntu 16.04 (which uses systemd &amp;amp; udev) are named “enxABCDEF123456” where ABCDEF123456 is the full MAC address of the device.&lt;/p&gt;</description>
			</item>
			<item>
				<title>VyOS on an Asus Chromebox M004U</title>
				<link>https://holyarmy.org/2016/08/vyos-on-an-asus-chromebox-m004u/</link>
				<pubDate>Thu, 04 Aug 2016 15:38:55 +0000</pubDate>
				<guid>https://holyarmy.org/2016/08/vyos-on-an-asus-chromebox-m004u/</guid>
				<description>&lt;p&gt;This is a bit of a follow up from my &lt;a href=&#34;https://holyarmy.org/2015/05/esxi-on-an-asus-chromebox-m004u/&#34;&gt;last post&lt;/a&gt;. I’ve still got my &lt;a href=&#34;http://www.amazon.com/gp/product/B00IT1WJZQ/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B00IT1WJZQ&amp;amp;linkCode=as2&amp;amp;tag=benjasherm-20&amp;amp;linkId=GCUVONIR4FLBOQSI&#34;&gt;Asus Chromebox&lt;/a&gt;. I’m not running ESXi any more… but something I do want to try out is &lt;a href=&#34;http://vyos.net/&#34;&gt;VyOS&lt;/a&gt;. Why? Well, my original intent when purchasing the Chromebox was to play around with it, but then I really did expect it to replace my home router. I’ve used pfSense for a long time, but I’m curious about VyOS because I know several people using EdgeRouter Lite which uses EdgeOS, a fork of VyOS. So I wanted to play around on existing hardware.&lt;/p&gt;</description>
			</item>
			<item>
				<title>ESXi on an Asus Chromebox M004U</title>
				<link>https://holyarmy.org/2015/05/esxi-on-an-asus-chromebox-m004u/</link>
				<pubDate>Sat, 23 May 2015 18:51:55 +0000</pubDate>
				<guid>https://holyarmy.org/2015/05/esxi-on-an-asus-chromebox-m004u/</guid>
				<description>&lt;p&gt;I recently stumbled across the &lt;a href=&#34;http://www.amazon.com/gp/product/B00IT1WJZQ/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B00IT1WJZQ&amp;amp;linkCode=as2&amp;amp;tag=benjasherm-20&amp;amp;linkId=GCUVONIR4FLBOQSI&#34;&gt;ASUS CHROMEBOX-M004U&lt;/a&gt;. It’s a Chromebox, which is cool in its own right, but I was interested in using it’s dual-core Celeron Haswell CPU, expandable RAM (up to 16GB), and M2 Sata storage for other purposes.&lt;/p&gt;&#xA;&lt;p&gt;First things first, you’ve got to enable the box to run things other than ChromeOS… Thankfully that’s well documented ( &lt;a href=&#34;http://kodi.wiki/view/ASUS_Chromebox&#34;&gt;http://kodi.wiki/view/ASUS_Chromebox&lt;/a&gt; ), so I won’t go into detail at this time. But I will say, I used the standalone, custom coreboot firmware and chose the headless option, as my current planned use cases are for servers. Apparently you want non-headless if you plan to use the box as a Plex Home Theater or Kodi box. Oh, also, I set it to boot first from USB if  available.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Killing “find” Errors</title>
				<link>https://holyarmy.org/2009/11/killing-find-errors/</link>
				<pubDate>Mon, 09 Nov 2009 05:46:53 +0000</pubDate>
				<guid>https://holyarmy.org/2009/11/killing-find-errors/</guid>
				<description>&lt;p&gt;I’ve used the unix filesystem search utility &lt;strong&gt;find&lt;/strong&gt; for many years. Though, like most things, until forced to learn its deeper secrets, I generally get by with only the most basic knowledge.&lt;/p&gt;&#xA;&lt;p&gt;One of the cool things about &lt;strong&gt;find&lt;/strong&gt; is that you can specify a search and then execute an action on the results, all in one command.&lt;/p&gt;&#xA;&lt;p&gt;This example is probably my most common use of &lt;strong&gt;find&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;find . -type d -name .svn -exec rm -fr {} \;&#xA;&lt;/pre&gt;&#xA;&lt;p&gt;This means: find, in the current directory (.), a directory (-type d), named .svn (-name .svn), and for every result (-exec) remove that directory (rm -fr {}) .  The “{}” represents the matched path string, and the “;” is required to end the “-exec” command.&lt;/p&gt;</description>
			</item>
			<item>
				<title>VPN on Ubuntu Linux with Juniper Network Connect</title>
				<link>https://holyarmy.org/2009/06/vpn-on-ubuntu-linux-with-juniper-network-connect/</link>
				<pubDate>Mon, 15 Jun 2009 23:13:25 +0000</pubDate>
				<guid>https://holyarmy.org/2009/06/vpn-on-ubuntu-linux-with-juniper-network-connect/</guid>
				<description>&lt;p&gt;There’s one standard document on HOWTO get Network Connect working on Ubuntu Linux. It’s mad scientist’s doc: &lt;a href=&#34;http://mad-scientist.us/juniper.html&#34;&gt;http://mad-scientist.us/juniper.html&lt;/a&gt; . However, there are a few things not covered. I’ll assume that you’ve followed mad scientist’s excellent guide before going any further.&lt;/p&gt;&#xA;&lt;h3 id=&#34;issue-1-64-bit-ubuntu&#34;&gt;Issue #1: 64-bit Ubuntu&lt;/h3&gt;&#xA;&lt;p&gt;By default, when you install java on your 64-bit system, you get a 64-bit java. No surprise there, right? Well, Juniper’s tools don’t play nice with 64-bit java. If you attempt to start the &lt;strong&gt;junipernc&lt;/strong&gt; script you’ll promptly see the “VPN has failed!” error message.&lt;figure id=&#34;attachment_400&#34; style=&#34;width: 204px&#34; class=&#34;wp-caption alignnone&#34;&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>Foxmarks: Bookmark Synchronization Heaven</title>
				<link>https://holyarmy.org/2009/02/foxmarks-bookmark-synchronization-heaven/</link>
				<pubDate>Sat, 21 Feb 2009 22:19:25 +0000</pubDate>
				<guid>https://holyarmy.org/2009/02/foxmarks-bookmark-synchronization-heaven/</guid>
				<description>&lt;p&gt;Long have I searched for the magic bullet solution to my bookmark synchronization woes.  I’ve wanted a simple plugin that would synchronize my bookmarks between multiple installations of &lt;a href=&#34;http://www.getfirefox.com&#34;&gt;Firefox&lt;/a&gt; and &lt;a href=&#34;http://www.apple.com/safari/&#34;&gt;Safari&lt;/a&gt;, thus making it simple to access said bookmarks from any computer, or between the two commonly used browsers on my Mac.  I’ve looked at many options, but always the solution only allows me to sync one browser or the other, leaving me looking for some secondary sync tool to get between Firefox and Safari on my Mac itself, not via network or a proper sync.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Use vi key bindings in bash</title>
				<link>https://holyarmy.org/2008/12/use-vi-key-bindings-in-bash/</link>
				<pubDate>Thu, 04 Dec 2008 06:29:38 +0000</pubDate>
				<guid>https://holyarmy.org/2008/12/use-vi-key-bindings-in-bash/</guid>
				<description>&lt;p&gt;A long time ago I used ksh with vi key bindings, and life was good.&lt;/p&gt;&#xA;&lt;p&gt;Then I moved on to bash, but for some reason, I never investigated using vi key bindings. I simply lived with the defaults (which, for the record, are emacs-like key bindings).&lt;/p&gt;&#xA;&lt;p&gt;So, just the other day I said to myself, “Self, I want to use vi key bindings in bash. I want to again experience the joy of traversing and editing my command line in COMMAND MODE. I want the speed and the power of my precious vi (well, I use vim) at my finger tips. And I NO LONGER want to waste time holding arrow keys or to think about using emacs-like commands.”&lt;/p&gt;</description>
			</item>
			<item>
				<title>Bonjour Avahi Addendum</title>
				<link>https://holyarmy.org/2008/11/bonjour-avahi-addendum/</link>
				<pubDate>Thu, 06 Nov 2008 16:23:53 +0000</pubDate>
				<guid>https://holyarmy.org/2008/11/bonjour-avahi-addendum/</guid>
				<description>&lt;p&gt;A while back I wrote about &lt;a href=&#34;https://holyarmy.org/2008/01/advertising-linux-services-via-avahibonjour&#34;&gt;advertising Linux services via Avahi/Bonjour&lt;/a&gt;. Since then I’ve made a few changes to my setup.&lt;/p&gt;&#xA;&lt;p&gt;First, I nixed netatalk for direct AFP support. My primary reason for using it was to gain a more Mac-like network filesystem which would make Time Machine happier. Well, Time Machine uses a sparse bundle disk image on it’s target; after learning about that, using AFP seemed a bit unnecessary. Also, Samba CIFS/SMB seemed to perform better. I don’t have solid benchmarks for this, but simple file copies seemed to be consistenly faster with Samba. One of the biggest annoyances about netatalk was all the extra hidden files and folders it created. I run a hybrid network, I have more Mac machines, but also Windows, plus I browse file systems on the command line quite often; and those excess files pushed me over the edge.&lt;/p&gt;&#xA;&lt;p&gt;Second, I nixed Time Machine. Just when I thought everything was working perfectly, it completely blew up and could no longer access its data store. Not good for a backup solution. I plan to write about my new home backup solution sometime, but it’s basically rsync with a few key points.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Advertising Linux Services via Avahi/Bonjour</title>
				<link>https://holyarmy.org/2008/01/advertising-linux-services-via-avahibonjour/</link>
				<pubDate>Sun, 27 Jan 2008 22:20:42 +0000</pubDate>
				<guid>https://holyarmy.org/2008/01/advertising-linux-services-via-avahibonjour/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; &lt;em&gt;most of this information is still correct but an update for combining service definitions into one file and setting an icon is available here: &lt;a href=&#34;https://holyarmy.org/2008/11/bonjour-avahi-addendum&#34;&gt;bonjour-avahi-addendum&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;In my last post I outlined how I followed others’ directions to enable netatalk on Linux and Time Machine backups to a shared AFP folder. Originally, I also described how to put all your shares on netatalk. I suppose if only have Mac clients or you REALLY want to use AFP, you can do so. As I worked with files over AFP shares, I started noticing that the performance seemed to be quite bad. No, I didn’t benchmark, but copying large video files to a shared folder over my gigabit network was substantially slower over AFP (netatalk) than over CIFS/SMB (samba). I use my network shares pretty heavily, so this was a concern. Also, netatalk tries very hard to replicate an HFS filesystem complete with resource fork support. This means that your shared directories end up with lots of extra folders named “.AppleDouble”(and a few others) containing Mac specific info. (Note: even on CIFS you’ll get the “.AppleDB” folders unless you disable a setting in Finder. I can deal with .AppleDB better than .AppleDouble AND .AppleDB) So, because of these two issues I decided to try using CIFS and samba again.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Time Machine backup to Linux via Netatalk</title>
				<link>https://holyarmy.org/2008/01/time-machine-backup-to-linux-via-netatalk/</link>
				<pubDate>Thu, 24 Jan 2008 07:26:49 +0000</pubDate>
				<guid>https://holyarmy.org/2008/01/time-machine-backup-to-linux-via-netatalk/</guid>
				<description>&lt;div&gt;&#xA;  So, when I got the upgrade from Tiger to Leopard on my MacBook Pro, I was looking for a good backup solution. I&amp;#8217;ve used &lt;a href=&#34;http://samba.anu.edu.au/rsync/&#34; target=&#34;_blank&#34;&gt;rsync&lt;/a&gt; in the past, but when I saw that Apple had a new &lt;a href=&#34;http://www.apple.com/macosx/features/timemachine.html&#34; target=&#34;_blank&#34;&gt;Time Machine&lt;/a&gt; backup tool, I was curious to give it a shot. The catch is you basically needed an external USB or Firewire drive, until they recently came out with the &lt;a href=&#34;http://www.apple.com/timecapsule/&#34; target=&#34;_blank&#34;&gt;Time Capsule&lt;/a&gt;. Anyway, tonight I got the itch to really see if I could make Time Machine work without buying extra hardware. I mean, seriously, I&amp;#8217;ve got a good hunk of mirrored disk sitting on my home server; that seems like a good place to do backups.&#xA;&lt;/div&gt;&#xA;&lt;div&gt;&#xA;  Some googling found me this &lt;a href=&#34;http://www.fey.ca/blarchives/2007/11/18/time_machine_and_netatalk.html&#34; target=&#34;_blank&#34;&gt;link&lt;/a&gt; to a blogger who&amp;#8217;d done it!&#xA;&lt;/div&gt;&#xA;&lt;div&gt;&#xA;&lt;/div&gt;&#xA;&lt;div&gt;&#xA;  I&amp;#8217;ll make my own version of this post, since I had a few differences from the original I where I found the info.&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>EasyVMX: Easily Create VMware Player Machines</title>
				<link>https://holyarmy.org/2007/09/easyvmx-easily-create-vmware-player-machines/</link>
				<pubDate>Thu, 20 Sep 2007 15:39:31 +0000</pubDate>
				<guid>https://holyarmy.org/2007/09/easyvmx-easily-create-vmware-player-machines/</guid>
				<description>&lt;p&gt;I’ve used this before, but today I was struck by how useful &lt;a href=&#34;http://www.easyvmx.com&#34; target=&#34;_blank&#34;&gt;EasyVMX&lt;/a&gt; really is! I’m setting up a new &lt;a href=&#34;http://syslinux.zytor.com/pxe.php&#34; target=&#34;_blank&#34;&gt;PXELINUX&lt;/a&gt; / TFTP server (which will incidentally be running the &lt;a href=&#34;http://pxeknife.erebor.org/&#34;&gt;PXE Knife&lt;/a&gt; tools put together by my friends John and Brian.&lt;/p&gt;&#xA;&lt;p&gt;Anyway, EasyVMX provides a form (easy, super simple and 2.0 with advanced options) to generate a VMX config file (which &lt;a href=&#34;http://www.vmware.com&#34; target=&#34;_blank&#34;&gt;VMware&lt;/a&gt; uses) to run a virtual machine. All you have to do is choose a few basic options about what you need on your machine, how much RAM, how big your disk needs to be, etc; click ‘Create’; and download your zip file. Simpl, easy, and I’ve got a VMware virtual machine that I can run in the free, &lt;a href=&#34;http://www.vmware.com/products/player/&#34; target=&#34;_blank&#34;&gt;VMware player.&lt;/a&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
