<?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; Ubuntu</title>
	<atom:link href="http://dev.modmancer.com/index.php/category/linux/ubuntu/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>GCC 4.7.0 on Ubuntu 10.10</title>
		<link>http://dev.modmancer.com/index.php/2012/01/20/gcc-4-7-0-on-ubuntu-10-10/</link>
		<comments>http://dev.modmancer.com/index.php/2012/01/20/gcc-4-7-0-on-ubuntu-10-10/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 13:57:28 +0000</pubDate>
		<dc:creator>akiko</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dev.modmancer.com/?p=175</guid>
		<description><![CDATA[I needed to have gcc 4.6+ on my laptop to compile some c++11 code, which my gcc 4.4.4 from synaptic wasn&#8217;t able to handle. Yes, yes &#8216;update your ubuntu&#8217; is the default warcry in such situations, but I didn&#8217;t want that to happen, not yet. So I needed a second gcc in my system. This [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to have gcc 4.6+ on my laptop to compile some c++11 code, which my gcc 4.4.4 from synaptic wasn&#8217;t able to handle. Yes, yes &#8216;update your ubuntu&#8217; is the default warcry in such situations, but I didn&#8217;t want that to happen, not yet. So I needed a second gcc in my system. This is a reminder post to myself, nothing spectacular, it&#8217;s a bit dirty as well, and it&#8217;s already thoroughly documented here <a href="http://gcc.gnu.org/faq.html#multiple">http://gcc.gnu.org/faq.html#multiple</a></p>
<p>What I did was, checked out the latest gcc from svn.  Configured it with ./configure &#8211;prefix=/usr/local/gcc-4.7.0 &#8211;program-suffix=-4.7.0 (btw that suffix is completely unnecessary because all files will anyway be dumped in a folder named gcc-4.7.0) and than called make -j10 (yes I went out, grabbed some food, a coffee, got back and it at that very second it was done). make install finally to install it into /usr/local/gcc-4.7.0/</p>
<p>Additionally I&#8217;ve overridden the existing symlinks to let me use the new gcc as default gcc:</p>
<p>ln -s /usr/local/gcc-4.7.0/bin/g++-4.7.0 /usr/bin/g++ -f</p>
<p>ln -s /usr/local/gcc-4.7.0/bin/gcc-4.7.0 /usr/bin/gcc -f</p>
<p>And one last thing, for programs compiled with 4.7.0 you need to tie in the new libstdc++ as well, otherwise you&#8217;ll get an expected error message when executing them. Each libstdc++ covers all previous versions, but cannot cover future versions. For example, with my gcc 4.4.4 from synaptic the libstdc++ version was: 6.0.7. The new gcc 4.7.0 comes with libstdc++ 6.0.14.</p>
<p>Just like the gcc and g++ a symlink for libstdc++ exists in /usr/lib. We need to override that one as well:</p>
<p>ln -s /usr/lib/libstdc++.so.6 libstdc++.so.6.0.14 -f</p>
<p>And that&#8217;s it. Of course, there are some other libs like the one for objective c etc. that need to be symlinked. OR you can make your own shell script that sets LD and exe paths accordingly, and while working in that context, you can use the selected gcc version. I will try this out, and add it to this post, one day .. soon?</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.modmancer.com/index.php/2012/01/20/gcc-4-7-0-on-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access box.com (box.net) from your Ubuntu</title>
		<link>http://dev.modmancer.com/index.php/2011/12/17/access-box-com-box-net-from-your-ubuntu/</link>
		<comments>http://dev.modmancer.com/index.php/2011/12/17/access-box-com-box-net-from-your-ubuntu/#comments</comments>
		<pubDate>Sat, 17 Dec 2011 19:55:15 +0000</pubDate>
		<dc:creator>akiko</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.modmancer.com/?p=162</guid>
		<description><![CDATA[Several ways found so far, the suggested &#8216;through the nautilus&#8217; webdav connection approach never worked for me on both 10.10 and 10.04. Maybe it works with a later version, I don&#8217;t know. But here is an easy way to set it up. * Open terminal * sudo vim /etc/fstab * append this line to the [...]]]></description>
			<content:encoded><![CDATA[<p>Several ways found so far, the suggested &#8216;through the nautilus&#8217; webdav connection approach never worked for me on both 10.10 and 10.04. Maybe it works with a later version, I don&#8217;t know.</p>
<p>But here is an easy way to set it up.<br />
* Open terminal<br />
* sudo vim /etc/fstab<br />
* append this line to the bottom:<br />
<code>https://www.box.com/dav 			  /home/youruser/box.com  davfs   rw,user,noauto 	  0  	  0</code><br />
Naturally change youruser to match your actual user.<br />
* Save and exit vim<br />
* cd ~<br />
* mkdir box.com<br />
* mount box.com/<br />
* type your full user name, don&#8217;t forget the email part! (ie. name@email.com)<br />
* enter password</p>
<p>That&#8217;s it.</p>
<p>After that you can use rsync, cp, mc or any other tool to copy data back and forth.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.modmancer.com/index.php/2011/12/17/access-box-com-box-net-from-your-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.10 &#8211; How to disable Nouveau kernel driver</title>
		<link>http://dev.modmancer.com/index.php/2011/03/14/ubuntu-10-10-how-to-disable-nouveau-kernel-driver/</link>
		<comments>http://dev.modmancer.com/index.php/2011/03/14/ubuntu-10-10-how-to-disable-nouveau-kernel-driver/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 11:00:29 +0000</pubDate>
		<dc:creator>akiko</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>
		<category><![CDATA[Ubuntu 10.10]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://dev.modmancer.com/?p=132</guid>
		<description><![CDATA[Usually I look after this over and over again, each time I set up ubutntu 10.04 or 10.10. So, this time I will post the link to the quick solution: http://ubuntuforums.org/showpost.php?p=10324779&#38;postcount=8 Just in case the link is unavailable, here is what it says: Re: Disable nouveau Quote: Originally Posted by bmeakings View Post You can [...]]]></description>
			<content:encoded><![CDATA[<p>Usually I look after this over and over again, each time I set up ubutntu 10.04 or 10.10. So, this time I will post the link to the quick solution:</p>
<p><a href="http://ubuntuforums.org/showpost.php?p=10324779&amp;postcount=8">http://ubuntuforums.org/showpost.php?p=10324779&amp;postcount=8</a></p>
<p>Just in case the link is unavailable, here is what it says:</p>
<pre>Re: Disable nouveau
Quote:
Originally Posted by bmeakings View Post
You can edit the modprobe blacklist file (terminal: gksu gedit /etc/modprobe.d/blacklist.conf) and add these entries at the bottom:
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
Then reboot and they shouldn't be loaded. I had to do the same with my system.
You also have to type "sudo update-initramfs -u" to create a new image and reboot before nouveau is actually removed.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://dev.modmancer.com/index.php/2011/03/14/ubuntu-10-10-how-to-disable-nouveau-kernel-driver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>M-Audio Audiophile 2496 on Ubuntu 9.10 = No sound!?</title>
		<link>http://dev.modmancer.com/index.php/2010/05/15/m-audio-audiophile-2496-on-ubuntu-9-10-no-sound/</link>
		<comments>http://dev.modmancer.com/index.php/2010/05/15/m-audio-audiophile-2496-on-ubuntu-9-10-no-sound/#comments</comments>
		<pubDate>Sat, 15 May 2010 15:37:44 +0000</pubDate>
		<dc:creator>akiko</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[2496]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[audiophile]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[m-audio]]></category>
		<category><![CDATA[pulse]]></category>
		<category><![CDATA[pulse audio]]></category>
		<category><![CDATA[sound driver]]></category>

		<guid isPermaLink="false">http://dev.modmancer.com/?p=31</guid>
		<description><![CDATA[You have Ubuntu 9.10. You own M-Audio Audiophile 2496 audio interface. And you can&#8217;t hear a thing? I had to deal with this twice. First time it was when I upgraded my Ubuntu 9.04 to 9.10. Everything was fine, except: my 2496 Audiophile stopped playing any sound at all. Daemon.log didn&#8217;t show any errors coming [...]]]></description>
			<content:encoded><![CDATA[<p><em>You have Ubuntu 9.10. You own M-Audio Audiophile 2496 audio interface. And you can&#8217;t hear a thing?</em></p>
<p>I had to deal with this twice.<br />
First time it was when I upgraded my Ubuntu 9.04 to 9.10. Everything was fine, except: my 2496 Audiophile stopped playing any sound at all. Daemon.log didn&#8217;t show any errors coming from pulse, I could clearly kill and start it without any errors whatsoever. So,  I let my xmms play a song, went to  the Pulse configuration, to see if xmms gets registered as a valid audio stream. Guess what, the bars (vu-meters) were pulsing left to right decently meaning that sound was actually been streamed.<br />
But still I couldn&#8217;t hear a thing.<br />
I then tried changing the chosen output device profile in Preferences -&gt; Sound -&gt; Hardware -&gt; Profile, but none of them helped. Googling around showed that dozens of people have experienced the same problem, and that there was not only ONE problem, but sometimes 2-3 different problems which pretty much looked alike.</p>
<p>Here are shortly the 2 problems I saw people complained about:<span id="more-31"></span></p>
<ol>
<li>Ubuntu didn&#8217;t recognize hardware / didn&#8217;t load any drivers whatsoever</li>
<li>Ubuntu recognized the driver but still no sound coming out</li>
</ol>
<p>My problem belonged to the second group.</p>
<p>Solutions for this problem were mostly these:</p>
<p><strong>Solution #1</strong></p>
<p>create /etc/udev/rules.d/yourown_ice1712.rules file and copy into it:<br />
<code><br />
SUBSYSTEM!="sound", GOTO="ice1712_end"<br />
ACTION!="change", GOTO="ice1712_end"<br />
KERNEL!="card*", GOTO="ice1712_end"<br />
SUBSYSTEMS=="pci", ATTRS{vendor}=="0x1412", ATTRS{device}=="0x1712", ATTRS{subsystem_vendor}=="0x1412", ATTRS{subsystem_device}=="0xd634", ENV{PULSE_PROFILE_SET}="via-ice1712.conf"<br />
LABEL="ice1712_end"<br />
</code><br />
Then edit another file: /usr/share/pulseaudio/alsa-mixer/profile-sets/via-ice1712.conf<br />
and copy/paste the contents from: <a href="http://launchpadlibrarian.net/34620379/via-ice1712.conf">http://launchpadlibrarian.net/34620379/via-ice1712.conf</a></p>
<p>After this you should restart Pulse:<br />
<code><br />
$ pulseaudio --kill<br />
$ pulseaudio --start<br />
</code><br />
This helped some people but it did not help me. So I&#8217;ve searched on.<br />
Maybe it will fix your yours though, don&#8217;t know give it a try. Here is the link:<a href="https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/178442">https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/178442</a> to the complete discussion thread which is PRICELESS if you have sound problems with Koala.</p>
<p><strong>Solution #2</strong></p>
<p>The solution to my problem was much simpler than the aforementioned! I simply had to instruct Pulse to expect a front device which has 10 channels, by default it expects only 2 channels. Thanks to Asmo (<a href="https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/178442/comments/65">https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/178442/comments/65</a>) this was fairly easy to fix. Read the link, or just edit /usr/share/alsa/cards/ICE1712.conf and add to the ICE1712.pcm.front.0{} section these two lines:<br />
<code><br />
slave.format S32_LE<br />
slave.channels 10<br />
</code><br />
A very helpful link I found out there &#8211; <a href="http://ubuntuforums.org/showthread.php?t=843012">http://ubuntuforums.org/showthread.php?t=843012</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev.modmancer.com/index.php/2010/05/15/m-audio-audiophile-2496-on-ubuntu-9-10-no-sound/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

