<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>SudoServers (Posts about macOS)</title><link>https://sudoservers.com/</link><description></description><atom:link href="https://sudoservers.com/categories/macos.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2017 &lt;a href="mailto:willdeberry@gmail.com"&gt;Will DeBerry&lt;/a&gt; </copyright><lastBuildDate>Tue, 08 Aug 2017 00:48:36 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>From macOS to Linux</title><link>https://sudoservers.com/posts/from-macos-to-linux/</link><dc:creator>Will DeBerry</dc:creator><description>&lt;div&gt;&lt;p&gt;So I finally got tired of not having a linux desktop environment to play around with that I had to take the next step. Granted, I do have full Ubuntu servers up and running, but this isn't good enough when you want to distro hop and test new software such as &lt;tt class="docutils literal"&gt;libinput&lt;/tt&gt; or HiDPI. So like I said, this finally got me to take the plunge. I had to figure out how to dual boot linux on my 2015 mbp 11,5 without destroying any of the macOS data.&lt;/p&gt;
&lt;table class="docutils field-list" frame="void" rules="none"&gt;
&lt;col class="field-name"&gt;
&lt;col class="field-body"&gt;
&lt;tbody valign="top"&gt;
&lt;tr class="field"&gt;&lt;th class="field-name"&gt;Step 1:&lt;/th&gt;&lt;td class="field-body"&gt;Resize the macOS partition&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Verify that FileVault is turned off. If not, you will need to disable before you are allowed to resize the macOS partition. Once off, reboot to apply.&lt;/p&gt;
&lt;img alt="/images/filevault.png" src="https://sudoservers.com/images/filevault.png"&gt;
&lt;p&gt;Onec back up and running, launch &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;disk-utility&lt;/span&gt;&lt;/tt&gt;. On the left hand side select the macOS hard drive and choose First Aid. This should present you with a pie chart on which there is a dial you can drag to split up space between partitions. Choose your desired split and then apply.&lt;/p&gt;
&lt;img alt="/images/disk_util.png" src="https://sudoservers.com/images/disk_util.png"&gt;
&lt;img alt="/images/partition.png" src="https://sudoservers.com/images/partition.png"&gt;
&lt;p&gt;When resizing is complete, feel free to turn FileVault back on. The rest of the process isn't affected by it.&lt;/p&gt;
&lt;table class="docutils field-list" frame="void" rules="none"&gt;
&lt;col class="field-name"&gt;
&lt;col class="field-body"&gt;
&lt;tbody valign="top"&gt;
&lt;tr class="field"&gt;&lt;th class="field-name"&gt;Step 2:&lt;/th&gt;&lt;td class="field-body"&gt;Download desired Linux distro&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;In my case, I wanted Arch but didn't want to go through with the hassel of dealing with manually setting up and installing vanilla Arch, so I chose &lt;a class="reference external" href="https://antergos.com/try-it/"&gt;Antergos&lt;/a&gt;. At this point, just take the iso you download from your specific distro and create a bootable usb stick to install. In order to acheive this, I just used the &lt;tt class="docutils literal"&gt;dd&lt;/tt&gt; command. &lt;code&gt;sudo dd bs=4096000 if=/Users/wdeberry/Downloads/antergos-17.6-x86_64.iso of=/dev/disk2&lt;/code&gt;; just make sure to update for your iso and disk use case.&lt;/p&gt;
&lt;table class="docutils field-list" frame="void" rules="none"&gt;
&lt;col class="field-name"&gt;
&lt;col class="field-body"&gt;
&lt;tbody valign="top"&gt;
&lt;tr class="field"&gt;&lt;th class="field-name"&gt;Step 3:&lt;/th&gt;&lt;td class="field-body"&gt;Boot and install&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Using the newly crafted usb stick, reboot your macOS and then hold the left alt/option button during next boot. You should see a second boot option next to macOS. Choose this and follow the instructions for your chosen distro to install. I won't use this time to go through specifics to get linux installed.&lt;/p&gt;
&lt;table class="docutils field-list" frame="void" rules="none"&gt;
&lt;col class="field-name"&gt;
&lt;col class="field-body"&gt;
&lt;tbody valign="top"&gt;
&lt;tr class="field"&gt;&lt;th class="field-name"&gt;Step 4:&lt;/th&gt;&lt;td class="field-body"&gt;Time to customize and have fun :)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;All major features are working out of the box for me, but I mainly had to fight the HiDPI support and touchpad configuration to get things working the way I wanted.&lt;/p&gt;
&lt;p&gt;The issues with HiDPI I ran into were things like the mouse and the top title bar of gnome being extremely huge. TO fix this, after a couple days of fighting with it via &lt;tt class="docutils literal"&gt;gnome tweak tool&lt;/tt&gt;, I found the command &lt;code&gt;gsettings set org.gnome.desktop.interface scaling-factor 1&lt;/code&gt;. This is the one command that finally put all UI elements to the same size. Feel free to change 1 to whatever scale you are wanting. Also, if you are looking for fractional scaling, you will need to combine gnome scaling and X11 zooming in order to achieve this.&lt;/p&gt;
&lt;p&gt;For the touchpad to work more inline to what I have become used to in macOS, I had to adjust some config for &lt;tt class="docutils literal"&gt;libinput&lt;/tt&gt;. Below is what I ended up using:&lt;/p&gt;
&lt;pre class="code text"&gt;&lt;a name="rest_code_55110586de54489a86930d9cfb0c5024-1"&gt;&lt;/a&gt;Section "InputClass"
&lt;a name="rest_code_55110586de54489a86930d9cfb0c5024-2"&gt;&lt;/a&gt;    Identifier "libinput touchpad catchall"
&lt;a name="rest_code_55110586de54489a86930d9cfb0c5024-3"&gt;&lt;/a&gt;    MatchIsTouchpad "on"
&lt;a name="rest_code_55110586de54489a86930d9cfb0c5024-4"&gt;&lt;/a&gt;    MatchDevicePath "/dev/input/event*"
&lt;a name="rest_code_55110586de54489a86930d9cfb0c5024-5"&gt;&lt;/a&gt;    Driver "libinput"
&lt;a name="rest_code_55110586de54489a86930d9cfb0c5024-6"&gt;&lt;/a&gt;    Option "NaturalScrolling" "true"
&lt;a name="rest_code_55110586de54489a86930d9cfb0c5024-7"&gt;&lt;/a&gt;EndSection
&lt;/pre&gt;&lt;p&gt;Give it one more reboot or logout and back in to get everything back in sync and the rest is history. For more information about tweaking and fine tuning, definitely look towards the arch &lt;a class="reference external" href="https://wiki.archlinux.org/index.php/MacBookPro11,x"&gt;wiki&lt;/a&gt; for mbp.&lt;/p&gt;&lt;/div&gt;</description><category>linux</category><category>macOS</category><guid>https://sudoservers.com/posts/from-macos-to-linux/</guid><pubDate>Fri, 23 Jun 2017 02:32:42 GMT</pubDate></item><item><title>A Crazy Attempt at KDE Plasma on macOS</title><link>https://sudoservers.com/posts/a-crazy-attempt-at-kde-plasma-on-macos/</link><dc:creator>Will DeBerry</dc:creator><description>&lt;div&gt;&lt;p&gt;So I started an adventure to see what it would take and see if even possible to get some kind of linux desktop environment running successfully on macOS. Let it be known while this was fun, this definitely did not work nor was practical.&lt;/p&gt;
&lt;p&gt;The first step was to download and get docker setup on my mac. This all started because I heard about a simple program called kitematic on a linux podcast last week. Kitematic is a simple GUI wrapper around docker hub and docker in general and allows you to manage things without being intimidated. You can download this great tool via &lt;a class="reference external" href="https://kitematic.com/"&gt;https://kitematic.com/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Once you have that installed, I downloaded the kdeneon sponsored &lt;tt class="docutils literal"&gt;all&lt;/tt&gt; image. This quickly led to the snowball that would eventually takeover this side project. I found out real quick that it was having a hard time finding the &lt;code&gt;DISPLAY&lt;/code&gt; variable&lt;/p&gt;
&lt;img alt="/images/display.png" src="https://sudoservers.com/images/display.png"&gt;
&lt;p&gt;This was resolved via installing xquartz for macOS. You can get this via &lt;a class="reference external" href="https://www.xquartz.org/"&gt;https://www.xquartz.org/&lt;/a&gt;. The second step was to run the command &lt;code&gt;socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"&lt;/code&gt; in a separate terminal. Once you have this running in a terminal, you need to set the &lt;code&gt;DISPLAY&lt;/code&gt; variable to following in Kitematic: &lt;code&gt;ipaddress:0&lt;/code&gt; (replacing ipaddress with you address). At this point the docker image should start for you, and this is where the layers of crazy start coming out.&lt;/p&gt;
&lt;p&gt;You will notice that once you fix the &lt;code&gt;DISPLAY&lt;/code&gt; variable issue, you now run into openGL issues. You need to edit the file &lt;code&gt;/opt/X11/bin/startx&lt;/code&gt; and look for the options &lt;code&gt;defaultserverargs&lt;/code&gt;. Add &lt;code&gt;+iglx&lt;/code&gt; to those options using you favorite editor and save. Log out and back in to restart xquartz and give it another try.&lt;/p&gt;
&lt;p&gt;At this point, you start seeing some real craziness, red screens and all.&lt;/p&gt;
&lt;img alt="/images/red.png" src="https://sudoservers.com/images/red.png"&gt;
&lt;p&gt;This is where I got stuck. Apparently xqaurtz is stuck to openGL 2.1 where KDE and more modern X11 programs expect you to be able to produce openGL 3+.&lt;/p&gt;
&lt;p&gt;At this point, I wouldn't say I have given up, but defiitely was a fun experiement and provided great insight. We shall see where this leads me.&lt;/p&gt;&lt;/div&gt;</description><category>docker</category><category>kde</category><category>macOS</category><category>tech</category><guid>https://sudoservers.com/posts/a-crazy-attempt-at-kde-plasma-on-macos/</guid><pubDate>Sun, 04 Jun 2017 00:48:00 GMT</pubDate></item></channel></rss>