<?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>SlickDev &#187; Mods</title>
	<atom:link href="http://www.slickdev.com/category/mods/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.slickdev.com</link>
	<description>Freelance Web and Software Developer</description>
	<lastBuildDate>Mon, 30 Jan 2012 14:21:40 +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>VMWare Sphere 5 Boot Delay</title>
		<link>http://www.slickdev.com/2012/01/30/vmware-sphere-5-boot-delay/</link>
		<comments>http://www.slickdev.com/2012/01/30/vmware-sphere-5-boot-delay/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 14:19:25 +0000</pubDate>
		<dc:creator>Chaoz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mods]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.slickdev.com/?p=220</guid>
		<description><![CDATA[Note, this is a WhiteBox setup so not all parts are officially supported by VMWare. Specs below&#8230; i7 2600K Gigabyte P67A-UD4 B3 8GB DDR3-1866hz 9-9-9 1TB Samsung F3 drives Intel Gigabit Network card Now, the issue here is that after a clean install of VMWare Sphere 5, boot-up would take at least 5-9 min to [...]]]></description>
			<content:encoded><![CDATA[<p>Note, this is a WhiteBox setup so not all parts are officially supported by VMWare. Specs below&#8230;</p>
<ul>
<li>i7 2600K</li>
<li>Gigabyte P67A-UD4 B3</li>
<li>8GB DDR3-1866hz 9-9-9</li>
<li>1TB Samsung F3 drives</li>
<li>Intel Gigabit Network card</li>
</ul>
<p>Now, the issue here is that after a clean install of VMWare Sphere 5, boot-up would take at least 5-9 min to complete from a clean power-on. Compared to an upgrade from VMWare Sphere 4.1U1 which will load all the necessary drivers right away after a restart/power-on. It seems like its not detecting the HDD at all at first glance but soon found its way. Further tests, experiments and research yielded that this is a side-effect on how VMWare handled their installation process in VMWare Sphere 5 compared to 4.1U1. In 4.1U1, it uses the MBR for the boot process by default, while in 5.0 it uses GPT. You can fixed this if you force the installer to use MBR during the installation phase.<br />
<span id="more-220"></span><br />
A developer from VMWare confirmed this and posted a way to fix this. You can find the thread <a href="http://communities.vmware.com/message/1822791#1822791" target="_blank">here</a>. </p>
<p>To quote him&#8230;</p>
<blockquote><p>By default ESXi 5.0 uses GPT based partitions tables and not MBR like it did previously.  This allows you to have disks which are greater than 2TB in size, but some systems are incompatible with it (possibly including yours) or need to have the correct BIOS setting.</p>
<p>You can try changing your BIOS to see if it&#8217;s compatible with EFI or will work in &#8220;legacy/compatibility mode&#8221;.  Alternatively you can reinstall and use the &#8220;formatwithmbr&#8221; setting at the boot prompt which will cause the partitions to be set up the way they were in ESX 4.x.  Just add it in the same way you would to tell the machine to do a scripted install.</p></blockquote>
<p>To make things short, as written by <strong>wdbarker</strong>&#8230;. </p>
<blockquote><p>the boot prompt appears after you hit <strong>Shift-O</strong> during the boot process. You will see <strong>runweasel </strong>already in the boot prompt. Right arrow to the end, add a space and <strong>formatwithmbr </strong>and press enter. The prompt will look like: <strong>runweasel formatwithmbr</strong></p></blockquote>
<p>So, there you go. Hope this helps.</p>
<p>This was in collaboration with a friend of mine (Earlz) for setting up the box and helping me debug.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.slickdev.com/2012/01/30/vmware-sphere-5-boot-delay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 Server ACPI/APM Support</title>
		<link>http://www.slickdev.com/2011/08/17/ubuntu-10-04-server-acpiapm-support/</link>
		<comments>http://www.slickdev.com/2011/08/17/ubuntu-10-04-server-acpiapm-support/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 23:38:04 +0000</pubDate>
		<dc:creator>Chaoz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mods]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.slickdev.com/?p=181</guid>
		<description><![CDATA[Advance Configuration and Power Interface (ACPI) or APM ( Advance Power Management ) support for Ubuntu 10.04 was not installed by default after server installation.  I needed this so that during power outage I can just press the power button to automatically shutdown the PC. sudo aptitude install acpi acpi-support apm This will install the [...]]]></description>
			<content:encoded><![CDATA[<p>Advance Configuration and Power Interface (ACPI) or APM ( Advance Power Management ) support for Ubuntu 10.04 was not installed by default after server installation.  I needed this so that during power outage I can just press the power button to automatically shutdown the PC.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> acpi acpi-support <span style="color: #c20cb9; font-weight: bold;">apm</span></pre></div></div>

<p>This will install the power-button-power-off feature in you server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.slickdev.com/2011/08/17/ubuntu-10-04-server-acpiapm-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Built-in Intel 82579 Based Ethernet Card in Intel DH61WW Motherboard under Ubuntu 10.04 Server LTS</title>
		<link>http://www.slickdev.com/2011/08/07/enable-built-in-intel-82579-based-ethernet-card-in-intel-dh61ww-motherboard-under-ubuntu-10-04-server-lts/</link>
		<comments>http://www.slickdev.com/2011/08/07/enable-built-in-intel-82579-based-ethernet-card-in-intel-dh61ww-motherboard-under-ubuntu-10-04-server-lts/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 05:47:14 +0000</pubDate>
		<dc:creator>Chaoz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mods]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.slickdev.com/?p=163</guid>
		<description><![CDATA[82579 based Ethernet network cards are only supported in Kernel 2.6.36 and up, thus Ubuntu 10.04 LTS will not have out-of-the-box support for the network card. I needed this to work since I&#8217;ll be using this as my server and 11.04 is not LTS, I have no choice. To fix this with the motherboard I have from [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">82579 based Ethernet network cards are only supported in <strong>Kernel 2.6.36</strong> and up, thus Ubuntu 10.04 LTS will not have out-of-the-box support for the network card. I needed this to work since I&#8217;ll be using this as my server and 11.04 is not LTS, I have no choice. To fix this with the motherboard I have from Intel, here are the steps that I did&#8230;</p>
<ol>
<li>Download the driver source from Intel driver webpage <a href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;ProdId=2198&amp;DwnldID=15817&amp;ProductFamily=Ethernet+Components&amp;ProductLine=Ethernet+Controllers&amp;ProductProduct=Intel%C2%AE+82573L+Gigabit+Ethernet+Controller&amp;DownloadType=Drivers&amp;OSFullname=Linux*eng" target="_blank">here</a>, or the latest one they have. Double check if the driver supports the version of the network card, the one I have is 82579.</li>
<li>Ready the Ubuntu server, install <strong><em>make gcc g++ </em></strong>and <strong><em>linux headers</em></strong>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #c20cb9; font-weight: bold;">g++</span> linux-headers-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`</span></pre></div></div>

</li>
<li>Un-pack the src driver that you just downloaded, compile and install.

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">gunzip</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>filename<span style="color: #7a0874; font-weight: bold;">&#93;</span>.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>filename<span style="color: #7a0874; font-weight: bold;">&#93;</span>.tar
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>folder_name<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

</li>
<li>If everything goes well, no error should come out, then enable your new ethernet card.

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">modprobe e1000e</pre></div></div>

</li>
<li>You can check your new network card via <strong><em>ifconfig</em></strong><br />
Enjoy! <img src='http://www.slickdev.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ol>
<p><strong>Note:</strong> If you update your kernel or linux image via <strong>aptitude safe-upgrade</strong> or <strong>dist-upgrade</strong>, you need to remove the <strong>e1000e</strong> module, re-compile the driver and install the newly compiled driver again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.slickdev.com/2011/08/07/enable-built-in-intel-82579-based-ethernet-card-in-intel-dh61ww-motherboard-under-ubuntu-10-04-server-lts/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Java 5 JDK and Jakarta Tomcat 5.5 in Ubuntu Server Installation</title>
		<link>http://www.slickdev.com/2008/09/13/java-5-jdk-and-jakarta-tomcat-55-in-ubuntu-server-installation/</link>
		<comments>http://www.slickdev.com/2008/09/13/java-5-jdk-and-jakarta-tomcat-55-in-ubuntu-server-installation/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 04:19:33 +0000</pubDate>
		<dc:creator>Chaoz</dc:creator>
				<category><![CDATA[Code Library]]></category>
		<category><![CDATA[Mods]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.slickdev.com/?p=23</guid>
		<description><![CDATA[These are the steps I took to install Jakarta Tomkat 5.5 in conjunction with Java 2 SDK in Ubuntu server. Login as root, you can also use &#8220;su&#8221; though I prefer to login as root. apt-get install sun-java5-jdk This will install Java 2 SDK (1.5), ubuntu will start downloading packages that are not found in [...]]]></description>
			<content:encoded><![CDATA[<p>These are the steps I took to install Jakarta Tomkat 5.5 in conjunction with Java 2 SDK in Ubuntu server.</p>
<ol>
<li>Login as root, you can also use &#8220;<strong>su</strong>&#8221; though I prefer to login as root.</li>
<li><strong>apt-get install sun-java5-jdk</strong></li>
<ul>
<li>This will install Java 2 SDK  (1.5), ubuntu will start downloading packages that are not found in your system.</li>
</ul>
<li><strong>apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps</strong></li>
<ul>
<li>Of course jakarta-tomcat 5.5, I&#8217;m using 5.5 since this supports java 1.5</li>
</ul>
<li>Now here&#8217;s the tricky part, location for Java and jakarta-tomcat</li>
<ul>
<li>Java&#8217;s location is in <strong>/usr/lib/jvm/java-1.5.0-sun</strong></li>
<li>Jakarta-Tomcat&#8217;s location is in <strong>/usr/share/tomcat5.5</strong></li>
<ul>
<li>We will need these location for the export configurations to be written in the <strong>.bashrc</strong></li>
</ul>
</ul>
<li>Now, open <strong>.bashrc</strong> in your favorite text editor, I used <strong>vim</strong></li>
<li>At the end of the file add these:<br />
<code><br />
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun<br />
export CLASSPATH="/usr/share/tomcat5.5/common/lib/jsp-api.jar;/usr/share/tomcat5.5/common/lib/servlet-api.jar"<br />
export CATALINA_HOME=/usr/share/tomcat5.5<br />
</code></li>
<li>Now save the file and exit, then log back in. This is required for the export script to be set.</li>
<li>Before starting the server, the default port the installer set is 8180 instead of the 8080 port that Tomcat uses. To change this, go to <strong>/usr/share/tomcat5.5/conf/</strong> and open the file <strong>server.xml</strong>. Locate the line:<br />
<code><br />
...Connector port="8180" maxHttpHeaderSize="8192"...<br />
</code><br />
and change <strong>8180 </strong>to<strong> 8080</strong>. Save and exit. Now your ready to test the server.</li>
<li>Now try the server if it starts, <strong>/usr/share/tomcat5.5/bin/startup.sh</strong>  You should see  something like this:<br />
<code><br />
Using CATALINA_BASE:   /usr/share/tomcat5.5<br />
Using CATALINA_HOME:   /usr/share/tomcat5.5<br />
Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp<br />
Using JRE_HOME:       /usr/lib/jvm/java-1.5.0-sun<br />
</code></li>
<li>Shutting down the server is just <strong>/usr/share/tomcat5.5/bin/</strong><strong>shutdown.sh</strong></li>
<li>Now, during installation of tomcat, Ubuntu automatically adds a startup and shutdown script for ubuntu to use as it starts up or shutsdown in <strong>/etc/init.d/</strong> folder. Filename is <strong>tomcat5.5</strong>. As the server finishes starting up, you will notice tomcat isn&#8217;t running at all. One possible problem is that the script didn&#8217;t use the correct path for the java 2 sdk.  You can check the boot log in <strong>/var/log/</strong>. Check if during boot up, tomcat5.5 encountered problems. For the problem stated above, you can fix this by going to <strong>/etc/default/</strong> and edit the <strong>tomcat5.5</strong> file. Locate the line: <strong><br />
</strong><br /><code><strong>#JAVA_HOME=/usr/lib/j2sdk1.4-sun</strong></code></p>
<p>remove the <strong>&#8216;#&#8217;</strong> and change it to&#8230;<br />
<br /><code><strong>JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun</strong></code></p>
<p>or wherever your java directory is.After that, restart the server and see if tomcat was successfully started. <strong><br />
</strong><br /><code><strong>/etc/init.d/tomcat5.5 status</strong></code></li>
</ol>
<p><strong>Edit: Problem encountered:</strong></p>
<ul>
<li><strong>Tomcat does not load in Ubuntu 8.04</strong></li>
</ul>
<ul>
	Found a little problem loading Tomcat 5.5 under Ubuntu 8.04, it either fails or white screen just appears. I don&#8217;t know what happened from 6.04 to 8.04 but once I compared the <em>init.d/tomcat5.5</em> startup script from 6.04 and 8.04, there WERE changes to the scripts. I replaced the new tomcat5.5 script in 8.04 with the old one from 6.04 and the server started properly after a server restart. I don&#8217;t know why but this may have something to do with permissions and I have yet to trace the script.</p>
</ul>
<ul>
<li><strong>java.lang.ClassNotFoundException: org.apache.jasper.tagplugins.jstl.If</strong></li>
</ul>
<ol>
<ul>
<li>The problem here is that the above name is incomplete&#8230; what it should have been is  <strong>org.apache.jasper.tagplugins.jstl.core.*</strong></li>
<li>Now, to fix the problem, locate <span style="color: #000000"><code></span><strong><span style="color: #000000">/var/lib/tomcat5.5/webapps/jsp-examples/WEB-INF/tagPlugins.xml</span></strong></code> and open it with your text editor&#8230; I used <em>vim</em>. Now edit each line of code that has  <em><strong>org.apache.jasper.tagplugins.jstl</strong></em> in it and add &#8220;<strong>.core</strong>&#8221; after <strong>jstl</strong>. What you will see after editing the code will be&#8230;</li>
<p><code></p>
<p>org.apache.taglibs.standard.tag.rt.core.IfTag</p>
<p>org.apache.jasper.tagplugins.jstl.core.If</p>
<p>org.apache.taglibs.standard.tag.common.core.ChooseTag</p>
<p>org.apache.jasper.tagplugins.jstl.core.Choose</p>
<p>org.apache.taglibs.standard.tag.rt.core.WhenTag</p>
<p>org.apache.jasper.tagplugins.jstl.core.When</p>
<p>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</p>
<p>org.apache.jasper.tagplugins.jstl.core.Otherwise</p>
<p>org.apache.taglibs.standard.tag.rt.core.ForEachTag</p>
<p>org.apache.jasper.tagplugins.jstl.core.ForEach</p>
<p></code>
</ul>
</ol>
<ul>
<li><strong>SEVERE: The scratchDir you specified: [folder_path] is unusable. </strong></li>
</ul>
<ul>
<ul>
<li>Sidenote: took me 2 days to figure out why this was happening (X_x)</li>
<li>Based from the Catalina logs, the folders under <em>webapps</em> was not accessible by tomcat5.</li>
<li>Now looking under all processes running ( ps command ), most bootup services were running under root (mysql, apache, etc ) but tomcat5 was not.</li>
<li>If I start tomcat5 when I logged into the console as root, the problem disappears. This lead me to believe this might have been the Tomcat5 user was not given the correct privileges.</li>
<li><strong>Work-around 1:</strong> Elevate Tomcat5 user to root access level.</li>
<li><strong>Work-around 2: </strong>Go to <em><strong>/etc/init.d/ </strong></em>and open <strong>Tomcat5.5</strong> under any text editor ( I used vim ). Locate the line <strong>TOMCAT5_USER=tomcat55</strong> and change it to <strong>TOMCAT5_USER=<em>root</em></strong> . Restart your server or you can also execute the restart command for <em><strong>Tomcat5.5</strong></em> in <strong><em>init.d</em></strong> folder</li>
</ul>
</ul>
<p><span style="color: #000000" />sources:</p>
<ul>
<li><a target="_blank" href="http://wiki.oss-watch.ac.uk/UbuntuDapper/Remaster">Ubuntu/Drapper Remaster</a></li>
<li><a target="_blank" href="http://www.linuxjournal.com/article/4576">linux journal</a></li>
<li><a target="_blank" href="http://doc.gwos.org/index.php/Install_tomcat_5.5">Ubuntu Install Tomcat</a></li>
<li><a target="_blank" href="http://www.netadmintools.com/art340.html">Net Admin Tools</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.slickdev.com/2008/09/13/java-5-jdk-and-jakarta-tomcat-55-in-ubuntu-server-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

