<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.5">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2019-08-27T12:09:18+00:00</updated><id>/feed.xml</id><title type="html">eXecute Read Write</title><subtitle>boring sysadmin and random tech ramblings</subtitle><entry><title type="html">Homekit and Hue dimmer with LivingWhites Plug</title><link href="/homeautomation/2019/08/27/homekit-hue-dimmer.html" rel="alternate" type="text/html" title="Homekit and Hue dimmer with LivingWhites Plug" /><published>2019-08-27T05:09:35+00:00</published><updated>2019-08-27T05:09:35+00:00</updated><id>/homeautomation/2019/08/27/homekit-hue-dimmer</id><content type="html" xml:base="/homeautomation/2019/08/27/homekit-hue-dimmer.html">&lt;p&gt;As of firmware 1933144020 for the Philips Hue Bridge, it no longer allows dimming functionality on the LivingWhites dimmable plug.&lt;/p&gt;

&lt;p&gt;Fortunately this can be negated in OpenHAB (assuming correct bindings in the items xml) with the following Node-RED flows.
[&lt;img src=&quot;/assets/images/homekit-nodered.png&quot; alt=&quot;homekit-nodered.png&quot; /&gt;]&lt;/p&gt;

&lt;script src=&quot;https://gist.github.com/IX9/14c92405d46aba096c5cd3bc39296e98.js&quot;&gt;&lt;/script&gt;</content><author><name></name></author><summary type="html">As of firmware 1933144020 for the Philips Hue Bridge, it no longer allows dimming functionality on the LivingWhites dimmable plug.</summary></entry><entry><title type="html">Using a Logitech K750 PC Version on a Mac</title><link href="/2015/09/02/using-a-logitech-k750-pc-version-on-a-mac.html" rel="alternate" type="text/html" title="Using a Logitech K750 PC Version on a Mac" /><published>2015-09-02T06:58:39+00:00</published><updated>2015-09-02T06:58:39+00:00</updated><id>/2015/09/02/using-a-logitech-k750-pc-version-on-a-mac</id><content type="html" xml:base="/2015/09/02/using-a-logitech-k750-pc-version-on-a-mac.html">&lt;p&gt;Probably one of the nicest full-sized wireless chiclet keyboards for PC (which used to come in a Mac version, however Logitech stopped selling them)&lt;/p&gt;

&lt;p&gt;So I’m forced to use the PC version on a Mac, which comes with a few gotcha’s. For one, the PC version has a hardware-based FN key (the OS doesn’t know you’ve pressed it until you press the corresponding blue-text key as well)&lt;/p&gt;

&lt;p&gt;Oh and the Vol Up/Down/Mute keys are one position left on the keyboard than the Mac equivalent.&lt;/p&gt;

&lt;p&gt;Mac: F10 = Mute, F11 = Down, F12 = Up.&lt;br /&gt;
PC: F9 = Mute, F10 = Down, F11 = Up.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/apple_web.jpg&quot; alt=&quot;apple_web&quot; /&gt; &lt;a href=&quot;https://xrwtech.files.wordpress.com/2015/09/k750_web.jpg&quot;&gt;&lt;img src=&quot;/assets/images/k750_web.jpg?w=300&quot; alt=&quot;k750_web&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ugh….&lt;br /&gt;
Enter &lt;a href=&quot;https://pqrs.org/osx/karabiner/&quot;&gt;Karabiner&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/screenshot-2015-09-02-14-30-27.png&quot; alt=&quot;Screenshot 2015-09-02 14.30.27&quot; /&gt;&lt;/p&gt;

&lt;p&gt;With it, you can remap your keys and make customisations more relevant to the Mac world.&lt;/p&gt;

&lt;p&gt;I find the Home/End re-mapping great.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/screenshot-2015-09-02-14-44-53.png&quot; alt=&quot;Screenshot 2015-09-02 14.44.53&quot; /&gt;&lt;/p&gt;

