<?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>Some More Bytes &#187; Linux</title>
	<atom:link href="http://somemorebytes.com/wp/index.php/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://somemorebytes.com/wp</link>
	<description>in the binary maze...</description>
	<lastBuildDate>Tue, 22 Mar 2011 19:17:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Snow Leopard and Virtualbox under Linux&#8230;</title>
		<link>http://somemorebytes.com/wp/index.php/2010/06/snow-leopard-and-virtualbox-under-linux/</link>
		<comments>http://somemorebytes.com/wp/index.php/2010/06/snow-leopard-and-virtualbox-under-linux/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 13:01:27 +0000</pubDate>
		<dc:creator>somemorebytes</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OsX]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[iphone sdk]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://somemorebytes.com/wp/?p=540</guid>
		<description><![CDATA[Install Snow Leopard under Linux Virtualbox to use the Iphone SDK.]]></description>
			<content:encoded><![CDATA[<h3>Or &#8220;How to develop for the iPhone under linux&#8221;.</h3>
<p>If you have been looking for imformation about virtualizing LEopard or Snow Leopard, you&#8217;ll probably stumble upon this <a href="http://www.insanelymac.com/forum/index.php?showtopic=207334" target="_blank">two</a> <a href="http://www.taranfx.com/install-snow-leopard-virtualbox" target="_blank">sites</a>, which contain most of the useful information. However, when it comes to Snow Leopard, information is spread across hundreds of posts, and most of it is for MS Windows only.</p>
<p>There&#8217;s another attempt using empire-efi <a href="http://forums.virtualbox.org/viewtopic.php?f=4&amp;t=2076&amp;start=270#p126761" target="_blank">here</a>, which didn&#8217;t worked for me.</p>
<p>I just wrote a guide myself about how to get Snow Leopard working under Ubuntu 9.10 and Virtualbox 3.1.6r59338 and I was about to post it. However, I found another guide, for windows, which will work flawlessly under Linux with some minor tweaks, and has step-by-step screenshots, so I guess there&#8217;s no need to duplicate the content there.</p>
<p>Here&#8217;s exactly what I did to get things working:<br />
<span id="more-540"></span><br />
First you need, a Leopard OsX86 working virtualbox machine. To get Leopard working, download any OsX86 distro and install it following <a href="http://www.takwing.idv.hk/tech/virtual/virutal_leopard/index.html" target="_blank">this guide</a>. I used iDeneb 1.6 and worked fine.</p>
<p>You DO NOT need to patch the VirtualBox files in order to get Leopard working, so just create the VM without applying any patch.</p>
<p>The only difference you&#8217;ll find is that under Linux, the required file to edit will be(assuming you named the virtual machine LeoVM) :<br />
<code>/home/your_user_name/.Virtualbox/Machines/LeoVM/LeoVM.xml</code></p>
<p>Then, there you can add the required line:</p>
<p><code>&lt;ExtraDataItem name="VBoxInternal2/SupportExtHwProfile" value="on"/&gt;</code></p>
<p>The Leopard installation should go without a problem, and boot fine. Everything you need to know is on the guide I linked before.</p>
<p>Now the tricky part. Install Snow Leopard.</p>
<p>You should use <a href="http://www.takwing.idv.hk/tech/virtual/virtual_snowl/index.html" target="_blank">this guide</a>. It is really detailed and easy to follow. I used a retail SnowLeopard 10.6.3 image, and worked perfect for me. However, since the guide is for windows, you&#8217;ll need to take into account the following changes:</p>
<p>When you create the machine for Snow Leopard (page 13 of the guide), you need to edit the file (assuming you named the VM SnowLeoVM) :</p>
<p><code>/home/your_user_name/.Virtualbox/Machines/SnowLeoVM/SnowLeoVM.xml</code></p>
<p>and add ONLY the following lines:</p>
<p><code>&lt;ExtraDataItem name="VBoxInternal2/Devices/e1000f/0/Trusted" value="integer:1"/&gt;<br />
&lt;ExtraDataItem name="VBoxInternal2/SupportExtHwProfile" value="on"/&gt;</code></p>
<p>Now we need to patch the Virtual Machine files. The thing is that we need support for SS3 instructions, and ACPI v.14 which is not supported by default in Virtualbox 3.1.x. If you&#8217;re using the OSE edition, you can patch the source and recompile the whole thing. However, if you&#8217;re using the standard edition, you&#8217;ll need to binary-patch the files.</p>
<p>You can find more information about the patches in the comments section in this <a href="http://www.taranfx.com/install-snow-leopard-virtualbox" target="_blank">post</a>. SOME of the info is not correct, and some other is incomplete, so be careful and read everything before doing any patch. I am using the GHex to patch them.</p>
<p>The files to patch are:<br />
<code>/usr/lib/virtualbox/VBoxDD2.so<br />
Every occurence of : 11 00 05 00<br />
Changed for : 14 00 05 00<br />
</code><br />
<code>/usr/lib/virtualbox/VBoxDD2GC.gc<br />
Every occurence of : 11 00 05 00<br />
Changed for : 14 00 05 00<br />
</code><br />
<code>/usr/lib/virtualbox/VBoxDD2R0.r0<br />
Every occurence of : 11 00 05 00<br />
Changed for : 14 00 05 00<br />
</code><br />
<code>/usr/lib/virtualbox/VBoxVMM.so<br />
Every occurence of: 04 C5 01 00 00 00 31 C9<br />
Changed for: 04 C5 01 02 00 00 31 C9<br />
</code></p>
<p>I am providing the files for <strong>VirtualBox 3.1.6.r59338</strong> <a href="http://somemorebytes.com/wp/wp-content/uploads/2010/06/vb3.1.6_x86_64_patch.tar.gz" target="_blank">HERE</a>. Just run the patch or unpatch scripts to do the job, or open them to take a look at the files that will be copied and do it manually.</p>
<p>And that&#8217;s it.  You should have a Snow Leopard VM working fine. In the guide I provided you have explained how to solve the video resolution problem, which is pretty straightforward.</p>
<p>The network works fine, but you need to set up the static ip address for the interface, and connect/disconnect cable from the Virtualbox menu to get it working. The rest works fine. Of course it will not fly, but it is enough to try the iphone SDK under linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://somemorebytes.com/wp/index.php/2010/06/snow-leopard-and-virtualbox-under-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anatomy of a Null derreference in the Kernel (Linux)</title>
		<link>http://somemorebytes.com/wp/index.php/2010/04/anatomy-of-a-null-derreference-in-the-kernel-linux/</link>
		<comments>http://somemorebytes.com/wp/index.php/2010/04/anatomy-of-a-null-derreference-in-the-kernel-linux/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 11:41:12 +0000</pubDate>
		<dc:creator>somemorebytes</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[derreference]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[null]]></category>
		<category><![CDATA[pointer]]></category>

		<guid isPermaLink="false">http://somemorebytes.com/wp/?p=515</guid>
		<description><![CDATA[Anatomy of a Null derreference in the Kernel (Linux)]]></description>
			<content:encoded><![CDATA[<p>This week KSplice published in his blog the second part of a interesting article, explaining the effect of a dangerus NULL derreference in the Linux Kernel. In the last year many of those holes were fixed in the kernel, so finding a true exploit wouldn&#8217;t be easy. It is still nice to understand how this kind of exploit works.</p>
<p>Here the <a href="http://blog.ksplice.com/2010/03/null-pointers-part-i/" target="_blank">first </a>and <a href="http://blog.ksplice.com/2010/04/exploiting-kernel-null-dereferences/" target="_blank">second </a>parts of the article.</p>
]]></content:encoded>
			<wfw:commentRss>http://somemorebytes.com/wp/index.php/2010/04/anatomy-of-a-null-derreference-in-the-kernel-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create an Ubuntu USB bootable disk from OsX</title>
		<link>http://somemorebytes.com/wp/index.php/2010/01/create-an-ubuntu-usb-bootable-disk-from-osx/</link>
		<comments>http://somemorebytes.com/wp/index.php/2010/01/create-an-ubuntu-usb-bootable-disk-from-osx/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 01:33:52 +0000</pubDate>
		<dc:creator>somemorebytes</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OsX]]></category>

		<guid isPermaLink="false">http://somemorebytes.com/wp/?p=120</guid>
		<description><![CDATA[Create an Ubuntu USB bootable disk from OsX]]></description>
			<content:encoded><![CDATA[<p>I just needed to create an Ubuntu (9.10) USB bootable device from Osx.</p>
<p>First thing was, of course see if the great Unetbootin supported OsX. Not the case.</p>
<p>Well then. I know it can be done with dd. Should I do anything special to do it under OsX?</p>
<p><span id="more-120"></span></p>
<p>Then, a simple google search will drive you to the most copied manual excerpt ever. You will see this steps in a lot of sites:</p>
<ol>
<blockquote>
<li>Download the desired .img file</li>
<li>Open a Terminal (in /Applications/Utilities/)</li>
<li>Run diskutil list to get the current list of devices</li>
<li>Insert your flash media</li>
<li>Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)</li>
<li>Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)</li>
<li>Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.img, /dev/rdiskN is faster than /dev/diskN). If you see the error dd: Invalid number `1m&#8217;, you are using GNU dd. Use the same command but replace bs=1m with bs=1M.</li>
<li>Run diskutil eject /dev/diskN and remove your flash media when the command completes.</li>
<li>Reboot (and boot from the usb device) and enjoy.</li>
</blockquote>
</ol>
<p>And then, if you&#8217;re like me, you will go directly to download the ubuntu image from the ubuntu server to make the process. You will go through these steps and, uh! oh!, surprise! It does not work!.</p>
<p>Well, give it another try. From the beginning again. Nothing. The pc does not boot from this USB drive. What the hell am I doing wrong?</p>
<p>Well, you are downloading an <strong>iso</strong> file, while you should be downloading an <strong>img</strong> file. Ahhh, did you think it was the same?<strong> I did. Three times. I was wrong!</strong></p>
<p>Then you&#8217;ll notice that there are no <strong>img</strong> files available to download. So?. Here it comes. Run as root (sudo -s):</p>
<p><code>hdiutil convert "path/to/the/file.iso" -format UDRW -o "path/to/the/output.dmg"</code></p>
<p>Of course, the first &#8220;path to the&#8230;&#8221; should point to the downloaded iso image, and the second one to the file you want to create as this command&#8217;s output.</p>
<p>Now, do it again from step 2 using the <strong>dmg</strong> file instead of the <strong>iso</strong> one. It will work this time!</p>
]]></content:encoded>
			<wfw:commentRss>http://somemorebytes.com/wp/index.php/2010/01/create-an-ubuntu-usb-bootable-disk-from-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  somemorebytes.com/wp/index.php/tag/linux/feed/ ) in 0.38392 seconds, on Feb 5th, 2012 at 4:24 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 5th, 2012 at 5:24 pm UTC -->
