<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>John Wells &#187; OSX</title>
	<atom:link href="http://www.jfwhome.com/category/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jfwhome.com</link>
	<description>Knowledge Management and Social Web App Guru</description>
	<lastBuildDate>Mon, 04 Jan 2016 17:26:35 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9</generator>
	<item>
		<title>Reboot TP-Link router remotely or automatically</title>
		<link>http://www.jfwhome.com/2012/06/18/reboot-tp-link-router-remotely-or-automatically/</link>
		<comments>http://www.jfwhome.com/2012/06/18/reboot-tp-link-router-remotely-or-automatically/#comments</comments>
		<pubDate>Mon, 18 Jun 2012 05:09:09 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jfwhome.com/?p=171</guid>
		<description><![CDATA[using cURL or wget, it&#8217;s easy to reboot a TP-Link router from a terminal or command line. Put it in a script and schedule it to run automatically if your router overheats or is flaky: in OSX (using cURL): curl --user username:password http://192.168.1.1/userRpm/SysRebootRpm.htm?Reboot=Reboot > /dev/null If you have wget by default instead of cURL (i.e.&#8230;]]></description>
				<content:encoded><![CDATA[<p>using cURL or wget, it&#8217;s easy to reboot a TP-Link router from a terminal or command line. Put it in a script and schedule it to run automatically if your router overheats or is flaky:</p>
<p>in OSX (using cURL):<br />
<code><br />
curl --user username:password http://192.168.1.1/userRpm/SysRebootRpm.htm?Reboot=Reboot > /dev/null<br />
</code></p>
<p>If you have wget by default instead of cURL (i.e. most *nix):<br />
<code><br />
wget -qO- --user=username --password=password http://192.168.1.1/userRpm/SysRebootRpm.htm?Reboot=Reboot > /dev/null<br />
</code></p>
<p>Replace username and password with the admin username and password of your router. Replace 192.168.1.1 with the IP address of your router.</p>
<p>If you have Windows, with neither of the above, and don&#8217;t want to download wget, try using bitsadmin to create a download job.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jfwhome.com/2012/06/18/reboot-tp-link-router-remotely-or-automatically/feed/</wfw:commentRss>
		<slash:comments>449</slash:comments>
		</item>
		<item>
		<title>Run FileBot headless without Dock icon on OSX</title>
		<link>http://www.jfwhome.com/2012/04/16/run-filebot-headless-on-osx/</link>
		<comments>http://www.jfwhome.com/2012/04/16/run-filebot-headless-on-osx/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 15:19:54 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://www.jfwhome.com/?p=164</guid>
		<description><![CDATA[FileBot is a great utility for finding the names and subtitles of downloaded TV shows and movies. I use it as part of a shell script to organise downloaded media files. Unfortunately, the suggested way to invoke it from the command line is simply to call filebot, e.g. /Applications/FileBot.app/Contents/MacOS/filebot .... This was causing FileBot to&#8230;]]></description>
				<content:encoded><![CDATA[<p><a href="http://filebot.sourceforge.net/">FileBot</a> is a great utility for finding the names and subtitles of downloaded TV shows and movies. I use it as part of a shell script to organise downloaded media files.</p>
<p>Unfortunately, the <a href="http://filebot.sourceforge.net/cli.html">suggested</a> way to invoke it from the command line is simply to call filebot, e.g. <code>/Applications/FileBot.app/Contents/MacOS/filebot ...</code>.</p>
<p>This was causing FileBot to pop up a Java icon in the dock and steal focus, whenever it was invoked which was driving me crazy. Fortunately the solution is simple: Run the FileBot jar directly with the awt.headless set to true. As follows:</p>
<p><code>java -jar -Djava.awt.headless=true /Applications/FileBot.app/Contents/Resources/java/FileBot.jar ... </code></p>
<p>No more annoying icon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jfwhome.com/2012/04/16/run-filebot-headless-on-osx/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to use Apple bluetooth keyboard with multiple computers via a KVM</title>
		<link>http://www.jfwhome.com/2012/01/02/how-to-use-apple-bluetooth-keyboard-with-multiple-computers-via-a-kvm/</link>
		<comments>http://www.jfwhome.com/2012/01/02/how-to-use-apple-bluetooth-keyboard-with-multiple-computers-via-a-kvm/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 13:16:13 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://www.jfwhome.com/?p=147</guid>
		<description><![CDATA[It&#8217;s easy to share traditional keyboards between multiple computers using a USB KVM. Obviously, with a bluetooth keyboard, things aren&#8217;t so simple. I wanted to share my Apple bluetooth keyboard between my Mac mini and my desktop computer (running Ubuntu, but this would work with Windows). First step was to get a USB bluetooth dongle&#8230;]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s easy to share traditional keyboards between multiple computers using a USB KVM. Obviously, with a bluetooth keyboard, things aren&#8217;t so simple.</p>
<p>I wanted to share my Apple bluetooth keyboard between my Mac mini and my desktop computer (running Ubuntu, but this would work with Windows).</p>
<p>First step was to get a USB bluetooth dongle and plug that into the KVM. Any USB dongle should do. When the KVM is switched to the Mac, the bluetooth dongle takes preference over the built-in Mac bluetooth receiver.</p>
<p>This works to share the keyboard, but the keyboard had to be disconnected and re-paired each time the KVM was switched &#8212; this is particularly problematic if you need to repair the keyboard at, for example, the login screen. It also requires you to enter a PIN code each time.</p>
<p>Fortunately this can be easily solved by sharing the generated link key between the two computers:</p>
<ol>
<li>Pair the keyboard in Ubuntu, then in OSX. </li>
<li>In OSX, look at the bluetooth properties for your keyboard device to get the address.vThen open the terminal and type <code>sudo defaults read /private/var/root/Library/Preferences/blued.plist</code>. You will see something like the following:
<pre>
{
    LinkKeys =     {
        "00-aa-bb-cc-dd-ee" =         {
            "00-00-00-aa-aa-aa" = <81a83517 cc3c7afc fb8e99fc 5147fbf4>;
        };
    };
}
</pre>
<p>Here, the first code is the address of the bluetooth dongle. The second is the address of the keyboard, and the final, longer code is the link key.</li>
<li>Convert the link key into a format suitable for Linux (or Windows), by reversing the endianness; simply reverse the order of the key, taking each pair of hexadecimal numbers as one value. So, the above key would be f4fb4751 fc998efb fc7a3ccc 1735a881. Easy&#8230;</li>
<li>Use this link key in Linux or Windows. On Ubuntu the link key is at /var/lib/bluetooth/00:AA:BB:CC:DD:EE/linkkeys &#8212; the code is the address of the bluetooth dongle. Edit that file and replace the link key corresponding to the address of the bluetooth keyboard to the converted key, above.</li>
<li>That&#8217;s it &#8212; restart Ubuntu, and the keyboard will work seamlessly as it is switched by the KVM.</li>
<p>To change the link key in Windows, you need to edit the registry &#8212; I didn&#8217;t do this, but a search for &#8220;Windows bluetooth link key registry&#8221; should give the goods.</p>
<p>Provided the keyboard doesn&#8217;t become unpaired, the setup should last indefinitely.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jfwhome.com/2012/01/02/how-to-use-apple-bluetooth-keyboard-with-multiple-computers-via-a-kvm/feed/</wfw:commentRss>
		<slash:comments>73</slash:comments>
		</item>
	</channel>
</rss>
