<?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>macOS - Spheron1</title>
	<atom:link href="https://www.spheron1.uk/tag/macos/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.spheron1.uk</link>
	<description></description>
	<lastBuildDate>Sat, 01 Nov 2025 12:02:57 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
	<item>
		<title>ARM64 timescaledb-tune on macOS</title>
		<link>https://www.spheron1.uk/2025/11/01/arm64-timescaledb-tune-on-macos/</link>
					<comments>https://www.spheron1.uk/2025/11/01/arm64-timescaledb-tune-on-macos/#respond</comments>
		
		<dc:creator><![CDATA[digitaldisaster]]></dc:creator>
		<pubDate>Sat, 01 Nov 2025 12:02:56 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[ARM64]]></category>
		<category><![CDATA[Brew]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[Golang]]></category>
		<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[macOS]]></category>
		<category><![CDATA[Postgres]]></category>
		<category><![CDATA[psql]]></category>
		<category><![CDATA[Rosetta]]></category>
		<category><![CDATA[Rosetta 2]]></category>
		<category><![CDATA[Tiger Data]]></category>
		<category><![CDATA[TimescaleDB]]></category>
		<category><![CDATA[timescaledb-tune]]></category>
		<category><![CDATA[x86-64]]></category>
		<guid isPermaLink="false">https://www.spheron1.uk/?p=4582</guid>

					<description><![CDATA[<p>Despite Apple having transitioned their desktop and laptop devices from x86-64 to ARM64 with the M1 processor and macOS 11 Big Sur in late 2020, TimescaleDB still don&#8217;t provide ARM64 builds of their &#8220;timescaledb-tune&#8221; utility on macOS in November 2025 through either their official installation method using a Homebrew tap or in the binaries released in the GitHub repository. Trying&#46;&#46;&#46;</p>
<p>The post <a href="https://www.spheron1.uk/2025/11/01/arm64-timescaledb-tune-on-macos/">ARM64 timescaledb-tune on macOS</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">Despite Apple having transitioned their desktop and laptop devices from x86-64 to ARM64 with the M1 processor and macOS 11 Big Sur in late 2020, TimescaleDB still don&#8217;t provide ARM64 builds of their &#8220;timescaledb-tune&#8221; utility on macOS in November 2025 through either their <a href="https://docs.tigerdata.com/self-hosted/latest/install/installation-macos/" title="">official installation method using a Homebrew tap</a> or in the <a href="https://github.com/timescale/timescaledb-tune/releases" title="">binaries released in the GitHub repository</a>.</p>



<p class="wp-block-paragraph">Trying to use the &#8220;timescaledb-tune&#8221; utility (a key part of the installation process for TimescaleDB) on any Mac made in the last 5 years will result in an error unless you have the Rosetta 2 dynamic binary translation feature installed:</p>



<pre class="wp-block-code"><code>unable to execute /opt/homebrew/bin/timescaledb-tune: Bad CPU type in executable</code></pre>



<p class="wp-block-paragraph">This is particularly weird as the TimescaleDB library itself is ARM64.</p>



<p class="wp-block-paragraph">Given that Tiger Data have had 5 years to ship a native ARM64 binary for their &#8220;timescaledb-tune&#8221; utility, it is rather disappointing to see that they are still relying on people installing the optional Rosetta 2 dynamic binary translation feature on their devices. This requirement also doesn&#8217;t seem to be documented anywhere that I can find.</p>



<p class="wp-block-paragraph">Apple are going to be removing most of Rosetta 2 from macOS 28 in 2027, so hopefully Tiger Data will get around to shipping an ARM64 binary before then.</p>



<p class="wp-block-paragraph">In the meantime, we can manually build an ARM64 binary for the &#8220;timescaledb-tune&#8221; utility from source as follows:</p>



<ol class="wp-block-list">
<li>Download the Go installer from <a href="https://go.dev/dl/">https://go.dev/dl/</a> using the &#8220;Apple macOS (ARM64)&#8221; option and run through the installer steps.</li>



<li>Open up your preferred terminal app and run &#8220;go install github.com/timescale/timescaledb-tune/cmd/timescaledb-tune@main&#8221;.</li>



<li>You will find the ARM64 binary for the &#8220;timescaledb-tune&#8221; utility in ~/go/bin/timescaledb-tune</li>
</ol>



<p class="wp-block-paragraph">I really don&#8217;t understand why Tiger Data aren&#8217;t shipping an ARM64 binary for their &#8220;timescaledb-tune&#8221; utility, given how ridiculously simple it is to build one!</p><p>The post <a href="https://www.spheron1.uk/2025/11/01/arm64-timescaledb-tune-on-macos/">ARM64 timescaledb-tune on macOS</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.spheron1.uk/2025/11/01/arm64-timescaledb-tune-on-macos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Changing the locale in Ubuntu Server</title>
		<link>https://www.spheron1.uk/2019/04/03/979/</link>
					<comments>https://www.spheron1.uk/2019/04/03/979/#respond</comments>
		
		<dc:creator><![CDATA[digitaldisaster]]></dc:creator>
		<pubDate>Wed, 03 Apr 2019 19:58:48 +0000</pubDate>
				<category><![CDATA[cPanel/WHM]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Ubuntu and Debian]]></category>
		<category><![CDATA[Apple Mac OS X]]></category>
		<category><![CDATA[Apple macOS]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[macOS]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://www.spheron1.uk/?p=979</guid>

					<description><![CDATA[<p>When logging into any cPanel server via SSH from an Ubuntu jump server I was seeing some strange warnings from Perl which I didn&#8217;t see when logging in from my laptop running macOS: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = &#8220;C.UTF-8&#8221; are supported and installed on&#46;&#46;&#46;</p>
<p>The post <a href="https://www.spheron1.uk/2019/04/03/979/">Changing the locale in Ubuntu Server</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">When logging into any cPanel server via SSH from an Ubuntu jump server I was seeing some strange warnings from Perl which I didn&#8217;t see when logging in from my laptop running macOS:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>perl: warning: Setting locale failed.<br> perl: warning: Please check that your locale settings:<br>     LANGUAGE = (unset),<br>     LC_ALL = (unset),<br>     LANG = &#8220;C.UTF-8&#8221;<br>     are supported and installed on your system.<br> perl: warning: Falling back to the standard locale (&#8220;C&#8221;).<br> perl: warning: Setting locale failed.<br> perl: warning: Please check that your locale settings:<br>     LANGUAGE = (unset),<br>     LC_ALL = (unset),<br>     LANG = &#8220;C.UTF-8&#8221;<br>     are supported and installed on your system.<br> perl: warning: Falling back to the standard locale (&#8220;C&#8221;).<br> perl: warning: Setting locale failed.<br> perl: warning: Please check that your locale settings:<br>     LANGUAGE = (unset),<br>     LC_ALL = (unset),<br>     LANG = &#8220;C.UTF-8&#8221;<br>     are supported and installed on your system.<br> perl: warning: Falling back to the standard locale (&#8220;C&#8221;).</p></blockquote>



<p class="wp-block-paragraph">After a quick rummage, I found that the reason was that the &#8220;<em>LANG</em>&#8221; environment variable on my laptop was defaulting to &#8220;en_GB.UTF-8&#8221;, whilst on the Ubuntu jump server it was &#8220;C.UTF-8&#8221;.<br></p>



<p class="wp-block-paragraph">The cPanel server runs some Perl stuff when bash starts and if it doesn&#8217;t like your locale settings, then it spits out these warnings.<br></p>



<p class="wp-block-paragraph">The &#8220;<em>LANG</em>&#8221; environment variable is part of the locale system and so the best way to fix this is to update the locale settings configured on the Ubuntu jump server.</p>



<p class="wp-block-paragraph">By default, SSH on both macOS and Ubuntu is configured to send the local &#8220;<em>LANG&#8221;</em> and &#8220;<em>LC_*&#8221;</em> environment variables used for locale settings to the remote system.</p>



<p class="wp-block-paragraph">You can use the &#8220;<em>locale</em>&#8221; command to see your current locale settings as well as &#8220;<em>locale -a</em>&#8221; to see installed locales.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>$ locale<br> LANG=C.UTF-8<br> LANGUAGE=<br> LC_CTYPE=&#8221;C.UTF-8&#8243;<br> LC_NUMERIC=&#8221;C.UTF-8&#8243;<br> LC_TIME=&#8221;C.UTF-8&#8243;<br> LC_COLLATE=&#8221;C.UTF-8&#8243;<br> LC_MONETARY=&#8221;C.UTF-8&#8243;<br> LC_MESSAGES=&#8221;C.UTF-8&#8243;<br> LC_PAPER=&#8221;C.UTF-8&#8243;<br> LC_NAME=&#8221;C.UTF-8&#8243;<br> LC_ADDRESS=&#8221;C.UTF-8&#8243;<br> LC_TELEPHONE=&#8221;C.UTF-8&#8243;<br> LC_MEASUREMENT=&#8221;C.UTF-8&#8243;<br> LC_IDENTIFICATION=&#8221;C.UTF-8&#8243;<br> LC_ALL=</p><p>$ locale -a<br>  C<br>  C.UTF-8<br>  POSIX<br>  en_US.utf8</p></blockquote>



<p class="wp-block-paragraph">In my case I wanted to use en_GB.utf8, which wasn&#8217;t installed. You can use the &#8220;<em>locale-gen</em>&#8221; command to generate locales, but they are also provided in official Ubuntu packages , so I installed the &#8220;<em>language-pack-en</em>&#8221; package from the Ubuntu repositories using APT.<br>This added several English locales and then I could reconfigure Ubuntu to use the one that I needed.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>$ apt-get install language-pack-en<br> Reading package lists… Done<br> Building dependency tree<br> Reading state information… Done<br> The following additional packages will be installed:<br>   language-pack-en-base<br> The following NEW packages will be installed:<br>   language-pack-en language-pack-en-base<br> 0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.<br> Need to get 420 kB of archives.<br> After this operation, 3756 kB of additional disk space will be used.<br> Do you want to continue? [Y/n] y<br> Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 language-pack-en-base all 1:18.04+20180712 [419 kB]<br> Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 language-pack-en all 1:18.04+20180712 [1904 B]<br> Fetched 420 kB in 0s (3606 kB/s)<br> Selecting previously unselected package language-pack-en-base.<br> (Reading database … 50814 files and directories currently installed.)<br> Preparing to unpack …/language-pack-en-base_1%3a18.04+20180712_all.deb …<br> Unpacking language-pack-en-base (1:18.04+20180712) …<br> Selecting previously unselected package language-pack-en.<br> Preparing to unpack …/language-pack-en_1%3a18.04+20180712_all.deb …<br> Unpacking language-pack-en (1:18.04+20180712) …<br> Setting up language-pack-en (1:18.04+20180712) …<br> Setting up language-pack-en-base (1:18.04+20180712) …<br> Generating locales (this might take a while)…<br>   en_AG.UTF-8… done<br>   en_AU.UTF-8… done<br>   en_BW.UTF-8… done<br>   en_CA.UTF-8… done<br>   en_DK.UTF-8… done<br>   en_GB.UTF-8… done<br>   en_HK.UTF-8… done<br>   en_IE.UTF-8… done<br>   en_IL.UTF-8… done<br>   en_IN.UTF-8… done<br>   en_NG.UTF-8… done<br>   en_NZ.UTF-8… done<br>   en_PH.UTF-8… done<br>   en_SG.UTF-8… done<br>   en_ZA.UTF-8… done<br>   en_ZM.UTF-8… done<br>   en_ZW.UTF-8… done<br> Generation complete.</p><p>$ locale -a<br>  C<br>  C.UTF-8<br>  en_AG<br>  en_AG.utf8<br>  en_AU.utf8<br>  en_BW.utf8<br>  en_CA.utf8<br>  en_DK.utf8<br>  en_GB.utf8<br>  en_HK.utf8<br>  en_IE.utf8<br>  en_IL<br>  en_IL.utf8<br>  en_IN<br>  en_IN.utf8<br>  en_NG<br>  en_NG.utf8<br>  en_NZ.utf8<br>  en_PH.utf8<br>  en_SG.utf8<br>  en_US.utf8<br>  en_ZA.utf8<br>  en_ZM<br>  en_ZM.utf8<br>  en_ZW.utf8<br>  POSIX<br> $ update-locale LANG=en_GB.utf8</p></blockquote>



<p class="wp-block-paragraph">The locale settings are stored in &#8220;<em>/etc/default/locale</em>&#8220;, so you can either edit this file manually or use the handy &#8220;<em>update-locale</em>&#8221; utility to do it for you.<br>Either way, once you start a new session, you are using the new locale settings and Perl no longer complains when you SSH to a cPanel server.</p><p>The post <a href="https://www.spheron1.uk/2019/04/03/979/">Changing the locale in Ubuntu Server</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.spheron1.uk/2019/04/03/979/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Decrypting an APFS volume from the Terminal</title>
		<link>https://www.spheron1.uk/2018/07/02/decrypting-an-apfs-volume-from-the-terminal/</link>
					<comments>https://www.spheron1.uk/2018/07/02/decrypting-an-apfs-volume-from-the-terminal/#respond</comments>
		
		<dc:creator><![CDATA[digitaldisaster]]></dc:creator>
		<pubDate>Mon, 02 Jul 2018 16:45:27 +0000</pubDate>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[APFS]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apple Mac OS X]]></category>
		<category><![CDATA[Apple macOS]]></category>
		<category><![CDATA[CoreStorage]]></category>
		<category><![CDATA[Disk Encryption]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[fdesetup]]></category>
		<category><![CDATA[FileVault]]></category>
		<category><![CDATA[Hackintosh]]></category>
		<category><![CDATA[HFS+]]></category>
		<category><![CDATA[macOS]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Terminal]]></category>
		<guid isPermaLink="false">https://www.spheron1.uk/?p=945</guid>

					<description><![CDATA[<p>I&#8217;ve been playing about with a Hackintosh desktop running High Sierra, but run into an interesting problem &#8211; the FileVault Preboot loader which asks you for the password to decrypt the APFS volume doesn&#8217;t recognise the USB keyboard by default. Apparently there are ways to fix this by building the necessary drivers and inserting them into the Preboot volume, but as&#46;&#46;&#46;</p>
<p>The post <a href="https://www.spheron1.uk/2018/07/02/decrypting-an-apfs-volume-from-the-terminal/">Decrypting an APFS volume from the Terminal</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve been playing about with a Hackintosh desktop running High Sierra, but run into an interesting problem &#8211; the FileVault Preboot loader which asks you for the password to decrypt the APFS volume doesn&#8217;t recognise the USB keyboard by default.</p>
<p>Apparently there are ways to fix this by building the necessary drivers and inserting them into the Preboot volume, but as the drive in question is an m.2 NVMe disk, I didn&#8217;t have an easy way to put it into another computer which could mount APFS volumes.</p>
<p>I therefore decided that the quickest and simplest way to recover a working system was to temporarily decrypt the volume.<br />
To do this, I booted the macOS installer from my UniBeast USB stick and launched the Terminal from Utilities-&gt;Terminal in the menu bar.</p>
<p>I found plenty of articles suggesting to use &#8220;fdesetup&#8221; to manage FileVault, however this utility doesn&#8217;t seem to be included in the macOS installer, so instead I had to work out how to accomplish this with the &#8220;diskutil&#8221; utility.</p>
<p>As I&#8217;m using APFS, everything takes place using the commands under &#8220;diskutil apfs&#8221;, however for older HFS+ formatted disks, the same thing should still be possible using the equivalent CoreStorage commands under &#8220;diskutil cs&#8221; (although I haven&#8217;t tested this, so the steps may be a little bit different).</p>
<p>Now lets take a look at the disks and volumes in this system:</p>
<blockquote><p>diskutil apfs list</p></blockquote>
<p>This gives you an ASCII tree view of your disks and their volumes along with various information about each of them.</p>
<p>Find the UUID (the 5 groups of letters and numbers separated by hyphens) for the volume  that you want to decrypt &#8211; it will say &#8220;Encrypted: Yes (Locked)&#8221;.</p>
<p>Before we can decrypt the volume, first we need to unlock it:</p>
<blockquote><p>diskutil apfs unlockVolume &lt;UUID&gt;</p></blockquote>
<p>Enter your passphrase and the volume will be unlocked so that it can be accessed. This only unlocks the Volume whilst the computer is running however and won&#8217;t persist after a reboot.</p>
<p>To permanently decrypt the volume, run:</p>
<blockquote><p>diskutil apfs decryptVolume &lt;UUID&gt;</p></blockquote>
<p>This will start the decryption of the volume in the background.</p>
<p>You can run &#8220;diskutil apfs list&#8221; again to see the progress. Instead of the previous &#8220;Encrypted:&#8221; line, you should now see &#8220;Decryption Process: 1.0% (Unlocked)&#8221;.<br />
Depending on the size of the volume in question, it could take quite some time to complete the decryption.</p>
<p>Once completed, the progress line in the output of &#8220;diskutil apfs list&#8221; will have been replaced with &#8220;Encrypted: no&#8221;. At this point it&#8217;s safe to boot back into normal macOS.</p><p>The post <a href="https://www.spheron1.uk/2018/07/02/decrypting-an-apfs-volume-from-the-terminal/">Decrypting an APFS volume from the Terminal</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.spheron1.uk/2018/07/02/decrypting-an-apfs-volume-from-the-terminal/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 0/107 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching using Redis

Served from: spheron1.uk @ 2026-11-13 03:50:05 by W3 Total Cache
-->