<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<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>mac &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Sat, 15 Nov 2025 07:45:14 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>mac &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[How to generate a Base32 TOTP secret string on a Mac]]></title>
		<link>https://shkspr.mobi/blog/2023/03/how-to-generate-a-base32-totp-secret-string-on-a-mac/</link>
					<comments>https://shkspr.mobi/blog/2023/03/how-to-generate-a-base32-totp-secret-string-on-a-mac/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Mon, 13 Mar 2023 12:34:20 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[CyberSecurity]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[qr]]></category>
		<category><![CDATA[totp]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=45094</guid>

					<description><![CDATA[I needed a way to generate a TOTP secret using a fairly locked-down Mac. No Brew. No NPM. No Python. No Prolog, COBOL, or FORTRAN. No Internet connection. Just whatever software is native to MacOS.  As I&#039;ve mentioned before, the TOTP specification is a stagnant wasteland. But it does have this to say about the secret:  The secret parameter is an arbitrary key value encoded in Base32 according to…]]></description>
										<content:encoded><![CDATA[<p>I needed a way to generate a TOTP secret using a fairly locked-down Mac. No Brew. No NPM. No Python. No Prolog, COBOL, or FORTRAN. No Internet connection. Just whatever software is native to MacOS.</p>

<p>As I've mentioned before, <a href="https://shkspr.mobi/blog/2022/05/why-is-there-no-formal-specification-for-otpauth-urls/">the TOTP specification is a stagnant wasteland</a>. But it does have this to say about the secret:</p>

<blockquote><p>The <code>secret</code> parameter is an arbitrary key value encoded in Base32 according to <a href="https://www.rfc-editor.org/rfc/rfc3548">RFC 3548</a>.</p></blockquote>

<p>The <a href="https://www.rfc-editor.org/rfc/rfc3548#section-5">Base32 alphabet</a> is pretty simple. The upper-case letters A - Z, and the numbers 3 - 7.</p>

<p>But that's only half the problem.</p>

<h2 id="how-long-should-the-secret-be"><a href="https://shkspr.mobi/blog/2023/03/how-to-generate-a-base32-totp-secret-string-on-a-mac/#how-long-should-the-secret-be">How long should the secret be?</a></h2>

<p>This is an area where <a href="https://www.rfc-editor.org/rfc/rfc6238">the official spec is silent</a>.  Around the web, you'll find people saying things like:</p>

<blockquote><p>The length in bytes of generated shared secrets. The minimum is 20 (or 160 bits), and the default is 32 (or 256 bits). In most use cases 32 is sufficient. Though some authenticators may have issues with more than the minimum. Our minimum is the recommended value in <a href="https://www.rfc-editor.org/rfc/rfc4226.html">RFC4226</a>, though technically according to the specification 16 bytes (or 128 bits) is the minimum.
<a href="https://www.authelia.com/configuration/second-factor/time-based-one-time-password/#secret_size">Authelia</a></p></blockquote>

<p>Although that's for the <strong>H</strong>OTP algorithm, rather than <strong>T</strong>OTP.</p>

<p>Looking through my 49(!) different TOTP codes, the shared secret ranges from 16 characters to 52 characters. No consistency whatsoever.</p>

<h2 id="the-code"><a href="https://shkspr.mobi/blog/2023/03/how-to-generate-a-base32-totp-secret-string-on-a-mac/#the-code">The Code</a></h2>

<p>Run this on your command line.</p>

<p><code>cat /dev/urandom | LC_ALL=C tr -dc 'A-Z3-7' | fold -w 24 | head -n 1</code></p>

<p>That generates a random-enough<sup id="fnref:random"><a href="https://shkspr.mobi/blog/2023/03/how-to-generate-a-base32-totp-secret-string-on-a-mac/#fn:random" class="footnote-ref" title="This is a shared secret. It doesn't need an infinite supply of high-quality entropy. Any decent login protection service should throttle incorrect attempts long before someone can brute-force it.…" role="doc-noteref">0</a></sup> string using the correct alphabet and truncated to a sensible length.</p>

<p>Let's go through each part of it.</p>

<p><code>cat /dev/urandom</code> spits out random data from your machine. You may wish to use <a href="https://linuxhint.com/dev_random_vs_dev_urandom/"><code>/dev/random</code></a> if you feel like it.</p>

<p><code>LC_ALL=C</code> sets the <a href="https://www.ibm.com/support/pages/what-lcall-variable">Locale to by ANSI bytes</a>.</p>

<p><code>tr</code> is "<a href="https://ss64.com/osx/tr.html">Translate, squeeze, and/or delete characters.</a>".</p>

<p><code>-dc 'A-Z3-7'</code> is <strong>d</strong>elete the <strong>c</strong>omplement (i.e. delete anything which <em>isn't</em> in the following string).</p>

<p><code>fold -w 24</code> is <a href="https://www.unix.com/man-page/osx/1/fold/">wrap the input text</a> with a line length of 24.</p>

<p><code>head -n 1</code> displays <a href="https://www.unix.com/man-page/osx/1/head/">the first line of the file</a>.</p>

<h2 id="next-steps"><a href="https://shkspr.mobi/blog/2023/03/how-to-generate-a-base32-totp-secret-string-on-a-mac/#next-steps">Next Steps</a></h2>

<p>Now... How do I locally generate a QR code without anything else being installed...?</p>

<div id="footnotes" role="doc-endnotes">
<hr aria-label="Footnotes">
<ol start="0">

<li id="fn:random">
<p>This is a shared secret. It doesn't <em>need</em> an infinite supply of high-quality entropy. Any decent login protection service should throttle incorrect attempts long before someone can brute-force it. Remember, TOTP codes are <em>not</em> random - they're deterministic product of the secret. Your adversary isn't someone who can crack your secure vault - it's someone who already has your username as password, but doesn't have your token generating device.&nbsp;<a href="https://shkspr.mobi/blog/2023/03/how-to-generate-a-base32-totp-secret-string-on-a-mac/#fnref:random" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

</ol>
</div>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=45094&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2023/03/how-to-generate-a-base32-totp-secret-string-on-a-mac/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Things I can't do on MacOS which I can do on Ubuntu]]></title>
		<link>https://shkspr.mobi/blog/2020/04/things-i-cant-do-on-macos-which-i-can-do-on-ubuntu/</link>
					<comments>https://shkspr.mobi/blog/2020/04/things-i-cant-do-on-macos-which-i-can-do-on-ubuntu/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Sun, 26 Apr 2020 11:14:04 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[rant]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=34793</guid>

					<description><![CDATA[I&#039;ve never &#34;got&#34; the appeal of a Mac. But I have to use one for work.  Here&#039;s a partial list of everything I cannot do on a Mac, but I can do on Ubuntu.  These are all objective facts. These are things which either are impossible, or require adding unsupported 3rd party software - sometimes at a cost.   Resize the system font   I find the menu bar at the top too small. The only way to do this on…]]></description>
										<content:encoded><![CDATA[<p>I've never "got" the appeal of a Mac. But I have to use one for work.</p>

<p>Here's a partial list of everything I <em>cannot</em> do on a Mac, but I <em>can</em> do on Ubuntu.</p>

<p>These are all objective facts. These are things which either are impossible, or require adding unsupported 3rd party software - sometimes at a cost.</p>

<ul>
<li>Resize the system font

<ul>
<li>I find the menu bar at the top too small. The only way to do this on MacOS is to lower the resolution of the entire screen!</li>
</ul></li>
<li>Change the system font

<ul>
<li>I know you like <del>Helvetica</del> San Francisco - but I find it a bit too thin to read.</li>
</ul></li>
<li>Focus Follow Mouse

<ul>
<li>I have multiple screens and multiple windows. I want to be able to hover over a new one and start interacting with it without clicking.</li>
</ul></li>
<li>Change my mouse button order

<ul>
<li>On Linux, this is a <a href="https://shkspr.mobi/blog/2011/06/review-evoluent-vertical-mouse-4-and-how-to-make-it-work-in-ubuntu/">complex command-line incantation</a>. On MacOS it is impossible. I use a vertical mouse and use my thumb to click. RSI FTW!</li>
</ul></li>
<li>Read files from MTP devices

<ul>
<li>If I stick a USB cable between my phone and Linux laptop, I can see the Android files on my laptop. I can open them, move them around, etc. On a Mac I need to install some shonky 3rd party software which rarely works.</li>
</ul></li>
<li>Always on top windows

<ul>
<li>Sometimes I want to keep the calculator on screen while I type an email. Is that too much to ask?</li>
</ul></li>
<li>No way to remove UI elements.

<ul>
<li>I don't want a notification icon in the top right of my screen. I prefer having the clock on the left. Trivial in Linux, static in MacOS.</li>
</ul></li>
<li>Window snapping

<ul>
<li>On Ubuntu, I drag a window to the side or to a corner, and it snaps into position. Vital when using multiple windows at once. On Mac there's a <a href="https://support.apple.com/en-gb/HT204948">half-hearted splitscreen view</a> which only supports horizontal splitting. Useless on a vertical monitor.</li>
</ul></li>
<li>See tooltips

<ul>
<li><a href="https://shkspr.mobi/blog/2020/04/accessibility-of-macos-large-cursor-hides-tooltips/">I can't see them on Mac when I have a larger cursor</a>. Weird!</li>
</ul></li>
<li>Mount an SSH or NFS drive

<ul>
<li>In Ubuntu, I get a nice little GUI for picking network shares. Impossible on Mac.</li>
</ul></li>
<li>Wobbly Windows!

<ul>
<li>Seriously MacOS. Where's the fun?</li>
</ul></li>
</ul>

<p>I know you're going to be tempted to reply with "<a href="https://knowyourmeme.com/memes/events/iphone-4-death-grip">you're using it wrong</a>" - but I'm not. This is how I like to use my computer. And it is clear that the MacBook isn't my computer - it is Apple's. 
(OK, OK! It belongs to my employer!)</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=34793&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2020/04/things-i-cant-do-on-macos-which-i-can-do-on-ubuntu/feed/</wfw:commentRss>
			<slash:comments>35</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Accessibility of macOS - large cursor hides tooltips]]></title>
		<link>https://shkspr.mobi/blog/2020/04/accessibility-of-macos-large-cursor-hides-tooltips/</link>
					<comments>https://shkspr.mobi/blog/2020/04/accessibility-of-macos-large-cursor-hides-tooltips/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Thu, 23 Apr 2020 11:07:57 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[a11y]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[usability]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=34771</guid>

					<description><![CDATA[Apple&#039;s attitude to usability is... complex. The general attitude of &#34;you&#039;re holding it wrong&#34; seems to be prevalent across all their products.  I like having a large mouse cursor. I find it easier to see on my large monitor, especially when sat at a safe distance.  But, if I use a large cursor - I can&#039;t see the tool-tips underneath it.  Annoyingly, Apple don&#039;t include the larger cursor sizes…]]></description>
										<content:encoded><![CDATA[<p>Apple's attitude to usability is... complex. The general attitude of "<a href="https://knowyourmeme.com/memes/events/iphone-4-death-grip">you're holding it wrong</a>" seems to be prevalent across all their products.</p>

<p>I like having a large mouse cursor. I find it easier to see on <a href="https://shkspr.mobi/blog/2020/04/review-iiyama-prolite-b2482hs-b1-24-vertical-monitor/">my large monitor</a>, especially when sat at a safe distance.  But, if I use a large cursor - I can't see the tool-tips underneath it.</p>

<p>Annoyingly, Apple don't include the larger cursor sizes when taking a screenshot. So you get the joy of me pointing a camera at my screen like some kind of troglodyte sharing memes on your neighbourhood's Facebook group.</p>

<h2 id="broken-behaviour"><a href="https://shkspr.mobi/blog/2020/04/accessibility-of-macos-large-cursor-hides-tooltips/#broken-behaviour">Broken Behaviour</a></h2>

<p>What does this tool-tip say?</p>

<p><img src="https://shkspr.mobi/blog/wp-content/uploads/2020/04/Cursor-obscuring-tool-tip.jpg" alt="Cursor obscuring tool tip." width="512" height="208" class="aligncenter size-full wp-image-34774">
That's from "Finder" the default Mac file system app.</p>

<h2 id="expected-behaviour"><a href="https://shkspr.mobi/blog/2020/04/accessibility-of-macos-large-cursor-hides-tooltips/#expected-behaviour">Expected Behaviour</a></h2>

<p>With the "normal" size icon, I can see what the text says.
<img src="https://shkspr.mobi/blog/wp-content/uploads/2020/04/Tool-Tip-visible.jpg" alt="Tool Tip visible." width="512" height="208" class="aligncenter size-full wp-image-34773"></p>

<h2 id="usability-pervasiveness"><a href="https://shkspr.mobi/blog/2020/04/accessibility-of-macos-large-cursor-hides-tooltips/#usability-pervasiveness">Usability pervasiveness</a></h2>

<p>OK, it's impossible to test <em>every</em> combination that a user might choose. But it really feels like bits of MacOS are hostile to accessibility changes.</p>

<p>It is impossible to change the system font size. That top menu is fixed at a tiny size. If you want a more readable font - tough.</p>

<p>Apple knows best.</p>

<h2 id="tool-tip-size"><a href="https://shkspr.mobi/blog/2020/04/accessibility-of-macos-large-cursor-hides-tooltips/#tool-tip-size">Tool tip size</a></h2>

<p>You <em>can</em> increase the font size of tool-tips with <a href="https://web.archive.org/web/20200513075433/http://hints.macworld.com/article.php?story=20061107125819464">this obscure command-line incantation</a>:</p>

<pre><code class="language-_">defaults write -g NSToolTipsFontSize -int 20
</code></pre>

<p>Restart the app and you'll get a larger font!</p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2020/04/Large-text-obscured-by-large-cursor.jpg" alt="Large text obscured by large cursor." width="512" height="208" class="aligncenter size-full wp-image-34791">

<p>Which is still obscured by the cursor.</p>

<h2 id="report-this-bug"><a href="https://shkspr.mobi/blog/2020/04/accessibility-of-macos-large-cursor-hides-tooltips/#report-this-bug">Report this bug</a></h2>

<p><a href="https://discussions.apple.com/thread/2554173?page=2">Apple have known about this bug for at least 10 years</a>.</p>

<p>Apple knows best.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=34771&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2020/04/accessibility-of-macos-large-cursor-hides-tooltips/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Ubuntu on a MacBookPro 8,2 running Yosemite]]></title>
		<link>https://shkspr.mobi/blog/2014/11/ubuntu-on-a-macbookpro-82-running-yosemite/</link>
					<comments>https://shkspr.mobi/blog/2014/11/ubuntu-on-a-macbookpro-82-running-yosemite/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Sat, 15 Nov 2014 12:46:10 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[NaBloPoMo]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=19915</guid>

					<description><![CDATA[Being mostly notes to stop me getting frustrated.  Based, in part, from this excellent forum post.  I&#039;ve always run Linux on my Mac Hardware.  I love the physical aspects of the Mac line, but I really can&#039;t be bothered with their Play-doh infested software.  Let&#039;s assume you have a nice, clean, freshly installed OSX 10.10 Yosemite sat on your MacBook Pro.  I&#039;ll also assume that you may…]]></description>
										<content:encoded><![CDATA[<p>Being mostly notes to stop me getting frustrated.</p>

<p>Based, in part, <a href="https://web.archive.org/web/20140701104933/http://ubuntuforums.org/showthread.php?t=2157775">from this excellent forum post</a>.</p>

<p>I've always run Linux on my Mac Hardware.  I love the physical aspects of the Mac line, but I really can't be bothered with their Play-doh infested software.</p>

<p>Let's assume you have a nice, clean, freshly installed OSX 10.10 Yosemite sat on your MacBook Pro.  I'll also assume that you may occasionally want to boot into OSX, so we'll be dual booting with Ubuntu 14.04.</p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2014/11/Ubuntu-MacBook-Pro.jpg" alt="Ubuntu MacBook Pro" width="1024" height="1081" class="aligncenter size-full wp-image-19944">

<h2 id="partition"><a href="https://shkspr.mobi/blog/2014/11/ubuntu-on-a-macbookpro-82-running-yosemite/#partition">Partition</a></h2>

<p>In OSX, open the Disk Utility, select the main disk.  We're going to split this in to two parts.  Up to you how much you want to dedicate to OSX.  Set the 2nd partition to be "Free Space".</p>

<h2 id="refind"><a href="https://shkspr.mobi/blog/2014/11/ubuntu-on-a-macbookpro-82-running-yosemite/#refind">rEFInd</a></h2>

<p>Because Apple is a super-special-snowflake, it's not possible to directly install Ubuntu onto the new partition. We need to first install rEFInd.  There are <a href="http://www.rodsbooks.com/refind/yosemite.html">specific instructions for Yosemite</a>.</p>

<ol>
    <li>Download rEFInd.</li>
    <li>Extract it onto your Mac.</li>
    <li>Open a Terminal and navigate to the directory.</li>
    <li>Run this command <pre>sudo ./install.sh --esp</pre></li>
    <li>We need to edit some files. Still in the Terminal <pre>mkdir /Volumes/esp</pre> then <pre>sudo mount -t msdos /dev/disk0s1 /Volumes/esp</pre></li>
    <li>Edit the file "/Volumes/esp/EFI/refind/refind.conf". Change the line <pre>#dont_scan_volumes</pre> to <pre>dont_scan_volumes foo,bar</pre></li>
    <li>Save the file. When you reboot, rEFInd should ask you which OS you want to boot to.</li>
</ol>

<h2 id="get-ubuntu"><a href="https://shkspr.mobi/blog/2014/11/ubuntu-on-a-macbookpro-82-running-yosemite/#get-ubuntu">Get Ubuntu</a></h2>

<p>Probably the easiest bit! <a href="http://www.ubuntu.com/download/desktop">Download the 64 bit version of Ubuntu</a>.  I used another Ubuntu machine to create the Boot Disk on a USB stick.</p>

<h2 id="install-ubuntu"><a href="https://shkspr.mobi/blog/2014/11/ubuntu-on-a-macbookpro-82-running-yosemite/#install-ubuntu">Install Ubuntu</a></h2>

<p>Turn your MacBook off, insert the USB drive, turn the device on.  All being well, rEFInd will give you a choice of devices to boot into.  You <em>probably</em> want the one which says something like</p>

<pre>/USB/EFI/grub64</pre>

<p>You should see a grub style boot screen. Use the cursor keys to move down to "Install Ubuntu". <strong>Do NOT press enter!</strong> Press "e" to edit the boot options.</p>

<p>If you don't do this - your screen will be blank. And a black screen will make you sad.</p>

<p>Remove the words</p>

<pre>quiet nosplash</pre>

<p>and replace them with</p>

<pre>nomodeset</pre>

<p>.  Then press the "F10" key to boot.</p>

<p>You'll be taken through the normal Ubuntu installation screen. It's pretty much just clicking "Next" until it is installed.</p>

<h2 id="partitions"><a href="https://shkspr.mobi/blog/2014/11/ubuntu-on-a-macbookpro-82-running-yosemite/#partitions">Partitions</a></h2>

<p>...With the exception of setting up the partitions!</p>

<ul>
    <li>Create a 130MB empty partion. Macs get sad if OSX is bundled up next to a proper OS.</li>
    <li>Create a 512MB partition and assign it to "/boot"</li>
    <li>At the end of the free space, create a "Swap" parition. Personally, I use as much swap as there is RAM.</li>
    <li>With the remaining free space, create a partition and assign it to "/".</li>
    <li>Which device to you want to boot from? I chose the partition assigned to "/boot" - that way you go straight into Ubuntu when you start the machine.  If you ever need to get into OSX, hold down "alt" while turning the machine on.</li>
</ul>

<p>Keep clicking next!  Eventually Ubuntu will be installed and you can reboot!</p>

<h2 id="setting-up-video"><a href="https://shkspr.mobi/blog/2014/11/ubuntu-on-a-macbookpro-82-running-yosemite/#setting-up-video">Setting Up Video</a></h2>

<p>When the grub screen comes up, again you'll need to hit "e" to edit the default boot options.</p>

<p>Scroll down to "load_video" and add these lines below it.  I don't know what they mean - <a href="https://help.ubuntu.com/community/MacBookPro8-2/Raring">it's just magic</a>.</p>

<pre> outb 0x728 1
 outb 0x710 2
 outb 0x740 2
 outb 0x750 0
</pre>

<p>That should boot you into Linux. Now we need to make those changes permanent.  Open a terminal and run</p>

<pre>sudo nano /etc/grub.d/10_linux</pre>

<p>Press CTRL+W to find the line containing "gzio".</p>

<p>Add these lines before it, so the new section looks like</p>

<pre>echo "    outb 0x728 1" | sed "s/^/$submenu_indentation/"
echo "    outb 0x710 2" | sed "s/^/$submenu_indentation/"
echo "    outb 0x740 2" | sed "s/^/$submenu_indentation/"
echo "    outb 0x750 0" | sed "s/^/$submenu_indentation/"
echo "    insmod gzio" | sed "s/^/$submenu_indentation/"
</pre>

<p>To apply these changes, run the following commands.</p>

<pre>sudo update-grub
sudo apt-get update
sudo apt-get dist-upgrade
</pre>

<h2 id="fans"><a href="https://shkspr.mobi/blog/2014/11/ubuntu-on-a-macbookpro-82-running-yosemite/#fans">Fans</a></h2>

<p>For better fan performance...</p>

<pre>sudo apt-get install lm-sensors
sudo sensors-detect</pre>

<p>Answer yes to all questions. Then:</p>

<pre>sudo apt-get install macfanctld</pre>

<p>Reboot and enjoy Ubuntu!  Everything seems to "just work" - although I'll write another blog post explaining how I've customised it.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=19915&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2014/11/ubuntu-on-a-macbookpro-82-running-yosemite/feed/</wfw:commentRss>
			<slash:comments>13</slash:comments>
		
		
			</item>
	</channel>
</rss>
