<?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>Dirty Motherfucking Blog &#187; ubuntu</title>
	<atom:link href="http://dirty-motherfucker.org/blog/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://dirty-motherfucker.org/blog</link>
	<description>All kinds of shit</description>
	<lastBuildDate>Wed, 09 May 2012 12:49:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-beta4-20750</generator>
		<item>
		<title>Increased Screen-Space for Ubuntu Server VM</title>
		<link>http://dirty-motherfucker.org/blog/2010/10/13/increased-screen-space-for-ubuntu-server-vm/</link>
		<comments>http://dirty-motherfucker.org/blog/2010/10/13/increased-screen-space-for-ubuntu-server-vm/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 09:49:37 +0000</pubDate>
		<dc:creator>gencha</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.dirty-motherfucker.org/blog/?p=320</guid>
		<description><![CDATA[I often run Ubuntu server installations in VirtualBox. Sadly, this only provides you with the default console window. So most of the time I would additionally connect with Putty into the same VM, so that I can make use of a larger console. But recently it pissed me off so badly that I went hunting [...]]]></description>
			<content:encoded><![CDATA[<p>I often run Ubuntu server installations in VirtualBox. Sadly, this only provides you with the default console window. So most of the time I would additionally connect with Putty into the same VM, so that I can make use of a larger console. But recently it pissed me off so badly that I went hunting for a solution. And I found it in <a href="http://joeamined.wordpress.com/2008/02/25/enabling-high-resolution-console-in-ubuntu/">this article</a>. It&#8217;s not quite up speed with the current environment, so I&#8217;ll duplicate the information here and update it as well.</p>
<p>So first thing we want to do is remove the vesa framebuffer module from the modprobe blacklist.</p>
<pre class="brush: plain; title: ; notranslate">sudo editor /etc/modprobe.d/blacklist-framebuffer</pre>
<p>Comment out or delete the following line:</p>
<pre class="brush: plain; title: ; notranslate">blacklist vesafb</pre>
<p>Now to enable the needed modules:</p>
<pre class="brush: plain; title: ; notranslate">sudo editor /etc/initramfs-tools/modules</pre>
<p>And add the following lines at the end:</p>
<pre class="brush: plain; title: ; notranslate">fbcon
vesafb</pre>
<p>Finally, update your initramfs images:</p>
<pre class="brush: plain; title: ; notranslate">sudo update-initramfs -u</pre>
<p>Now, we need to make Grub pass the required parameters to the kernel to enable the high-res console.<br />
In case of Ubuntu 8.04 (and 8.10 I guess) or any pre-Grub2 version:</p>
<pre class="brush: plain; title: ; notranslate">sudo editor /boot/grub/menu.lst</pre>
<p>For Grub2 installations:</p>
<pre class="brush: plain; title: ; notranslate">sudo editor /etc/default/grub</pre>
<p>There will be a line like this:</p>
<pre class="brush: plain; title: ; notranslate">GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet splash&quot;</pre>
<p>You&#8217;re gonna want to add the vga parameter to that:</p>
<pre class="brush: plain; title: ; notranslate">GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet splash vga=791&quot;</pre>
<p>Or as the original article suggests (and what I prefer as well):</p>
<pre class="brush: plain; title: ; notranslate">GRUB_CMDLINE_LINUX_DEFAULT=&quot;verbose vga=791&quot;</pre>
<p>But that only changes the amount of information you get during boot time.<br />
The number that is passed as an argument with vga signals the desired resolution and color depth. 791 is 1024&#215;768 with 64K colors. A full list can be found <a href="http://www.mjmwired.net/kernel/Documentation/fb/vesafb.txt">here</a>.<br />
Now, for Grub2 installations you&#8217;ll want to update Grub:</p>
<pre class="brush: plain; title: ; notranslate">sudo update-grub2</pre>
<p>And then, reboot!</p>
<pre class="brush: plain; title: ; notranslate">sudo reboot now</pre>
]]></content:encoded>
			<wfw:commentRss>http://dirty-motherfucker.org/blog/2010/10/13/increased-screen-space-for-ubuntu-server-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ICH9R Raid Recovery</title>
		<link>http://dirty-motherfucker.org/blog/2010/08/17/ich9r-raid-recovery/</link>
		<comments>http://dirty-motherfucker.org/blog/2010/08/17/ich9r-raid-recovery/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 18:19:53 +0000</pubDate>
		<dc:creator>gencha</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[ich9r]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.dirty-motherfucker.org/blog/?p=313</guid>
		<description><![CDATA[You know how everyone would tell you to not use RAID0 unless the data you store on it is worthless? And do you know how the same people would most likely tell you to never put your operating system on a RAID0 volume? Well, I ignored those people and did it anyway. And what did [...]]]></description>
			<content:encoded><![CDATA[<p>You know how everyone would tell you to not use RAID0 unless the data you store on it is worthless? And do you know how the same people would most likely tell you to never put your operating system on a RAID0 volume?</p>
<p>Well, I ignored those people and did it anyway. And what did I, shortly after, get in return? A failed RAID volume. Yay.</p>
<p>One day I simply shut off my computer for a little restructuring of my work area, and after I turned it on again, it told me it can&#8217;t boot, cause, well, yeah. In fact, it reported that one of the RAID disks was no longer a member of the array. So I rebooted multiple times, shut off the computer and power supply, booted back up. The volume remained failed.</p>
<p>So I booted into an Ubuntu Live CD and browsed the web for solutions. Cause I was certain no data could have actually been lost. The RAID controller was just stupid. The solutions I found were mostly along the lines of &#8220;re-create the volume and restore a backup&#8221;. Of course I had no backup.<br />
So I thought I would just back up the drives contents now and try to simply re-create the volume and write the data back.</p>
<p>Using dd, I did exactly that:</p>
<pre class="brush: plain; title: ; notranslate">
dd if=/dev/sda of=/media/backup/sda.dd bs=2MB
dd if=/dev/sdb of=/media/backup/sdb.dd bs=2MB
</pre>
<p>This took the whole night of course. So, the next day I rebooted to re-create the RAID volume. But I was very surprised to find that the RAID controller reported the volume to be in perfect health. And surely enough, seconds later my Windows was up and running again.<br />
I praised the gods, instantly made backups and went on with my life.</p>
<p>Until yesterday. When the same shit happened AGAIN. I was minding my own business, when suddenly my computer shut off (due to overheating I assume). When I started it back up again, it, again, reported the RAID volume as failed.<br />
Again, multiple reboots didn&#8217;t do anything. And, again, I went into a Live CD to back up the RAID member disks.<br />
And, AGAIN, today my volume comes up as healthy as ever.</p>
<p>I have no clue if there is any logic behind this or if this was just magic happening. I also have no idea if my actions actually had anything to do with this RAID recovery. But, sure as hell, when I come across a failed ICH9R RAID0 volume again, I&#8217;ll dd the disks and reboot the shit out of it.</p>
<p>And, also, I&#8217;ll be converting back to a non-RAID setup ASAP.</p>
]]></content:encoded>
			<wfw:commentRss>http://dirty-motherfucker.org/blog/2010/08/17/ich9r-raid-recovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building PHP 5.3.0 on Ubuntu 8.04 Server</title>
		<link>http://dirty-motherfucker.org/blog/2009/08/06/building-php-5-3-0-on-ubuntu-8-04-server/</link>
		<comments>http://dirty-motherfucker.org/blog/2009/08/06/building-php-5-3-0-on-ubuntu-8-04-server/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 21:07:37 +0000</pubDate>
		<dc:creator>gencha</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.dirty-motherfucker.org/blog/?p=274</guid>
		<description><![CDATA[When I wanted to build the latest PHP for a server I found several guides online. Sadly none of them worked right away. So after finally getting it all to work like I wanted to, I decided to quickly write up this guide. I start with a clean Ubuntu 8.04 install. So, first things first: [...]]]></description>
			<content:encoded><![CDATA[<p>When I wanted to build the latest PHP for a server I found several guides online. Sadly none of them worked right away.<br />
So after finally getting it all to work like I wanted to, I decided to quickly write up this guide.</p>
<p>I start with a clean Ubuntu 8.04 install. So, first things first:</p>
<pre class="brush: plain; title: ; notranslate">
sudo apt-get update
sudo apt-get dist-upgrade
sudo shutdown -r now
</pre>
<p>Now that we&#8217;re up-to-date, let&#8217;s begin:</p>
<pre class="brush: plain; title: ; notranslate">
sudo apt-get build-dep php5
sudo apt-get install libmcrypt-dev libc-client-dev checkinstall
</pre>
<p>Now we have all the crap to build PHP with. Let&#8217;s get PHP itself:</p>
<pre class="brush: plain; title: ; notranslate">
cd /tmp/
wget http://us3.php.net/get/php-5.3.0.tar.gz/from/this/mirror
tar xvzf php-5.3.0.tar.gz
cd php-5.3.0/
</pre>
<p>Now all that is left is to build PHP&#8230;</p>
<pre class="brush: plain; title: ; notranslate">
./configure --prefix=/usr --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/apache2/conf.d --mandir=/usr/share/man --disable-debug --with-regex=php --disable-rpath --disable-static --with-pic --with-layout=GNU --with-pear=/usr/share/php --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2 --enable-ctype --with-db4 --without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext --enable-mbstring --with-pcre-regex=/usr --enable-shmop --enable-sockets --enable-wddx --with-libxml-dir=/usr --with-zlib --with-kerberos=/usr --with-openssl=/usr --enable-soap --enable-zip --with-exec-dir=/usr/lib/php5/libexec --without-mm --with-curl=shared,/usr --with-zlib-dir=/usr --with-gd=shared,/usr --enable-gd-native-ttf --with-gmp=shared,/usr --with-jpeg-dir=shared,/usr --with-xpm-dir=shared,/usr/X11R6 --with-png-dir=shared,/usr --with-freetype-dir=shared,/usr --with-t1lib=shared,/usr --with-ldap=shared,/usr --with-ldap-sasl=/usr --with-mhash=shared,/usr --with-mysql=shared,/usr --with-mysqli=/usr/bin/mysql_config --with-pspell=shared,/usr --with-unixODBC=shared,/usr --with-xsl=shared,/usr --with-snmp=shared,/usr --with-sqlite=shared,/usr --with-mssql=shared,/usr --with-tidy=shared,/usr --with-xmlrpc=shared --with-pgsql=shared,/usr --enable-gd-native-ttf --enable-dba=shared --with-openssl-dir=shared,/usr --enable-gd-jis-conv --enable-json --with-mcrypt=shared,/usr --enable-pcntl --with-pdo-mysql --with-pdo-odbc=unixODBC,/usr --with-pdo-pgsql=shared,/usr --with-pdo-sqlite --enable-xmlreader --with-tsrm-pthreads --with-imap --with-imap-ssl
</pre>
<p>I&#8217;m sure this doesn&#8217;t enable ALL features in PHP, but it works for me so far. If I&#8217;ll ever find I was missing something, I&#8217;ll be sure to update this post.</p>
<p>When building make sure to pass the correct number of CPUs to make with the -j parameter to safe some time.</p>
<pre class="brush: plain; title: ; notranslate">
make -j2
</pre>
<p>And now we wait&#8230;</p>
<p>Now we need to add these lines to our httpd.conf (which is empty in this case)</p>
<pre class="brush: plain; title: ; notranslate">
#LoadModule directive to aid module installations
#LoadModule dummy_module /usr/lib/apache2/modules/mod_dummy.so
</pre>
<p>Now we can build our .deb for PHP.</p>
<pre class="brush: plain; title: ; notranslate">
sudo checkinstall -D --install=no --fstrans=no --maintainer=your@email --reset-uids=yes --nodoc --pkgname=php5 --pkgversion=5.3 --pkgrelease=200908060830 --arch=amd64
</pre>
<p>And that&#8217;s it. Now you have a .deb which you can install on a different system or (as checkinstall told you) just put on this system with dpkg -i.</p>
<p>Have fun</p>
]]></content:encoded>
			<wfw:commentRss>http://dirty-motherfucker.org/blog/2009/08/06/building-php-5-3-0-on-ubuntu-8-04-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

