<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Macos on Shane Cunningham</title><link>https://cunninghamshane.com/tags/macos/</link><description>Recent content in Macos on Shane Cunningham</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 15 Dec 2012 07:29:30 +0000</lastBuildDate><atom:link href="https://cunninghamshane.com/tags/macos/index.xml" rel="self" type="application/rss+xml"/><item><title>Fedora 17 on a 2011 13" MacBook Air</title><link>https://cunninghamshane.com/posts/fedora-17-on-a-2011-13-macbook-air/</link><pubDate>Sat, 15 Dec 2012 07:29:30 +0000</pubDate><guid>https://cunninghamshane.com/posts/fedora-17-on-a-2011-13-macbook-air/</guid><description>&lt;p&gt;Decided to throw Fedora 17 on my MacBook Air to see how well it works. Actually, works pretty damn well. Wireless, backlight keyboard and trackpad all work with no modifications. I still have a lot to configure, but this seems like a very nice start to something I thought would have a lot more problems.&lt;/p&gt;&#10;&lt;p&gt;Installed &lt;a href="http://refit.sourceforge.net/"&gt;rEFIt&lt;/a&gt; on my Air. Made a &lt;a href="https://cunninghamshane.com/posts/convert-iso-to-img-and-make-bootable-usb/"&gt;USB bootable drive&lt;/a&gt; of &lt;a href="http://download.fedoraproject.org/pub/fedora/linux/releases/17/Fedora/x86_64/iso/Fedora-17-x86_64-DVD.iso"&gt;Fedora 17 ISO 64-bit&lt;/a&gt;. Rebooted and held down Option key, selected Fedora media. Installed Fedora using the entire disk, I did not want to dual boot, wanted only Fedora. After install Fedora reboots the system, my system hung, but I took out the USB stick, powered off and powered back on holding the Option key. Fedora was my only bootable device so I selected that and it booted straight into Fedora 17.&lt;/p&gt;</description></item><item><title>Convert .iso to .img and make bootable USB</title><link>https://cunninghamshane.com/posts/convert-iso-to-img-and-make-bootable-usb/</link><pubDate>Fri, 12 Oct 2012 18:35:01 +0000</pubDate><guid>https://cunninghamshane.com/posts/convert-iso-to-img-and-make-bootable-usb/</guid><description>&lt;p&gt;Note so I don&amp;rsquo;t have to Google this.&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;sh&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;diskutil list&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;Find USB drive and unmount it, &lt;code&gt;diskutil unmountDisk /dev/disk1&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;Convert .iso to .img. This will put a .dmg extension on the .img file, but you can leave it like that and still make a bootable USB drive with it.&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;sh&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;hdiutil convert -format UDRW -o xenserver61.img /Downloads/XenServer-6.1-install-cd.iso&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;Make bootable USB drive&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;sh&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;dd &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;xenserver61.img.dmg &lt;span class="nv"&gt;of&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/dev/rdisk1 &lt;span class="nv"&gt;bs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1m&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;</description></item><item><title>Make a bootable USB drive from .img in Mac OS X</title><link>https://cunninghamshane.com/posts/make-a-bootable-usb-drive-from-img-in-mac-os-x/</link><pubDate>Tue, 07 Feb 2012 10:35:32 +0000</pubDate><guid>https://cunninghamshane.com/posts/make-a-bootable-usb-drive-from-img-in-mac-os-x/</guid><description>&lt;p&gt;I needed to make a USB bootable drive of pfSense and being an OS X newb, had to Google it. Here&amp;rsquo;s what I found. Run these commands from Terminal.&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;sh&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;diskutil list&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;Find your USB drive in the list, mine was &lt;code&gt;/dev/disk2&lt;/code&gt;. Unmount the drive if it is currently mounted, &lt;code&gt;umount /dev/disk2&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;Now, there&amp;rsquo;s two commands you can run, dd with /rdisk2 gave me 15.33 KB/s. dd with just /disk2 only gave me 4.60 KB/s.&lt;/p&gt;</description></item><item><title>TRIM on your non-Apple SSD</title><link>https://cunninghamshane.com/posts/trim-on-your-non-apple-ssd/</link><pubDate>Mon, 23 Jan 2012 20:52:33 +0000</pubDate><guid>https://cunninghamshane.com/posts/trim-on-your-non-apple-ssd/</guid><description>&lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/TRIM"&gt;TRIM&lt;/a&gt; is only officially supported by Apple for the SSDs that they install on their Mac line. If you install your own SSD you can still enable TRIM with Terminal and some commands or use a program called &lt;a href="http://www.groths.org/"&gt;TRIM Enabler&lt;/a&gt;. I used beta 4 version of the program on my Intel X25-M G2 160GB SSD and it worked perfectly. The author just released version 2.0. Below is a short write up from Anandtech.&lt;/p&gt;</description></item><item><title>Delete blank lines in TextMate</title><link>https://cunninghamshane.com/posts/delete-blank-lines-in-textmate/</link><pubDate>Mon, 10 Oct 2011 15:15:00 +0000</pubDate><guid>https://cunninghamshane.com/posts/delete-blank-lines-in-textmate/</guid><description>&lt;p&gt;Switching to Mac OS X I have noticed opening text files that were created in Windows will add spaces after every line. In TextMate you can create a macro to get rid of the extra lines very easily. In the Bundle Editor add the following command and tie it to a key combination.&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;sh&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sed /^$/d&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;</description></item><item><title>Getting OS X Lion working with network share</title><link>https://cunninghamshane.com/posts/getting-os-x-lion-working-with-network-share/</link><pubDate>Sat, 08 Oct 2011 08:44:00 +0000</pubDate><guid>https://cunninghamshane.com/posts/getting-os-x-lion-working-with-network-share/</guid><description>&lt;p&gt;Mac OS X Lion broke the ability for Time Machine to backup to a network share over Samba. I usually backup everything to a Windows Server 2008 R2 computer running headless in my closet, but OS X Lion will not connect any longer due to AFP 3.3 being used. I still haven’t found a way for my iMac to connect directly to the server but I have a workaround that might work for you.&lt;/p&gt;</description></item></channel></rss>