&lt;p&gt;There are some exceptions where this shouldn’t be remapped of course, and that’s Remote Desktop sessions (which I use &lt;a href=&quot;http://blog.xrw.tech/2015/08/20/using-royal-tsx-to-administer-your-windows-network-from-your-mac/&quot;&gt;RoyalTSX&lt;/a&gt; for - see my previous blog post)&lt;br /&gt;
So we had to add an exception into the XML file - easy!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/screenshot-2015-09-02-14-46-58.png&quot; alt=&quot;Screenshot 2015-09-02 14.46.58&quot; /&gt;&lt;/p&gt;

&lt;p&gt;In the following example I’ve remapped the following;&lt;/p&gt;

&lt;p&gt;F3 = Spotlight&lt;br /&gt;
F4 = Launch Calculator.app (always found that handy in Windows)&lt;br /&gt;
F9/10/11 = Mute, Vol Down, Vol Up&lt;br /&gt;
PrtScr = OSX Screenshot to Clipboard&lt;br /&gt;
FN+PrtScr = OSX Screenshot to File&lt;/p&gt;

&lt;p&gt;Put this code in your private.xml file;&lt;/p&gt;

&lt;script src=&quot;https://gist.github.com/IX9/660c276addcaf983207a.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;Hit the Reload XML button and enable the “K750” options to suit you.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/screenshot-2015-09-02-14-48-40.png&quot; alt=&quot;Screenshot 2015-09-02 14.48.40&quot; /&gt;&lt;/p&gt;</content><author><name></name></author><summary type="html">Probably one of the nicest full-sized wireless chiclet keyboards for PC (which used to come in a Mac version, however Logitech stopped selling them)</summary></entry><entry><title type="html">Using Royal TSx to administer your Windows network, from your Mac</title><link href="/sysadmin/2015/08/20/using-royal-tsx-to-administer-your-windows-network-from-your-mac.html" rel="alternate" type="text/html" title="Using Royal TSx to administer your Windows network, from your Mac" /><published>2015-08-20T11:43:10+00:00</published><updated>2015-08-20T11:43:10+00:00</updated><id>/sysadmin/2015/08/20/using-royal-tsx-to-administer-your-windows-network-from-your-mac</id><content type="html" xml:base="/sysadmin/2015/08/20/using-royal-tsx-to-administer-your-windows-network-from-your-mac.html">&lt;p&gt;Recently moved over to a Mac exclusively for my workstations, despite being a sysadmin for a medium-sized Windows Active Directory network.&lt;/p&gt;

&lt;p&gt;Remote Desktops are tools-of-the-trade, and coming from Microsoft’s Remote Desktop Connection Manager (RDCMAN) console, I was struggling to find a suitable alternative for OSX.&lt;/p&gt;

&lt;p&gt;Until I found Royal TSx.&lt;/p&gt;

&lt;p&gt;This is essentially RDCMAN for OSX, on steroids.&lt;/p&gt;

&lt;p&gt;Relax, it also comes in Windows edition (Royal TS) so die-hard windows nuts can keep reading.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://xrwtech.files.wordpress.com/2015/08/screen-shot-2015-08-20-at-7-39-01-pm.png&quot;&gt;&lt;img src=&quot;/assets/images/screen-shot-2015-08-20-at-7-39-01-pm.png&quot; alt=&quot;Screen Shot 2015-08-20 at 7.39.01 pm&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I found it fits my workflow perfectly with the following features;&lt;/p&gt;

&lt;p&gt;* Organise RDP connections (and inherit credentials) by folders&lt;/p&gt;

&lt;p&gt;* Organise Terminal, SSH and Telnet connections by folder&lt;/p&gt;

&lt;p&gt;* Ability to sync your .rtsz data file to your work PC (via Dropbox)&lt;/p&gt;

&lt;p&gt;* Can also use a “gateway” application (Royal Server) to tunnel to your network, and access other things like Event Logs, Terminal Services admin, and Windows Services - right from your Mac!&lt;/p&gt;

&lt;p&gt;Price isn’t too bad (29EU for a personal use license, client only, no gateway server)&lt;/p&gt;

&lt;p&gt;There’s also a 10-connection trial you can use.&lt;/p&gt;

&lt;p&gt;Check it out at &lt;a href=&quot;http://www.royalapplications.com/ts/osx/features&quot;&gt;http://www.royalapplications.com/ts/osx/features&lt;/a&gt;&lt;/p&gt;</content><author><name></name></author><summary type="html">Recently moved over to a Mac exclusively for my workstations, despite being a sysadmin for a medium-sized Windows Active Directory network.</summary></entry><entry><title type="html">Automating Maxmind GeoIP downloads on Windows</title><link href="/sysadmin/2015/08/20/automating-maxmind-geoip-downloads-on-windows.html" rel="alternate" type="text/html" title="Automating Maxmind GeoIP downloads on Windows" /><published>2015-08-20T10:05:51+00:00</published><updated>2015-08-20T10:05:51+00:00</updated><id>/sysadmin/2015/08/20/automating-maxmind-geoip-downloads-on-windows</id><content type="html" xml:base="/sysadmin/2015/08/20/automating-maxmind-geoip-downloads-on-windows.html">&lt;p&gt;Sure - there’s lots of snippets for automating the GeoIP database downloads (with your Maxmind subscription) for your *nix boxes, but not many for Windows.&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;Here’s a simple PowerShell script that you can pop into your favourite job scheduler application (Batch Job Server, JAMS Scheduler, or *ugh* Windows Task Scheduler)&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;It’s pretty rough and not much error handling (I wrote it quickly) but it does the job to;&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Download the latest GeoIP file&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Unextract the double-zipped tar.gz file&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Copy the unextracted .dat file to a location for you to use&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;(We use this in a webfarm environment, which is replicated to each web server via Microsoft’s DFSR)&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;It’s posted here on GitHub, so feel free to make improvements and collaborate :)&lt;/p&gt;

&lt;script src=&quot;https://gist.github.com/IX9/cd1fa5bde12de3f917dc.js&quot;&gt;&lt;/script&gt;</content><author><name></name></author><summary type="html">Sure - there’s lots of snippets for automating the GeoIP database downloads (with your Maxmind subscription) for your *nix boxes, but not many for Windows.</summary></entry><entry><title type="html">AFP setup on CentOS 7</title><link href="/sysadmin/2015/08/10/afp-setup-on-centos-7.html" rel="alternate" type="text/html" title="AFP setup on CentOS 7" /><published>2015-08-10T05:09:35+00:00</published><updated>2015-08-10T05:09:35+00:00</updated><id>/sysadmin/2015/08/10/afp-setup-on-centos-7</id><content type="html" xml:base="/sysadmin/2015/08/10/afp-setup-on-centos-7.html">&lt;p&gt;Finding an accurate how-to for the minefield that is, open source software is sometimes terrible.&lt;/p&gt;

&lt;p&gt;Documentation is hard to read, and often isn’t updated for point releases, which is often out of date.&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;Thank god this blog post from Zit Seng explains exactly how to setup Netatalk on CentOS 7.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://zitseng.com/archives/6182&quot;&gt;https://zitseng.com/archives/6182&lt;/a&gt;&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;Except for the afp.conf file, which sometimes needs a little more massaging to be usable as a bare minimum config.&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;I found it needs the &lt;strong&gt;uam list&lt;/strong&gt; property present in the file in order for AFP clients to connect successfully.&lt;/p&gt;

&lt;p&gt;I’m using OSX 10.10.5 (Yosemite) and found without these config directives accessing the shares would fail.&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;Here’s a working usable config you can use;&lt;/p&gt;

&lt;script src=&quot;https://gist.github.com/IX9/45df69dec5d471b983d5.js&quot;&gt;&lt;/script&gt;

&lt;p&gt; &lt;/p&gt;</content><author><name></name></author><summary type="html">Finding an accurate how-to for the minefield that is, open source software is sometimes terrible.</summary></entry></feed>