<?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>Chaos Engine &#187; OS</title>
	<atom:link href="http://dev.modmancer.com/index.php/category/os/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.modmancer.com</link>
	<description>Sometimes I drink to forget.. but then I forget to drink..</description>
	<lastBuildDate>Mon, 06 Feb 2012 16:11:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Resurrect NTFS partition after Win XP reinstall</title>
		<link>http://dev.modmancer.com/index.php/2010/06/09/resurrect-ntfs-partition-after-win-xp-reinstall/</link>
		<comments>http://dev.modmancer.com/index.php/2010/06/09/resurrect-ntfs-partition-after-win-xp-reinstall/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 21:19:23 +0000</pubDate>
		<dc:creator>akiko</dc:creator>
				<category><![CDATA[Hard drive]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[hard disk]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[lost partition]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[reinstallation]]></category>
		<category><![CDATA[resurrect]]></category>
		<category><![CDATA[salvage]]></category>
		<category><![CDATA[testdisk]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://dev.modmancer.com/?p=54</guid>
		<description><![CDATA[The system was missing my partition E, or my Storage partition. It was wiped out. Storage manager denoted it as unallocated space. A quick reboot into Ubuntu ended up with same knowledge: Unallocated space.

No space for panic. Google comes, google helps. I found a marvelous little command line tool which was able to revamp my Storage NTFS partition in about 10 seconds. It's called testdisk.]]></description>
			<content:encoded><![CDATA[<p>Another unpleasant experience with windows last week. (We&#8217;ll just disregard the notorious behaviour of Win installer which eradicates any previously installed foreign OS boot manager.)</p>
<p><span id="more-54"></span>I have Ubuntu 10.04 and WinXP SP3 multiboot. I have 3 partitions:</p>
<p>1) NTFS, WinXP (defunct)<br />
2) ReiserFS (+ extra swap partition) Ubuntu<br />
3) NTFS, Storage (lots of my windows projects stored there)</p>
<p>Few days ago, my WinXP stopped working, no way to boot it, something went so terribly wrong, and from the previous long year experience with windows I could simply sense when the time for total reinstall has come. Since I have started with Ubuntu 9.04 my GRUB was the legacy mode GRUB, so I prepared an Ubuntu 9.04 live cd to be able to reinstall GRUB after installing WinXP, and naturally: I though I was ready for the operation.</p>
<p>I booted from the Windows XP SP3 installation DVD, selected partition C (NTFS) to be reformatted and chosen as destination. Everything went smooth, C was erased, new Windows appeared on it, I rebooted the computer, and was happy to see that everything is there..</p>
<p>Or at least I thought so.</p>
<p>The system was missing my partition E, or my Storage partition. It was wiped out. Storage manager denoted it as unallocated space. A quick reboot into Ubuntu ended up with same knowledge: Unallocated space.</p>
<p>No space for panic. Google comes, google helps. I found a marvelous little command line tool which was able to revamp my Storage NTFS partition in about 10 seconds. It&#8217;s called <strong>testdisk</strong>.</p>
<p>Open your synaptic, type testdisk, install it.</p>
<p>Open terminal, type<br />
&lt;pre&gt;<br />
$ sudo testdisk<br />
&lt;/pre&gt;</p>
<p>1) Now on the first screen select [ Create ] ( Create a new log file ).<br />
2) From listed hard discs select the one that you need to salvage. Then [Proceed].<br />
3) Then [Continue].<br />
4) Then [Intel] &#8211; this works in most cases, but if you have some other exotic partition types, you can tell testdisk which one it is on this screen.<br />
5) Then [Analyse].<br />
6) Then [Quick Search] &#8211; this will do most of the time. But if corruption was more severe, you might need to select another round of &#8216;deeper search&#8217;.<br />
7) On the next screen select Vista [Y/N] &#8211; N, if you used WinXP to create the controversial partition.<br />
8) &#8212; disregard the stupid smiley &#8211;  Now you will see all partitions that testdisk was able to identify. Press Enter (continue).<br />
9) Ok finally &#8211; if you are happy with the results, ie. you see your lost partition in the list, select  [ Write ] and reboot (you will be informed about that on the next screen anyway). But if testdisk wasn&#8217;t able to dig out the lost partition, then select [ Deeper Search ].</p>
<p>It saved my night. And a lot of data. I think this tool exists for windows as well. Check it out, remember it. It will come handy sooner or later!</p>
<p>[EDIT]<br />
Yep, TestDisk runs on several platforms &#8211; check it out:<br />
<a href="http://www.cgsecurity.org/wiki/TestDisk">http://www.cgsecurity.org/wiki/TestDisk</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev.modmancer.com/index.php/2010/06/09/resurrect-ntfs-partition-after-win-xp-reinstall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grep intelligence &#8211; grep lines that DO NOT MATCH an expression</title>
		<link>http://dev.modmancer.com/index.php/2010/05/13/grep-intelligence-grep-lines-that-do-not-match-an-expression/</link>
		<comments>http://dev.modmancer.com/index.php/2010/05/13/grep-intelligence-grep-lines-that-do-not-match-an-expression/#comments</comments>
		<pubDate>Thu, 13 May 2010 11:24:34 +0000</pubDate>
		<dc:creator>akiko</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[regular expression]]></category>
		<category><![CDATA[tail]]></category>

		<guid isPermaLink="false">http://dev.modmancer.com/?p=28</guid>
		<description><![CDATA[I have an apache access log that I need to monitor frequently while users do funny things, but the problem is 99% of the logged calls are some trivial ajax get requests which do stuff, like &#8216;check new messages&#8217; which, when coming in from each user who has opened the page each second, tend to [...]]]></description>
			<content:encoded><![CDATA[<p>I have an apache access log that I need to monitor frequently while users do funny things, but the problem is 99% of the logged calls are some trivial ajax get requests which do stuff, like &#8216;check new messages&#8217; which, when coming in from each user who has opened the page each second, tend to flood my shell.</p>
<p>In order to filter them out I use tail + grep combo:</p>
<pre>tail -f yourapache.log | grep -v ('controller\/check')</pre>
<p>This will effectively filter out all *controller/check* calls.</p>
<p>Flag -v in grep manual says: Output only lines which do NOT match</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.modmancer.com/index.php/2010/05/13/grep-intelligence-grep-lines-that-do-not-match-an-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up AROS in VirtualBox @ Ubuntu</title>
		<link>http://dev.modmancer.com/index.php/2010/04/21/setting-up-aros-in-virtualbox-on-ubuntu/</link>
		<comments>http://dev.modmancer.com/index.php/2010/04/21/setting-up-aros-in-virtualbox-on-ubuntu/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 23:40:06 +0000</pubDate>
		<dc:creator>akiko</dc:creator>
				<category><![CDATA[Amiga]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Aros]]></category>
		<category><![CDATA[Ikaros]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Network in Aros]]></category>
		<category><![CDATA[Networking in VirtualBox]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://dev.modmancer.com/?p=4</guid>
		<description><![CDATA[Yesterday I finally layed my hands on Aros. It has been talked about quite a lot in AMIGA waters, and me, being a sincere AMIGA fan, decided to finally install the latest version in Virtual Box and give it a try. Why? Well, I have Ubuntu 9.10, and E-UAE is nowhere near WinUAE, so alternatives were quite welcome.]]></description>
			<content:encoded><![CDATA[<h2>Intro</h2>
<p>Yesterday I finally layed my hands on Aros. It has been talked about quite a lot in AMIGA waters, and me, being an old AMIGA both user and fan, decided to finally install the latest version in Virtual Box and give it a try. Why? Well, I have Ubuntu 9.10, and E-UAE is nowhere near WinUAE, so working in Workbench 3.x in Ubuntu is not a matter of comfort. Alternatives were quite welcome, and AROS popped up dozen of times before and I thought: why not test it. (Sadly, as I write this, my still functional Amiga 1200 is peacefully sitting in a cellar some 1k miles away, waiting for the first friendly person to bring it over to me.)</p>
<p>This article will guide you through a few show stoppers you might encounter while trying to install Aros yourself.</p>
<p><span id="more-4"></span></p>
<h2>Setting Up AROS in Virtual Box</h2>
<p>To set up AROS in a virtual environment, I used the &#8216;almost&#8217; latest version of VirtualBox 3.1.0, and then jumped to AROS official homepage to grab the latest copy of the OS: http://aros.sourceforge.net/download.php</p>
<p>Naturally at the first glance I opted for  VE edition, which was allegedly created to ease in the set up by offering an already pre-set virtual environment, specially created for VirtualBox. After downloading the file, and starting it off in VBox, I almost immediately encountered some obscure error dialog stating something about missing file system, or partition, or .. sorry I really forgot what it was about. I didn&#8217;t lose any time there, I immediately went back to the download page and grabbed the Live edition.</p>
<p>It&#8217;s an self extracting .exe file.</p>
<p>No problem, we have Wine. Just double click the .exe file, when prompted for folder to extract the archive to, select something like ~/temp. After it&#8217;s done fire off Virtual Box, create a new virtual machine, give it some space to breathe, lets say 2GB and 256 MB RAM, mount the freshly extracted .iso, and boot AROS from the mounted CD.</p>
<p>On the workbench screen , double click AROS live, and then Tools drawer. In tools drawer among tons of interesting things (which you shouldn&#8217;t be interested in at the moment) you will find an icon labeled Install AROS. On the first screen leave everything as is, say ok, AROS setup will initialize the dh0 partition as SFS (default file system), and prompt you to reboot. Do it.</p>
<p>Now, again, go to Tools -&gt; Install AROS, and move on, on the second screen don&#8217;t check Work parition (dh1) since you don&#8217;t have it ready, and it will only confuse you. The rest is pretty straight forward, whatever you choose, you will get AROS installed, one way or another.</p>
<p>After rebooting, you will land in your freshly installed AROS.</p>
<h2>Network Setup</h2>
<p>First time you start AROS, you will be prompted with configuration screen. Most of the things are self explanatory, but one of them is not &#8211; namely the Networking screen. Here is how to set up Network connection in AROS / VirtualBox.</p>
<ul>
<li>Change IP Mode to Manual</li>
<li>Type your Guest OS IP (e.g. if your Host OS is 192.168.1.1, let your Guest OS [AROS] be 192.168.1.200)</li>
<li>Mask should remain 255.255.255.0</li>
<li>Gate should be either your Host IP (e.g. 192.168.1.1 &#8211; see above) or if you have an ADSL Router which is autonomously connected to the ISP &#8211; then it&#8217;s IP address</li>
<li>Primary and Secondary DNS&#8217;s are acquired from your ISP automatically. If you don&#8217;t know them by heart, run terminal in ubuntu and type less /etc/resolv.conf</li>
<li>that will most probably give you something like:</li>
</ul>
<pre>nameserver 85.222.160.162
nameserver 213.244.255.2
# Generated by NetworkManager</pre>
<ul>
<li>So back in the AROS Network Preferences popup type these two nameserver addresses (primary &amp; secondary).</li>
<li>Autostart should be checked.</li>
<li>Save.</li>
</ul>
<p>Click right mouse button -&gt; main menu -&gt; wanderer -&gt; shell.<br />
Try pinging your Host&#8217;s ip address. In my case the Ubuntu host was 192.168.1.1 so I typed in shell:<br />
ping 192.168.1.1<br />
Nothing happens. It&#8217;s as if there is no network connection between your guest OS and host. That&#8217;s true.</p>
<p>To enable the networking you need to go to VirtualBox screen -&gt; Devices -&gt; Networking Adapters<br />
In the popup select <strong>Attached to: Bridged Adapter.</strong><br />
Name should remain <strong>eth0</strong> or wlan0 if you are using Wireless on your laptop. And in Advanced rollout you should see (although greyed out) Adapter Type: <strong>PCnet-FAST III</strong>. Cable connected should be checked.<br />
Reboot AROS.<br />
Start shell, and try pinging 192.168.1.1. You should see the ping results now rolling over the screen.</p>
<p>That&#8217;s it, your AROS is network enabled.</p>
<h2>GRUB and Multiboot Settings</h2>
<p>AROS uses GRUB for multiboot selection, which is cool. One thing though &#8211; since Aros is not Ubuntu, GRUB settings will not be stored in /etc/&#8230;. .<br />
If you want to change GRUB settings, you will have to edit the file called grub.cnf which is in AROS located in <strong>boot/grub/grub.cfg</strong> .There you can change the default selected item, as well as screen resolution and other values.</p>
<h2>Next Steps</h2>
<p>I will definitely dive deeper into AROS. So far the system looks really nice and responsive, and so very familiar :) It&#8217;s almost like Amiga OS 3.1 with MUI and other boosters installed and configured. At least the way I remember seen it last in my room in 1997.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.modmancer.com/index.php/2010/04/21/setting-up-aros-in-virtualbox-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

