<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>toomymon</title>
	<atom:link href="http://toomymon.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://toomymon.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Wed, 14 Dec 2011 19:09:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='toomymon.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>toomymon</title>
		<link>http://toomymon.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://toomymon.wordpress.com/osd.xml" title="toomymon" />
	<atom:link rel='hub' href='http://toomymon.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SBR600: Release 0.3, rebuilding X Server package</title>
		<link>http://toomymon.wordpress.com/2011/12/14/sbr600-release-0-3-rebuilding-x-server-package/</link>
		<comments>http://toomymon.wordpress.com/2011/12/14/sbr600-release-0-3-rebuilding-x-server-package/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 19:01:36 +0000</pubDate>
		<dc:creator>toomymon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SBR600]]></category>

		<guid isPermaLink="false">http://toomymon.wordpress.com/?p=51</guid>
		<description><![CDATA[As a recap of the results of my 0.2 release, tweaking xorg.conf did not have a huge impact on reducing memory usage. Chris suggested I should try from another direction which is to repackage the X Server. Due to time &#8230; <a href="http://toomymon.wordpress.com/2011/12/14/sbr600-release-0-3-rebuilding-x-server-package/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=51&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As a recap of the results of my <a href="http://toomymon.wordpress.com/2011/11/25/sbr600-release-0-2-creating-xorg-conf-and-testing-on-the-pi/">0.2 release</a>, tweaking <a href="http://matrix.senecac.on.ca/~clchor/xserver/xorg.conf">xorg.conf</a> did not have a huge impact on reducing memory usage. Chris suggested I should try from another direction which is to repackage the X Server. Due to time constraints and the limited availability of the Pi, I decided to repackage the X Server in an x86 environment inside my VMware Workstation virtual machine that I used in my <a href="http://toomymon.wordpress.com/2011/11/08/sbr600-release-0-1-testing-xorg-conf-in-virtual-machines/">0.1 release</a>. Following the steps I learned in <a href="http://zenit.senecac.on.ca/wiki/index.php/SBR600">SBR600</a>, I installed and recreated the necessary <a href="http://zenit.senecac.on.ca/wiki/index.php/RPM_Packaging_Process">RPM build directories</a>. While I looked inside the X Server source package, it seems that there were a lot of unneeded packages that were included such as Xnest or devel. I generated the SPEC file that I was going to modify using:</p>
<p><em>rpm -ivh sourcepackage-name*.src.rpm</em></p>
<p>Finally, I rebuilt the package with my modified SPEC file and tested for errors using rpmlint. Rpmlint showed no errors so I reinstalled this new package and tested for the memory usage again. Memory usage showed insignificant changes. The default X Server in my virtual machine was using around 38mb of memory. The modified X Server I installed showed around 37mb of memory used.</p>
<p><a href="http://toomymon.files.wordpress.com/2011/12/x-memory-usage-on-x86.png"><img class="alignnone size-full wp-image-54" title="x memory usage on x86" src="http://toomymon.files.wordpress.com/2011/12/x-memory-usage-on-x86.png?w=640&#038;h=444" alt="" width="640" height="444" /></a></p>
<p>However, it seems that the X Server on the <a href="http://toomymon.wordpress.com/2011/11/08/sbr600-release-0-1-testing-xorg-conf-in-virtual-machines/">x86 platform</a> used less memory compared to the ARM on the <a href="http://www.raspberrypi.org/">Raspberry Pi</a> which was around <a href="http://toomymon.wordpress.com/2011/11/25/sbr600-release-0-2-creating-xorg-conf-and-testing-on-the-pi/">43mb</a>. I can two reasons for my results in this release. Either the changes I made when I rebuilt the X Server package were not important in reducing memory usage or the X Server generally requires that much memory.</p>
<p>I have included my <a href="http://matrix.senecac.on.ca/~clchor/xserver/xorg-x11-server-1.9.5-a.fc14.src.rpm">SRPM</a>, <a href="http://matrix.senecac.on.ca/~clchor/xserver/xorg-x11-server-Xorg-1.9.5-a.fc14.x86_64.rpm">RPM</a>, <a href="http://matrix.senecac.on.ca/~clchor/xserver/xorg-x11-server-common-1.9.5-a.fc14.x86_64.rpm">common files used</a> and <a href="http://matrix.senecac.on.ca/~clchor/xserver/xorg-x11-server.spec">SPEC</a> file for others to take a look at. I hope others will have more success than me.</p>
<p>The PowerPoint I used during my <a href="http://matrix.senecac.on.ca/~clchor/xserver/Configuring%20X%20Server.pptx">presentation</a> can be found here. I&#8217;ve also updated changes I made in my original project plan for my 3 releases <a href="http://zenit.senecac.on.ca/wiki/index.php/Raspberry_Pi:_Optimizing_the_X_configuration">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toomymon.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toomymon.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toomymon.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toomymon.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toomymon.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toomymon.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toomymon.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toomymon.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toomymon.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toomymon.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toomymon.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toomymon.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toomymon.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toomymon.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=51&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toomymon.wordpress.com/2011/12/14/sbr600-release-0-3-rebuilding-x-server-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1118f53bdc9772d4237c5e4945ae8cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toomymon</media:title>
		</media:content>

		<media:content url="http://toomymon.files.wordpress.com/2011/12/x-memory-usage-on-x86.png" medium="image">
			<media:title type="html">x memory usage on x86</media:title>
		</media:content>
	</item>
		<item>
		<title>SBR600: Release 0.2, creating xorg.conf and testing on the Pi</title>
		<link>http://toomymon.wordpress.com/2011/11/25/sbr600-release-0-2-creating-xorg-conf-and-testing-on-the-pi/</link>
		<comments>http://toomymon.wordpress.com/2011/11/25/sbr600-release-0-2-creating-xorg-conf-and-testing-on-the-pi/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 16:30:34 +0000</pubDate>
		<dc:creator>toomymon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SBR600]]></category>

		<guid isPermaLink="false">http://toomymon.wordpress.com/?p=45</guid>
		<description><![CDATA[In my previous release, I tested how much memory XWindows was using in a virtualized environment running Fedora 13. This time, I first tweaked xorg.conf in a VM. After talking to Chris, I found out that there were some extensions &#8230; <a href="http://toomymon.wordpress.com/2011/11/25/sbr600-release-0-2-creating-xorg-conf-and-testing-on-the-pi/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=45&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my previous <a href="http://toomymon.wordpress.com/2011/11/08/sbr600-release-0-1-testing-xorg-conf-in-virtual-machines/">release</a>, I tested how much memory XWindows was using in a virtualized environment running Fedora 13. This time, I first tweaked <a href="http://matrix.senecac.on.ca/~clchor/xserver/xorg.conf">xorg.conf</a> in a VM. After talking to Chris, I found out that there were some extensions that could be turned off to save memory usage. After running some tests on disabling these extensions, I proceeded to replicate my process on the Raspberry Pi.</p>
<p>Initially, I had troubles starting the Pi with the X Server. I found out that the Pi could boot into a GUI mode by eliminating some layers inside the X Windows.</p>
<p>Normally, I could generate an xorg.conf template with the command:</p>
<p>X –configure :1</p>
<p>However, this would crash the Pi so I could not build a template to use. In the end, I built an xorg.conf from scratch, including only sections that I want to configure. After X7 windows, the developers made it so that X would probe for values needed to configure X Windows. Therefore, the sections that were missing from my configuration would be filled in automatically.</p>
<p>I ran this command to open up just a terminal window in X to see how much memory was being used:</p>
<p>X :0 -ac &amp; sleep 2; xterm -display :0 &amp; metacity</p>
<p>Around 36mb memory was used.</p>
<p>I found out what extensions were enabled on the Pi after I started X Windows using:</p>
<p>Xdpyinfo</p>
<p>This generated an output of what X was using. I’ve included a part of the output below:</p>
<p>name of display:    :0.0<br />
version number:    11.0<br />
vendor string:    Fedora Project<br />
vendor release number:    10802000<br />
maximum request size:  16777212 bytes<br />
motion buffer size:  256<br />
bitmap unit, bit order, padding:    32, LSBFirst, 32<br />
image byte order:    LSBFirst<br />
number of supported pixmap formats:    7<br />
supported pixmap formats:<br />
depth 1, bits_per_pixel 1, scanline_pad 32<br />
depth 4, bits_per_pixel 8, scanline_pad 32<br />
depth 8, bits_per_pixel 8, scanline_pad 32<br />
depth 15, bits_per_pixel 16, scanline_pad 32<br />
depth 16, bits_per_pixel 16, scanline_pad 32<br />
depth 24, bits_per_pixel 32, scanline_pad 32<br />
depth 32, bits_per_pixel 32, scanline_pad 32<br />
keycode range:    minimum 8, maximum 255<br />
focus:  window 0&#215;1000004, revert to Parent<br />
number of extensions:    26<br />
BIG-REQUESTS<br />
Composite<br />
DAMAGE<br />
DOUBLE-BUFFER<br />
DPMS<br />
DRI2<br />
GLX<br />
Generic Event Extension<br />
MIT-SCREEN-SAVER<br />
MIT-SHM<br />
RANDR<br />
RECORD<br />
RENDER<br />
SGI-GLX<br />
SHAPE<br />
SYNC<br />
X-Resource<br />
XC-MISC<br />
XFIXES<br />
XFree86-DGA<br />
XFree86-VidModeExtension<br />
XINERAMA<br />
XInputExtension<br />
XKEYBOARD<br />
XTEST<br />
XVideo<br />
default screen number:    0<br />
number of screens:    1</p>
<p>screen #0:<br />
dimensions:    1920&#215;1080 pixels (508&#215;286 millimeters)<br />
resolution:    96&#215;96 dots per inch<br />
depths (7):    16, 1, 4, 8, 15, 24, 32<br />
root window id:    0xe3<br />
depth of root window:    16 planes<br />
number of colormaps:    minimum 1, maximum 1<br />
default colormap:    0&#215;20<br />
default number of colormap cells:    64<br />
preallocated pixels:    black 0, white 65535<br />
options:    backing-store NO, save-unders NO<br />
largest cursor:    1920&#215;1080</p>
<p>The output showed that the Pi used 26 extensions. Running top command, the default X Windows used around 43mb of memory and 5% of CPU when idle with one terminal window open. The CPU would spike to around 50 to 60% if I frantically dragged the terminal window around. I used this as a base for comparing the results after I changed my configuration.</p>
<p>After researching on what the extensions are used for, there are several that seemed unnecessary for the Pi.</p>
<p>MIT-SCREEN-SAVER</p>
<p>This is used to inform screensavers when to start and stop.</p>
<p>RANDR</p>
<p>This stands for rotate and resize. Useful for display setting changes. Not useful for the Pi because it will be connected to a 1080p screen.</p>
<p>RECORD</p>
<p>This is used for application testing as it records X events.</p>
<p>SHAPE</p>
<p>This enables nonrectangular windows. It can be disabled if the Pi only has rectangular windows.</p>
<p>XInputExtension</p>
<p>This provides support for specialized input devices like tablets etc.</p>
<p>XTEST</p>
<p>Used for performance benchmarking.</p>
<p>XINERAMA</p>
<p>Used for single screen, multimonitor support.</p>
<p>XVideo</p>
<p>Enables video streams (ie. from video camera) to be converted, transformed on X. Improves video performance.</p>
<p>After turning off these extensions, I started X and ran ‘top’ to see memory usage. It still idled at 42mb memory used and 5% CPU used. This was surprising because I initially thought that this would decrease memory usage.</p>
<p>As a final test, I wanted to see what would happen if I tried to disable all the extensions. Here was the <a href="http://matrix.senecac.on.ca/~clchor/xserver/xorg.conf">configuration</a> I made to disable all the extensions.</p>
<p>Section &#8220;Screen&#8221;<br />
Identifier &#8220;Screen0&#8243;<br />
Device &#8220;Card0&#8243;<br />
Monitor &#8220;Monitor0&#8243;<br />
Subsection &#8220;Display&#8221;<br />
Depth 24<br />
Modes &#8220;1920&#215;1080&#8243;<br />
EndSubsection<br />
Subsection &#8220;Display&#8221;<br />
Depth 32<br />
Modes &#8220;1920&#215;1080&#8243;<br />
EndSubsection<br />
EndSection</p>
<p>Section &#8220;Extensions&#8221;<br />
Option &#8220;BIG-REQUESTS&#8221; &#8220;off&#8221;<br />
Option &#8220;Composite&#8221; &#8220;off&#8221;<br />
Option &#8220;DAMAGE&#8221; &#8220;off&#8221;<br />
Option &#8220;DOUBLE-BUFFER&#8221; &#8220;off&#8221;<br />
Option &#8220;DPMS&#8221; &#8220;off&#8221;<br />
Option &#8220;DRI2&#8243; &#8220;off&#8221;<br />
Option &#8220;GLX&#8221; &#8220;off&#8221;<br />
Option &#8220;Generic Event Extension&#8221; &#8220;off&#8221;<br />
Option &#8220;MIT-SCREEN-SAVER&#8221; &#8220;off&#8221;<br />
Option &#8220;MIT-SHM&#8221; &#8220;off&#8221;<br />
Option &#8220;RANDR&#8221; &#8220;off&#8221;<br />
Option &#8220;RECORD&#8221; &#8220;off&#8221;<br />
Option &#8220;RENDER&#8221; &#8220;off&#8221;<br />
Option &#8220;SGI-GLX&#8221; &#8220;off&#8221;<br />
Option &#8220;SHAPE&#8221; &#8220;off&#8221;<br />
Option &#8220;SYNC&#8221; &#8220;off&#8221;<br />
Option &#8220;X-Resource&#8221; &#8220;off&#8221;<br />
Option &#8220;XC-MISC&#8221; &#8220;off&#8221;<br />
Option &#8220;XFIXES&#8221; &#8220;off&#8221;<br />
Option &#8220;XFree86-DGA&#8221; &#8220;off&#8221;<br />
Option &#8220;XFree86-VidModeExtension&#8221; &#8220;off&#8221;<br />
Option &#8220;XINERAMA&#8221;<br />
Option &#8220;XInputExtension&#8221; &#8220;off&#8221;<br />
Option &#8220;XKEYBOARD&#8221; &#8220;off&#8221;<br />
Option &#8220;XTEST&#8221; &#8220;off&#8221;<br />
Option &#8220;XVideo&#8221; &#8220;off<br />
EndSection</p>
<p>I started X and ran ‘xdpyinfo’ again.</p>
<pre>name of display:    :0.0
version number:    11.0
vendor string:    Fedora Project
vendor release number:    10802000
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x1000004, revert to Parent
number of extensions:    8
    BIG-REQUESTS
    DRI2
    Generic Event Extension
    SHAPE
    SYNC
    XC-MISC
    XInputExtension
    XKEYBOARD
default screen number:    0
number of screens:    1</pre>
<p>Some extensions were still used. These were probably left on because they were needed for X to function properly. I ran the ‘top’ command and it still used around 42mb of memory and 5% CPU when idle. An interesting observation was that when I tried to drag and open new windows, the CPU would go up to 70%. The changes I made actually increased CPU usage. This was probably because X Windows had to redraw the windows that were overlaid which the CPU does.</p>
<p>In conclusion, the disabling extensions didn’t really help save memory usage. I would try to test out specific functions that pertain to each extension to see what happens as a result. As of now, I have only tested with terminal windows.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toomymon.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toomymon.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toomymon.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toomymon.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toomymon.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toomymon.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toomymon.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toomymon.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toomymon.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toomymon.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toomymon.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toomymon.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toomymon.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toomymon.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=45&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toomymon.wordpress.com/2011/11/25/sbr600-release-0-2-creating-xorg-conf-and-testing-on-the-pi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1118f53bdc9772d4237c5e4945ae8cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toomymon</media:title>
		</media:content>
	</item>
		<item>
		<title>SBR600: Release 0.1, testing xorg.conf in virtual machines</title>
		<link>http://toomymon.wordpress.com/2011/11/08/sbr600-release-0-1-testing-xorg-conf-in-virtual-machines/</link>
		<comments>http://toomymon.wordpress.com/2011/11/08/sbr600-release-0-1-testing-xorg-conf-in-virtual-machines/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 05:18:38 +0000</pubDate>
		<dc:creator>toomymon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SBR600]]></category>

		<guid isPermaLink="false">http://toomymon.wordpress.com/?p=35</guid>
		<description><![CDATA[The goal of my release 0.1 for the project was to successfully have X Windows running in a virtualized environment with similar hardware specs to the Raspberry Pi board. I wanted to use VM&#8217;s for testing because there was only &#8230; <a href="http://toomymon.wordpress.com/2011/11/08/sbr600-release-0-1-testing-xorg-conf-in-virtual-machines/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=35&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The goal of my release 0.1 for the <a href="http://zenit.senecac.on.ca/wiki/index.php/Raspberry_Pi:_Optimizing_the_X_configuration">project</a> was to successfully have X Windows running in a virtualized environment with similar hardware specs to the <a href="http://www.raspberrypi.org/">Raspberry Pi</a> board. I wanted to use VM&#8217;s for testing because there was only one Raspberry Pi board that needed to be shared around for 5 different <a href="http://zenit.senecac.on.ca/wiki/index.php/Fall_2011_SBR600_Participants">projects</a>. The other reason was that I can freely test different settings with ease as I can recreate the VM if I needed to. I will also be installing the VM in two different environments.</p>
<ol>
<li>Running <a href="http://https://www.virtualbox.org/">Virtual Box</a>, Fedora 13 x86</li>
<li>Running <a href="http://www.vmware.com/products/workstation/">VMware Workstation</a>, Fedora 13 x86</li>
</ol>
<p><strong><span style="text-decoration:underline;">Installation of the OS:</span></strong></p>
<p>Initially, I built a Fedora 13 x86 (Fedora-13-i686-Live.iso) machine with Virtual Box inside my Ubuntu 11 host.  With only 256mb RAM and 12mb of video memory, the machine did install and boot up successfully. Later on, I lowered the RAM settings and repeated the testing process. This was again repeated on VMware workstation.</p>
<p><a href="http://toomymon.files.wordpress.com/2011/11/01.jpg"><img class="alignnone size-full wp-image-36" title="startup success!" src="http://toomymon.files.wordpress.com/2011/11/01.jpg?w=640&#038;h=479" alt="" width="640" height="479" /></a></p>
<p class="MsoNormal"><strong><span style="text-decoration:underline;">Checking System Resources:</span></strong></p>
<p class="MsoNormal"> The first thing I checked was how much system memory it was using. According to the system monitor, this machine used 125mb out of 245mb of usable memory.</p>
<p class="MsoNormal"> <strong><span style="text-decoration:underline;">Generating Xorg.conf</span></strong></p>
<p class="MsoNormal"><strong></strong>After some research, I found that X11/Xorg that now comes on Fedora 13 doesn&#8217;t store a default xorg.conf file anymore. X11 can run without any xorg.conf file. Instead, it uses probed/default values that are generated during startup. To generate a template xorg.conf, I&#8217;ve installed system-config-display. I&#8217;ve mainly used default values for testing purposes starting with an 800&#215;600 resolution and the standard drivers used for the VM.</p>
<p class="MsoNormal"><a href="http://toomymon.files.wordpress.com/2011/11/02.jpg"><img class="alignnone size-full wp-image-37" title="xorg.conf" src="http://toomymon.files.wordpress.com/2011/11/02.jpg?w=640&#038;h=442" alt="" width="640" height="442" /></a></p>
<p class="MsoNormal"><strong><span style="text-decoration:underline;">Test Cases:</span></strong></p>
<p class="MsoNormal"> Virtual Box VM:</p>
<p class="MsoNormal">With 256mb RAM:<br />
I&#8217;ve set the default resolution to 800&#215;600 and the system memory hovered at around 128/245mb. The other resolution I tested was at 1920&#215;1080 and the memory was around 135/245mb.</p>
<p class="MsoNormal">With 192mb RAM:<br />
800&#215;600, 109/182mb<br />
1920&#215;1080, 120/182mb</p>
<p class="MsoNormal">With 128mb RAM:<br />
800&#215;600, 78/119mb<br />
1920&#215;1080, 93/182mb</p>
<p class="MsoNormal">VMware Workstation VM:</p>
<p class="MsoNormal">With 256mb RAM:<br />
800&#215;600, 124/245mb<br />
1920&#215;1080, 132/245mb</p>
<p class="MsoNormal">With 192mb RAM:<br />
800&#215;600, 106/182mb<br />
1920&#215;1080, 116/182mb</p>
<p class="MsoNormal">With 128mb RAM:<br />
800&#215;600, 66/119mb<br />
1920&#215;1080, 81/119mb</p>
<p><strong><span style="text-decoration:underline;">Summary:</span></strong></p>
<p>VirtualBox:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="151"></td>
<td colspan="2" valign="top" width="276">800&#215;600</td>
<td colspan="2" valign="top" width="311">1920&#215;1080</td>
</tr>
<tr>
<td valign="top" width="151">RAM allocated</td>
<td colspan="4" valign="top" width="587">RAM used</td>
</tr>
<tr>
<td valign="top" width="151">245mb RAM</td>
<td valign="top" width="150">128mb</td>
<td valign="top" width="126">52.2%</td>
<td valign="top" width="167">135mb</td>
<td valign="top" width="143">52.2%</td>
</tr>
<tr>
<td valign="top" width="151">182mb RAM</td>
<td valign="top" width="150">109mb</td>
<td valign="top" width="126">60.0%</td>
<td valign="top" width="167">120mb</td>
<td valign="top" width="143">65.9%</td>
</tr>
<tr>
<td valign="top" width="151">119mb RAM</td>
<td valign="top" width="150">78mb</td>
<td valign="top" width="126">65.5%</td>
<td valign="top" width="167">93mb</td>
<td valign="top" width="143">78.1%</td>
</tr>
</tbody>
</table>
<p>VMware Workstation:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="151"></td>
<td colspan="2" valign="top" width="276">800&#215;600</td>
<td colspan="2" valign="top" width="311">1920&#215;1080</td>
</tr>
<tr>
<td valign="top" width="151">RAM allocated</td>
<td colspan="4" valign="top" width="587">RAM used</td>
</tr>
<tr>
<td valign="top" width="151">245mb RAM</td>
<td valign="top" width="150">124mb</td>
<td valign="top" width="126">50.6%</td>
<td valign="top" width="167">132mb</td>
<td valign="top" width="143">53.9%</td>
</tr>
<tr>
<td valign="top" width="151">182mb RAM</td>
<td valign="top" width="150">106mb</td>
<td valign="top" width="126">58.2%</td>
<td valign="top" width="167">116mb</td>
<td valign="top" width="143">63.7%</td>
</tr>
<tr>
<td valign="top" width="151">119mb RAM</td>
<td valign="top" width="150">81mb</td>
<td valign="top" width="126">68.1%</td>
<td valign="top" width="167">81mb</td>
<td valign="top" width="143">68.1%</td>
</tr>
</tbody>
</table>
<p><strong><span style="text-decoration:underline;">Conclusion:</span></strong></p>
<p>A general pattern can be concluded from these two environments. The Fedora machine in VMware workstation used less resources overall on all test cases compared to the VirtualBox companion. As the system memory decreases, a larger proportion of memory was being used. This is true for both environments. As the memory decreases, start up times increased and the machines became less responsive as predicted. With 256mb memory, the system was running quite decently. 128mb memory was too sluggish and not very user friendly. Although this is being tested in a VM with an x86 architecture, test results on the actual Raspberry Pi may vary. A possible goal for further tweaking for the second release would be toning down the system memory used to below 60%.</p>
<p><strong><span style="text-decoration:underline;"><br />
</span></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toomymon.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toomymon.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toomymon.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toomymon.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toomymon.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toomymon.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toomymon.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toomymon.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toomymon.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toomymon.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toomymon.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toomymon.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toomymon.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toomymon.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=35&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toomymon.wordpress.com/2011/11/08/sbr600-release-0-1-testing-xorg-conf-in-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1118f53bdc9772d4237c5e4945ae8cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toomymon</media:title>
		</media:content>

		<media:content url="http://toomymon.files.wordpress.com/2011/11/01.jpg" medium="image">
			<media:title type="html">startup success!</media:title>
		</media:content>

		<media:content url="http://toomymon.files.wordpress.com/2011/11/02.jpg" medium="image">
			<media:title type="html">xorg.conf</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a Repository-release RPM</title>
		<link>http://toomymon.wordpress.com/2011/10/07/creating-a-repository-release-rpm/</link>
		<comments>http://toomymon.wordpress.com/2011/10/07/creating-a-repository-release-rpm/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 00:17:36 +0000</pubDate>
		<dc:creator>toomymon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toomymon.wordpress.com/?p=32</guid>
		<description><![CDATA[Signing RPM packages is an important step because it ensures the authenticity of the file that is being installed on a system. I&#8217;ve created my own key using the command: gpg &#8211;gen-key I&#8217;ve also added my email address to the &#8230; <a href="http://toomymon.wordpress.com/2011/10/07/creating-a-repository-release-rpm/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=32&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Signing RPM packages is an important step because it ensures the authenticity of the file that is being installed on a system.</p>
<p>I&#8217;ve created my own key using the command:</p>
<p>gpg &#8211;gen-key</p>
<p>I&#8217;ve also added my email address to the key by adding in &#8216;%_gpg_name clchor@learn.senecac.on.ca&#8217; in my ~/rpmmacros file. I&#8217;ve used the <a href="http://matrix.senecac.on.ca/~clchor/hello-2.7-99.x86_64.rpm">package</a> I created previously to put in my repository and signed it with my key using:</p>
<p>rpm &#8211;addsign packagefile</p>
<p>Created the repository metadata using:</p>
<p>createrepo .</p>
<p>After I copied a sample .repo file from /etc/pki/rpm-gpg/ to the directory that has my signed rpm package. I&#8217;ve made edits to the .repo file and added my own gpgkey named &#8216;clchor-gpg-key&#8217;.</p>
<p>Here are the files inside the repos:</p>
<p><em>repo/</em><br />
<em>|&#8211; clchor-gpg-key</em><br />
<em>|&#8211; hello-2.7-99.x86_64.rpm</em><br />
<em>`&#8211; repodata</em><br />
<em>    |&#8211; filelists.xml.gz</em><br />
<em>    |&#8211; other.xml.gz</em><br />
<em>    |&#8211; primary.xml.gz</em><br />
<em>    `&#8211; repomd.xml</em></p>
<p>1 directory, 6 files</p>
<p>I have created a tarball for the above located <a href="http://matrix.senecac.on.ca/~clchor/clchor-repo.tgz">here</a>.</p>
<p>Unfortunately, I have not been successful at installing this from my repository. I must have missed some crucial step during the process. If someone can comment how what I&#8217;m doing wrong, it would be much appreciated.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toomymon.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toomymon.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toomymon.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toomymon.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toomymon.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toomymon.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toomymon.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toomymon.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toomymon.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toomymon.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toomymon.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toomymon.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toomymon.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toomymon.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=32&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toomymon.wordpress.com/2011/10/07/creating-a-repository-release-rpm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1118f53bdc9772d4237c5e4945ae8cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toomymon</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Mock and Koji</title>
		<link>http://toomymon.wordpress.com/2011/10/06/using-mock-and-koji/</link>
		<comments>http://toomymon.wordpress.com/2011/10/06/using-mock-and-koji/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 23:46:58 +0000</pubDate>
		<dc:creator>toomymon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toomymon.wordpress.com/?p=24</guid>
		<description><![CDATA[After successfully building my SRPM from the previous post, I tested the buildrequires with mock.     yum install mock     usermod -G mock clchor     mock -r fedora-14-x86_64 yourSRPM This took several minutes as I was using a virtual environment. &#8230; <a href="http://toomymon.wordpress.com/2011/10/06/using-mock-and-koji/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=24&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After successfully building my SRPM from the previous post, I tested the buildrequires with mock.</p>
<p><em>    yum install mock</em><br />
<em>    usermod -G mock clchor</em><br />
<em>    mock -r fedora-14-x86_64 yourSRPM</em></p>
<p>This took several minutes as I was using a virtual environment. Fortunately, it ran without issues.</p>
<p>The next step was to test the build on another system using Koji. I was following the instructions here: <a href="http://fedoraproject.org/wiki/PackageMaintainers/UsingKoji">http://fedoraproject.org/wiki/PackageMaintainers/UsingKoji</a></p>
<p>To summarize the steps:</p>
<p><em>    yum install fedora-packager</em><br />
<em>    /usr/bin/fedora-packager-setup</em></p>
<p>This would prompt you for you FAS account credentials and passphrase for your certificates. After generating the certificates, follow the instructions listed in the above to add the certificate to your firefox browser.</p>
<p>After getting the certificates set up, I proceeded to have koji to use my SRPM to build in a f14 environment. Here is the trouble I ran into last night.</p>
<p>I was running this command under my user account &#8216;clchor&#8217;:</p>
<p><em>    koji build dist-f14 &#8211;scratch yourSRPM</em></p>
<p>It kept failing with an error message like this:</p>
<p><em>Error: [('SSL routines', 'SSL3_READ_BYTES', 'sslv3 alert certificate revoked'), ('SSL routines', 'SSL3_READ_BYTES', 'ssl handshake failure')]</em></p>
<p>I kept thinking that there was something wrong with my certificates and asked people on #seneca channel. They thought the same thing. I even tried to manually download the certificates following the instructions here (<a href="http://fedoraproject.org/wiki/PackageMaintainers/UsingKoji">http://fedoraproject.org/wiki/PackageMaintainers/UsingKoji</a>). Apparently, this command works only works in my <strong>root user account</strong> which is quite interesting because the error message made no note of that.</p>
<p>After running the koji command successfully, I can see the build process start on my terminal as well as <a href="http://koji.fedoraproject.org/koji">http://koji.fedoraproject.org/koji<br />
</a></p>
<p>This process whole process of running it using koji was only a matter of minutes as the package I used was quite small amd simple.<br />
<a href="http://toomymon.files.wordpress.com/2011/10/terminal.png"><img class="alignnone size-full wp-image-25" title="terminal" src="http://toomymon.files.wordpress.com/2011/10/terminal.png?w=640&#038;h=480" alt="" width="640" height="480" /></a></p>
<p><a href="http://toomymon.files.wordpress.com/2011/10/koji.png"><img class="alignnone size-full wp-image-29" title="koji" src="http://toomymon.files.wordpress.com/2011/10/koji.png?w=640&#038;h=448" alt="" width="640" height="448" /></a></p>
<p>Initially, I thought that the process was simple and easy to use. But after having the nightmare of getting Koji to work properly, I would like to think otherwise. It was fun talking to some folks on the <a href="irc://irc.mozilla.org/seneca">#seneca</a> channel as well as trying to troubleshoot my steps. I remembered Chris saying not to post large pieces of commands and errors directly in the channel and to use <a href="http:/fpaste.org">fpaste.org</a>. Good thing I remembered because I&#8217;m sure someone would&#8217;ve yelled at me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toomymon.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toomymon.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toomymon.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toomymon.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toomymon.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toomymon.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toomymon.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toomymon.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toomymon.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toomymon.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toomymon.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toomymon.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toomymon.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toomymon.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=24&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toomymon.wordpress.com/2011/10/06/using-mock-and-koji/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1118f53bdc9772d4237c5e4945ae8cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toomymon</media:title>
		</media:content>

		<media:content url="http://toomymon.files.wordpress.com/2011/10/terminal.png" medium="image">
			<media:title type="html">terminal</media:title>
		</media:content>

		<media:content url="http://toomymon.files.wordpress.com/2011/10/koji.png" medium="image">
			<media:title type="html">koji</media:title>
		</media:content>
	</item>
		<item>
		<title>RPM Writing</title>
		<link>http://toomymon.wordpress.com/2011/10/06/rpm-writing/</link>
		<comments>http://toomymon.wordpress.com/2011/10/06/rpm-writing/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 23:32:10 +0000</pubDate>
		<dc:creator>toomymon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toomymon.wordpress.com/?p=21</guid>
		<description><![CDATA[In this post, I will illustrate the steps I took in order to build a RPM with my own modified spec file. First I installed the necessary packages:     yum groupinstall &#8220;Fedora Packager&#8221;     yum install rpmlint yum-utils Under my &#8230; <a href="http://toomymon.wordpress.com/2011/10/06/rpm-writing/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=21&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post, I will illustrate the steps I took in order to build a RPM with my own modified spec file.</p>
<p>First I installed the necessary packages:</p>
<p><em>    yum groupinstall &#8220;Fedora Packager&#8221;</em><br />
<em>    yum install rpmlint yum-utils</em></p>
<p>Under my user account, I ran this command to set up my rpmbuild directories:</p>
<p><em>    rpmdev-setuptree</em></p>
<p>I copied my tarball (using <a href="http://mirror.csclub.uwaterloo.ca/gnu/hello/hello-2.7.tar.gz">http://mirror.csclub.uwaterloo.ca/gnu/hello/hello-2.7.tar.gz</a>) from my previous post to ~/rpmbuild/SOURCES.</p>
<p>Changed to ~/rpmbuild/SPECS and created a new skeleton spec file using:</p>
<p><em>   rpmdev-newspec <a href="http://matrix.senecac.on.ca/~clchor/hello.spec">hello.spec</a></em></p>
<p>I&#8217;ve edit the specfile to my own requirements as shown below.</p>
<p><em>Name:           hello</em><br />
<em>Version:        2.7 </em><br />
<em>Release:        99</em><br />
<em>Summary:        Cho Long (Tommy) Chor&#8217;s Hello World program </em></p>
<p><em>License:    GPLv3+</em><br />
<em>URL:        http://www.clchor.com</em><br />
<em>Source0:    hello-2.7.tar.gz</em></p>
<p><em>BuildRequires: gettext</em><br />
<em># Requires:       </em><br />
<em>Requires(post): info</em><br />
<em>Requires(preun): info</em></p>
<p><em>%description </em><br />
<em>This is a test &#8220;Hello World&#8221; RPM package created by a student. Please advise before installing.</em></p>
<p><em>%prep</em><br />
<em>%setup -q</em></p>
<p><em>%build</em><br />
<em>%configure</em><br />
<em>make %{?_smp_mflags}</em></p>
<p><em>%install</em></p>
<p><em>make install DESTDIR=%{buildroot}</em><br />
<em>%find_lang %{name}</em><br />
<em>rm -f %{buildroot}/%{_infodir}/dir</em></p>
<p><em>%post</em><br />
<em>/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :</em></p>
<p><em>%preun</em><br />
<em>if [ $1 = 0 ] ; then</em><br />
<em>/sbin/install-info &#8211;delete %{_infodir}/%{name}.info %{_infodir}/dir || :</em><br />
<em>fi</em></p>
<p><em>%files -f %{name}.lang</em><br />
<em>%{_bindir}/hello</em><br />
<em>%doc %{_mandir}/man1/hello.1.gz</em><br />
<em>%doc %{_infodir}/%{name}.info.gz</em></p>
<p><em>%changelog</em><br />
<em>* Wed Oct 4 2011 Hello World package modified by Cho Long (Tommy) Chor 2.7-99</em><br />
<em>- Initial release for testing purposes</em></p>
<p>To build my package using my <a href="http://matrix.senecac.on.ca/~clchor/hello.spec">spec file</a>, run:</p>
<p><em>    rpmbuild -ba nameOfPackage.spec</em></p>
<p>Getting the above step to work was the hardest part. Initially, I had errors with missing or wrong sections like having the wrong Source0 field. And then the build proceeded into later sections, the variables I used were wrong. But after much effort, the build was successful and the <a href="http://matrix.senecac.on.ca/~clchor/hello-2.7-99.x86_64.rpm">binary RPM</a> and <a href="http://matrix.senecac.on.ca/~clchor/hello-2.7-99.src.rpm">source RPM</a> was created.</p>
<p>To further test the RPM, I ran rpmlint on the binary and source RPM and was error free.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toomymon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toomymon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toomymon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toomymon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toomymon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toomymon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toomymon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toomymon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toomymon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toomymon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toomymon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toomymon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toomymon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toomymon.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=21&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toomymon.wordpress.com/2011/10/06/rpm-writing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1118f53bdc9772d4237c5e4945ae8cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toomymon</media:title>
		</media:content>
	</item>
		<item>
		<title>Building from Source</title>
		<link>http://toomymon.wordpress.com/2011/10/06/building-from-source/</link>
		<comments>http://toomymon.wordpress.com/2011/10/06/building-from-source/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 23:00:47 +0000</pubDate>
		<dc:creator>toomymon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toomymon.wordpress.com/?p=19</guid>
		<description><![CDATA[I&#8217;ve gone through several packages. Some were big while others are not supported anymore like gnuchess. The ones I&#8217;ve used for this demonstration is &#8220;hello&#8221; and spell&#8221;. I&#8217;ve included the download links below: http://mirror.csclub.uwaterloo.ca/gnu/hello/hello-2.7.tar.gz http://ftp.gnu.org/gnu/spell/spell-1.1.tar.gz First I installed the necessary &#8230; <a href="http://toomymon.wordpress.com/2011/10/06/building-from-source/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=19&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve gone through several packages. Some were big while others are not supported anymore like gnuchess. The ones I&#8217;ve used for this demonstration is &#8220;hello&#8221; and spell&#8221;.</p>
<p>I&#8217;ve included the download links below:</p>
<p><a href="http://mirror.csclub.uwaterloo.ca/gnu/hello/hello-2.7.tar.gz">http://mirror.csclub.uwaterloo.ca/gnu/hello/hello-2.7.tar.gz</a><br />
<a href="http://ftp.gnu.org/gnu/spell/spell-1.1.tar.gz">http://ftp.gnu.org/gnu/spell/spell-1.1.tar.gz</a></p>
<p>First I installed the necessary tools using the command:</p>
<p>yum groupinstall &#8220;Development Tools&#8221; &#8220;Development Libraries&#8221;</p>
<p>I used wget to download the two tarballs and extracted it using:</p>
<p>tar xvzf &lt;package name&gt;</p>
<p>For each extracted tarball, a directory of files is created. Within the directory, run the following commands to compile and install the package.</p>
<p>./configure; make; make install</p>
<p>I&#8217;ve used the time command to see how long each process takes.</p>
<p>Hello:<br />
time ./configure</p>
<p>real    0m41.788s<br />
user    0m18.854s<br />
sys    0m22.369s</p>
<p>time make</p>
<p>real    0m2.328s<br />
user    0m1.358s<br />
sys    0m0.952s</p>
<p>time make install</p>
<p>real    0m2.582s<br />
user    0m1.001s<br />
sys    0m1.678s</p>
<p>Spell:<br />
time ./configure</p>
<p>real    0m6.741s<br />
user    0m3.092s<br />
sys    0m3.929s</p>
<p>time make</p>
<p>real    0m0.377s<br />
user    0m0.253s<br />
sys    0m0.090s</p>
<p>time make install</p>
<p>real    0m0.371s<br />
user    0m0.218s<br />
sys    0m0.114s</p>
<p>Please take note that this is hosted in a virtualized environment with 2 processors and 2GB of RAM so the process does take longer than expected.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toomymon.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toomymon.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toomymon.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toomymon.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toomymon.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toomymon.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toomymon.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toomymon.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toomymon.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toomymon.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toomymon.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toomymon.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toomymon.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toomymon.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=19&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toomymon.wordpress.com/2011/10/06/building-from-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1118f53bdc9772d4237c5e4945ae8cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toomymon</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction</title>
		<link>http://toomymon.wordpress.com/2011/10/06/introduction/</link>
		<comments>http://toomymon.wordpress.com/2011/10/06/introduction/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 03:33:12 +0000</pubDate>
		<dc:creator>toomymon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toomymon.wordpress.com/?p=8</guid>
		<description><![CDATA[Hi my name is Tommy (Cho Long) Chor and I am taking SBR600 this semester. For my final project, I will be working on the Raspberry Pi trying to optimize the X configuration. I&#8217;ve been trying to troubleshoot a problem &#8230; <a href="http://toomymon.wordpress.com/2011/10/06/introduction/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=8&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi my name is Tommy (Cho Long) Chor and I am taking SBR600 this semester.</p>
<p>For my final project, I will be working on the Raspberry Pi trying to optimize the X configuration.</p>
<p>I&#8217;ve been trying to troubleshoot a problem with Koji and trying to authenticate with the certificates. Below is a part of the conversation in #seneca on freenode.net</p>
<p>toomy&gt; I&#8217;m working on the koji lab for SBR600, but whenever I run &#8220;koji build dist-f14 &#8211;scratch &lt;pkg name&gt;.rpm&#8221; I get an error<br />
&lt;dayuster&gt; I am also having this issue<br />
&lt;toomy&gt; I&#8217;ve included my output in here: http://fpaste.org/GjP8<br />
&lt;mhoye&gt; Is that your machine, or a lab machine?<br />
&lt;toomy&gt; my machine, in a VM<br />
&lt;toomy&gt; I followed this: http://fedoraproject.org/wiki/PackageMaintainers/UsingKoji to create my certs<br />
&lt;mhoye&gt; Ok, so, in your home directory, how many certs do you have?<br />
* dayuster has quit (Quit: Leaving)<br />
&lt;toomy&gt; one, it&#8217;s named &#8220;fedora-browser-cert.p12&#8243;<br />
&lt;toomy&gt; I&#8217;ve added that in my firefox browser<br />
&lt;mhoye&gt; hmmm.<br />
&lt;mhoye&gt; Try an ls -A rather than an .ls<br />
&lt;mhoye&gt; an &#8220;ls&#8221;, rather.<br />
&lt;mhoye&gt; Adding it to firefox is not a thing, I don&#8217;t think.<br />
&lt;mhoye&gt; According to that UsingKoji, there should be three keys there, called .fedora.cert .fedora-upload-ca.cert and .fedora-server-ca.cert<br />
&lt;mhoye&gt; Make sure they&#8217;re all there; there are links to download them in the document.<br />
&lt;mhoye&gt; Basically: this is an SSL problem, which probably means you&#8217;ve overlooked a step involving the certificates.</p>
<p>Here is a link to my Seneca wiki page: <a href="http://zenit.senecac.on.ca/wiki/index.php">http://zenit.senecac.on.ca/wiki/index.php</a>/User:Clchor</p>
<p>Here is a link to my fedora wiki page: <a href="https://fedoraproject.org/wiki/User:Clchor">https://fedoraproject.org/wiki/User:Clchor</a></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toomymon.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toomymon.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toomymon.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toomymon.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toomymon.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toomymon.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toomymon.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toomymon.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toomymon.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toomymon.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toomymon.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toomymon.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toomymon.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toomymon.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toomymon.wordpress.com&amp;blog=27527201&amp;post=8&amp;subd=toomymon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toomymon.wordpress.com/2011/10/06/introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1118f53bdc9772d4237c5e4945ae8cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toomymon</media:title>
		</media:content>
	</item>
	</channel>
</rss>
