<?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>Codedrop™ Weblog &#187; OS</title>
	<atom:link href="http://www.codedrop.ca/blog/archives/category/os/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codedrop.ca/blog</link>
	<description>Drop'n some code and other tech tidbits...</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:45:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Use your DNS-323 for Time Machine backups.</title>
		<link>http://www.codedrop.ca/blog/archives/212</link>
		<comments>http://www.codedrop.ca/blog/archives/212#comments</comments>
		<pubDate>Wed, 13 Jan 2010 06:14:22 +0000</pubDate>
		<dc:creator>groll</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[DNS-323]]></category>
		<category><![CDATA[Time Machine]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=212</guid>
		<description><![CDATA[If you don&#8217;t want to have to fork over the $$ to buy a time capsule want to make use of your existing DNS-323 hardware for backing up your Mac, here&#8217;s the steps to take.
1) Modify system preferences by executing this line in a terminal.

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

This will allow you to select the [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t want to have to fork over the $$ to buy a time capsule want to make use of your existing DNS-323 hardware for backing up your Mac, here&#8217;s the steps to take.</p>
<p>1) Modify system preferences by executing this line in a terminal.<br />
<code><br />
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1<br />
</code></p>
<p>This will allow you to select the DNS as a backup device when you configure Time Machine.</p>
<p>2) You need to manually create a disk image that Time Machine can understand.  The naming convention of this image is key.  The name consists of the computers name and mac address of the local eno device without colons.  (<computer’s name>_<string>.sparsebundle).  Easiest way to find out the proper name is to attempt a backup after completing step 1 above.  While this is attempting to run, use finder to browse the Volume (Volume_1 in my case) and write down the name of the file its trying to create.  The filename will contain .tmp before the .sparebundle.  Drop this from the filename and you have the complete name you need to use.</p>
<p>ie:  gataca_0021413a0cce.tmp.sparsebundle -> gataca_0021413a0cce.sparsebundle</p>
<p>Open disk utility and create a new disk image on your local drive (you cannot create the image directly on the NFS drive) with the following options:</p>
<p>Format: Spare Bundle Disk Image<br />
Partiions: No Partition Map<br />
Encryption: None<br />
Format: Mac OSX Extended Partition (Journaled)<br />
Size &#8211; Maximum Size.. I choose Custom 250GB</p>
<p>After the image is created&#8230; manually copy it over to the root of your NFS volume.</p>
<p>3) Kick off the time machine backup and voila!</p>
<p>Now.. be prepared for the caveats of this solution mentioned <a href="http://www.flokru.org/2008/03/15/time-machine-backups-on-network-shares-2-possible-problems/">here</a>.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Use+your+DNS-323+for+Time+Machine+backups.+http://hcb8d.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Use+your+DNS-323+for+Time+Machine+backups.+http://hcb8d.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/212/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHEL terminal closes after a period of inactivity.</title>
		<link>http://www.codedrop.ca/blog/archives/129</link>
		<comments>http://www.codedrop.ca/blog/archives/129#comments</comments>
		<pubDate>Wed, 26 Aug 2009 16:27:36 +0000</pubDate>
		<dc:creator>groll</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/archives/129</guid>
		<description><![CDATA[After weeks of frustration with my RHEL terminal windows closing themselves after a small interval of inactivity, (go for lunch and my terminals were closed)&#8230; I finally found out the solution to prevent this &#8216;default&#8217; behaviour that comes in RHEL.
The /etc/profile was the culprit.&#160; Simply remove the following lines or update them to a much [...]]]></description>
			<content:encoded><![CDATA[<p>After weeks of frustration with my RHEL terminal windows closing themselves after a small interval of inactivity, (go for lunch and my terminals were closed)&#8230; I finally found out the solution to prevent this &#8216;default&#8217; behaviour that comes in RHEL.</p>
<p>The /etc/profile was the culprit.&nbsp; Simply remove the following lines or update them to a much more respectable time interval and restart your X windows.</p>
<p>TMOUT=3600<br />export TMOUT</p>
<p>Thats one I&#8217;ll not forget as its sure a pain when your in development mode with all your terminals set where you want them&#8230;. turn away for an hour and find them all closed!</p>
<p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=c2761770-58d1-8aa4-afcc-3ae3e7a20a41" /></div>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=RHEL+terminal+closes+after+a+period+of+inactivity.+http://rgr28.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=RHEL+terminal+closes+after+a+period+of+inactivity.+http://rgr28.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/129/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE Developer Toolbar, Firebug like tools for IE</title>
		<link>http://www.codedrop.ca/blog/archives/86</link>
		<comments>http://www.codedrop.ca/blog/archives/86#comments</comments>
		<pubDate>Fri, 03 Apr 2009 20:46:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[toolbar]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/archives/86</guid>
		<description><![CDATA[You don&#8217;t have to be much of a Techy to know about the power Firebug brings to the Firefox browser.&#160; I&#8217;ve often been frustrated but the lack thereof of such support in IE&#8230; until now.&#160; The Internet Explorer (IE) Developer Toolbar has been around for quite some time now, but in my ignorance I had [...]]]></description>
			<content:encoded><![CDATA[<p>You don&#8217;t have to be much of a Techy to know about the power Firebug brings to the Firefox browser.&nbsp; I&#8217;ve often been frustrated but the lack thereof of such support in IE&#8230; until now.&nbsp; The <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=E59C3964-672D-4511-BB3E-2D5E1DB91038&amp;displaylang=en">Internet Explorer (IE) Developer Toolbar</a> has been around for quite some time now, but in my ignorance I had lost track of it&#8230;&nbsp; so here it is again for the world to use&#8230; Like Firebug it brings in a panel bar from which you can quickly navigate page elements, highlight divs, tables, etc&#8230;</p>
<p><img style="max-width: 800px; width: 400px;" src="http://www.codedrop.ca/blog/wp-content/uploads/2009/04/picture-9.png" /> </p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=cf7e4cc8-bbd4-8126-b495-d0ef5395bce7" /></div>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=IE+Developer+Toolbar%2C+Firebug+like+tools+for+IE+http://eq6dg.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=IE+Developer+Toolbar%2C+Firebug+like+tools+for+IE+http://eq6dg.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/86/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safari 4 Hidden Preferences</title>
		<link>http://www.codedrop.ca/blog/archives/70</link>
		<comments>http://www.codedrop.ca/blog/archives/70#comments</comments>
		<pubDate>Fri, 06 Mar 2009 15:40:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/archives/70</guid>
		<description><![CDATA[I recently started using Safari 4 and found in incredibly disorienting having new tabs appear at the very top of the window frame.  To my suprise there&#8217;s a hidden setting that can change the location of the tab bar to something you might be more familiar with.  Check out this blog for a complete listing [...]]]></description>
			<content:encoded><![CDATA[<p>I recently started using Safari 4 and found in incredibly disorienting having new tabs appear at the very top of the window frame.  To my suprise there&#8217;s a hidden setting that can change the location of the tab bar to something you might be more familiar with.  Check out this <a href="http://swedishcampground.com/safari-4-hidden-preferences">blog</a> for a complete listing of hidden preferences.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=a6daf120-7f5b-4db9-a996-7dab7277428e" alt="" /></div>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Safari+4+Hidden+Preferences+http://itw3e.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Safari+4+Hidden+Preferences+http://itw3e.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/70/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keyboard Shortcuts For MacOSX (screen capture)</title>
		<link>http://www.codedrop.ca/blog/archives/57</link>
		<comments>http://www.codedrop.ca/blog/archives/57#comments</comments>
		<pubDate>Tue, 23 Dec 2008 16:31:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=57</guid>
		<description><![CDATA[Here&#8217;s a neat shortcut for doing selectable screen captures on a Mac:&#160;⌘⇧4 (Command &#8211; Shift &#8211; 4) &#8211; will change your cursor and allow you to select a region on the screen to capture.  After highlighting the region release the mouse button and voila!.. a new image file will be saved to your desktop [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a neat shortcut for doing selectable screen captures on a Mac:<br />&nbsp;<br /><b>⌘⇧4</b> (Command &#8211; Shift &#8211; 4) &#8211; will change your cursor and allow you to select a region on the screen to capture.  After highlighting the region release the mouse button and voila!.. a new image file will be saved to your desktop of the selected region. <br /><b>⌘⇧3 </b>(Command &#8211; Shift &#8211; 3) &#8211; will take a screen capture of your entire desktop.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Keyboard+Shortcuts+For+MacOSX+%28screen+capture%29+http://w2tpk.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Keyboard+Shortcuts+For+MacOSX+%28screen+capture%29+http://w2tpk.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/57/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install a specific software version using Mac Ports</title>
		<link>http://www.codedrop.ca/blog/archives/56</link>
		<comments>http://www.codedrop.ca/blog/archives/56#comments</comments>
		<pubDate>Tue, 09 Dec 2008 03:22:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=56</guid>
		<description><![CDATA[MacPorts is the preferred way of installing, managing, and upgrading ports of some the software I have on my Mac.&#160; Unfortunately mac ports does not let you specify a version.&#160; To mediate this you can create a local repository that is checked out to a specific version and install from there.
This example is how to [...]]]></description>
			<content:encoded><![CDATA[<p>MacPorts is the preferred way of installing, managing, and upgrading ports of some the software I have on my Mac.&nbsp; Unfortunately mac ports does not let you specify a version.&nbsp; To mediate this you can create a local repository that is checked out to a specific version and install from there.</p>
<p>This example is how to install ruby version 1.8.5-p12. </p>
<p><b>1) Find out the svn revision number of the Portfile by looking in:</b></p>
<p>http://trac.macosforge.org/projects/macports/log/trunk/dports/lang/ruby/Portfile</p>
<p>In my case it is 21127.</p>
<p><b>2) Set up a local port repository. In the file /opt/local/etc/macports/sources.conf, add this line before the rsync line:</b>
<p>file:///Users/Shared/dports and create that directory.</p>
<p><b>3) Install the port into your local repository.</b>
<p><typo:code>cd /Users/Shared/dports &amp;&amp; svn co –revision 21127<br />http://svn.macports.org/repository/macports/trunk/dports/lang/ruby/<br />lang/ruby/</typo:code></p>
<p><b>4) Run portindex so that ports now finds your new (old) version of ruby.</b>
<p><typo:code>portindex /Users/Shared/dports</typo:code></p>
<p><b>5) Now you should be able to see ruby @1.8.5-p12 in addition to @1.8.6 by running:</b></p>
<p><typo:code>port list</typo:code></p>
<p><b>6) Install Ruby</b>
<p><typo:code>sudo port install ruby @1.8.5-p12</typo:code></p>
<p>You should be up and running now, so to check, run:
<p><typo:code>ruby -v</typo:code></p>
<p>You will see something like this:
<p><typo:code>ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.10.1]</typo:code></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+to+install+a+specific+software+version+using+Mac+Ports+http://sb2hz.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+to+install+a+specific+software+version+using+Mac+Ports+http://sb2hz.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/56/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OSX Script To Toggle Hidden Files</title>
		<link>http://www.codedrop.ca/blog/archives/55</link>
		<comments>http://www.codedrop.ca/blog/archives/55#comments</comments>
		<pubDate>Mon, 24 Nov 2008 20:20:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=55</guid>
		<description><![CDATA[Working in a Mac environment I often find myself needing access to the system directories that are typically hidden by Finder.  I recently stumbled across the following script that I find quite useful for toggling back / forth between standard and full views.
Open ScriptEditor and save the following script:
try
set dotVisible to do shell script &#8220;defaults [...]]]></description>
			<content:encoded><![CDATA[<p>Working in a Mac environment I often find myself needing access to the system directories that are typically hidden by Finder.  I recently stumbled across the following script that I find quite useful for toggling back / forth between standard and full views.</p>
<p>Open ScriptEditor and save the following script:</p>
<p><font color="#330000"><small><font face="Courier New">try<br />
set dotVisible to do shell script &#8220;defaults read com.apple.finder AppleShowAllFiles&#8221;</p>
<p>on error errorMessage number errorNumber<br />
set dotVisible to 0<br />
end try</font></small></font></p>
<p><font color="#330000"><small><font face="Courier New">if dotVisible = &#8220;0&#8243; then<br />
do shell script &#8220;defaults write com.apple.finder AppleShowAllFiles 1&#8243;<br />
else<br />
do shell script &#8220;defaults write com.apple.finder AppleShowAllFiles 0&#8243;<br />
end if</font></small></font></p>
<p><font color="#330000"><small><font face="Courier New">tell application &#8220;Finder&#8221; to quit<br />
delay 1</font></small></font></p>
<p><font color="#330000"><small><font face="Courier New">tell application &#8220;Finder&#8221; to activate<br />
if dotVisible = &#8220;0&#8243; then<br />
say &#8220;VISIBLE&#8221;<br />
else<br />
say &#8220;HIDDEN&#8221;<br />
end if</font></small></font></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Mac+OSX+Script+To+Toggle+Hidden+Files+http://4kmq2.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Mac+OSX+Script+To+Toggle+Hidden+Files+http://4kmq2.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/55/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to rename a vm (.vmdk) file for VMWare Server 1.0.4</title>
		<link>http://www.codedrop.ca/blog/archives/51</link>
		<comments>http://www.codedrop.ca/blog/archives/51#comments</comments>
		<pubDate>Thu, 28 Aug 2008 17:20:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=51</guid>
		<description><![CDATA[In Vmware server 1.04, you can use the following process to rename the vmdk files:
1. Copy folder, rename vmx file
2. Edit machine, change hostname
3. Rename vdmk
4. Edit settings and add disk you just renamed as existing disk (remove old one)
5. Start vm and check it works (don’t forget to use newsid)
 Tweet This Post]]></description>
			<content:encoded><![CDATA[<p>In Vmware server 1.04, you can use the following process to rename the vmdk files:</p>
<p>1. Copy folder, rename vmx file<br />
2. Edit machine, change hostname<br />
3. Rename vdmk<br />
4. Edit settings and add disk you just renamed as existing disk (remove old one)<br />
5. Start vm and check it works (don’t forget to use newsid)</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+to+rename+a+vm+%28.vmdk%29+file+for+VMWare+Server+1.0.4+http://onkra.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+to+rename+a+vm+%28.vmdk%29+file+for+VMWare+Server+1.0.4+http://onkra.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/51/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle 10.2.0.1 installation on Fedora 8</title>
		<link>http://www.codedrop.ca/blog/archives/49</link>
		<comments>http://www.codedrop.ca/blog/archives/49#comments</comments>
		<pubDate>Wed, 23 Jul 2008 01:53:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=49</guid>
		<description><![CDATA[Below are the installation note&#8217;s I captured in installing Oracle10.2.0.1 on a Fedora 8 workstation.  For some reason installations ofOracle on Fedora linux in past never went as smooth as hoped.. I washowever relatively happy with how things turned out on F8 and its niceto see some of the old problems, like hanging during [...]]]></description>
			<content:encoded><![CDATA[<p>Below are the installation note&#8217;s I captured in installing Oracle<br />10.2.0.1 on a Fedora 8 workstation.  For some reason installations of<br />Oracle on Fedora linux in past never went as smooth as hoped.. I was<br />however relatively happy with how things turned out on F8 and its nice<br />to see some of the old problems, like hanging during installation, went<br />away&#8230;  </p>
<p>##########################################<br /># Oracle 10g Standard &#8211; Fedora 8 Linux Installation Instructions<br /># Author: Greg Roll<br /># Date:   July 14th, 2008<br />#<br /># These instructions have been parsed down to the bare requirements to <br /># install Oracle 10g Standard on a typical Fedora 8 installation.<br />#<br />##########################################</p>
<p>##########################################<br />## Install / Update required system packages.<br />##########################################<br />yum install libaio<br />yum install libXp<br />yum update libxcb (must be 1.0-4 or greater!)</p>
<p>##########################################<br />## Configuring the Linux Kernel Parameters as per Oracle<br />## requirements.<br />##########################################</p>
<p>The Linux kernel is a wonderful thing. Unlike most other *NIX systems,<br />Linux allows modification of most kernel parameters while the system is<br />up and running. There&#8217;s no need to reboot the system after making<br />kernel parameter changes. Oracle Database 10g Release 2 requires the<br />kernel parameter settings shown below. The values given are minimums,<br />so if your system uses a larger value, don&#8217;t change it.</p>
<p>kernel.shmall = 2097152<br />kernel.shmmax = 536870912<br />kernel.shmmni = 4096<br />kernel.sem = 250 32000 100 128<br />fs.file-max = 65536<br />net.ipv4.ip_local_port_range = 1024 65000<br />net.core.rmem_default=262144<br />net.core.wmem_default=262144<br />net.core.rmem_max=262144<br />net.core.wmem_max=262144</p>
<p>On my base fedora 8 installation I found I only had to change a 2 options:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br />/etc/sysctl.conf<br /> &#8212;&#8212;&#8212;&#8212;&#8212;<br />add:<br />net.ipv4.ip_local_port_range = 1024 65000<br />kernel.sem = 250 32000 100 128`</p>
<p>Execute the following command to change the current values of the kernel<br />parameters:<br />/sbin/sysctl -p</p>
<p>##########################################<br />## Setup required user / groups.<br />##########################################</p>
<p>/usr/sbin/groupadd oinstall<br />/usr/sbin/groupadd dba<br />/usr/sbin/useradd -g oinstall -G dba oracle<br />passwd oracle</p>
<p>[root@uberdev14 ~]# id oracle<br />uid=2090(oracle) gid=4001(oinstall) groups=4001(oinstall),4002(dba) context=unconfined_u:system_r:unconfined_t:s0<br />[root@uberdev14 ~]# id nobody<br />uid=99(nobody) gid=99(nobody) groups=99(nobody) context=unconfined_u:system_r:unconfined_t:s0<br />[root@uberdev14 ~]# </p>
<p>##########################################<br />## Update user limits.<br />##########################################</p>
<p>Oracle recommends setting limits on the number of processes and open files each Linux account may use.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />/etc/security/limits.conf<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />Add the following 4 lines before the end of file comment:<br />oracle soft nproc 2047<br />oracle hard nproc 16384<br />oracle soft nofile 1024<br />oracle hard nofile 65536</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br />/etc/pam.d/login<br />&#8212;&#8212;&#8212;&#8212;&#8212;-<br />Add the following 2 lines before the pame_selinux.so open rule<br />session    required     /lib/security/pam_limits.so<br />session    required     pam_limits.so  </p>
<p>##########################################<br /># Setup user profile.<br />##########################################</p>
<p># Backup the original system profile.<br />[root@udev10lin01 etc]# cp -p profile profile.ORIG</p>
<p># Modify the system files.<br />&#8212;&#8212;&#8212;&#8212;<br />/etc/profile<br />&#8212;&#8212;&#8212;&#8212;</p>
<p>Edit and add following to bottom:</p>
<p>if [ $USER = "oracle" ]; then<br />  if [ $SHELL = "/bin/ksh" ]; then<br />    ulimit -p 16384<br />    ulimit -n 65536<br />  else<br />    ulimit -u 16384 -n 65536<br />  fi<br />fi</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />/home/oracle/.bash_profile<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Edit and add following:</p>
<p># .bash_profile</p>
<p># Get the aliases and functions<br />if [ -f ~/.bashrc ]; then<br />        . ~/.bashrc<br />fi</p>
<p># User specific environment and startup programs</p>
<p>set -o vi<br />export ORACLE_SID=IVSD1<br />export ORACLE_BASE=/opt/app/oracle<br />export ORACLE_HOME=${ORACLE_BASE}/product/10.2.0/DB1<br />export LD_LIBRARY_PATH=${ORACLE_HOME}/lib:/usr/lib:/lib<br />export PATH=$PATH:${ORACLE_HOME}/bin:/sbin/:/usr/sbin</p>
<p>unset USERNAME</p>
<p>stty erase ^?</p>
<p>#LD_ASSUME_KERNEL=2.2.5; export LD_ASSUME_KERNEL<br />umask 022</p>
<p>##########################################<br /># Create directories for Oracle installation.<br />##########################################</p>
<p>¦ software directories:<br />cd /opt<br />mkdir -p app/oracle<br />chown -R oracle.oinstall app/oracle/<br />chmod -R 775 app/oracle/</p>
<p>ls -l app/<br />total 4<br />drwxrwxr-x  2 oracle oinstall 4096 Apr 13 13:16 oracle<br />[root@udev10lin01 opt]#</p>
<p>¦ Database file directory:<br />mkdir /u01/oradata<br />chown oracle:oinstall /u01/oradata<br />chmod 775 /u01/oradata</p>
<p>¦ Recovery file directory (flash recovery area):<br />mkdir /u01/flash_recovery_area<br />chown oracle:oinstall /u01/flash_recovery_area<br />chmod 775 /u01/flash_recovery_area</p>
<p>##########################################<br /># Install Oracle base software.<br />##########################################</p>
<p>[oracle@udev10lin01 ~]$ cd /opt/app/oracle/software/<br />[oracle@udev10lin01 software]$ ls -l<br />total 653712<br />-rw-r&#8211;r&#8211;  1 oracle oinstall 668734007 May 18 10:54 10201_database_linux32.zip</p>
<p>unzip 10201_database_linux32.zip</p>
<p>[oracle@udev10lin01 software]$ ls -l<br />total 653712<br />-rw-r&#8211;r&#8211;  1 oracle oinstall 668734007 May 18 10:54 10201_database_linux32.zip<br />drwxr-xr-x  6 oracle oinstall      4096 Jun 12 14:50 database<br />[oracle@udev10lin01 software]$</p>
<p>##########################################<br /># Run Oracle installer.<br />##########################################</p>
<p>** First disable X11 access controls by running xhost+ as your current gnome/kde<br />user.</p>
<p>cd /opt/app/oracle/software/database<br />    ./runInstaller -silent -responseFile /opt/app/oracle/software/uberdev-f8-oracle10.2.0.2-recorded.rsp  <br />                   -jreLoc /opt/jdk1.6.0_06 <br />                   -IgnoreSysPrereqs</p>
<p>    &#8211; Select default inventory directory and &#8216;oracle&#8217; user.<br />    &#8211; Select typical install.<br />    &#8211; Select Standard Edition.<br />    &#8211; Accept remaining defaults.<br />    &#8211; Accept warning on product specific prerequisite checks.<br />    &#8211; Select create a database.<br />    &#8211; Accept create general purpose database.<br />    &#8211; enter dbname &#8217;sample&#8217; sid &#8217;sample&#8217;, select Unicode format and enable create database with sample schemas.<br />    &#8211; accept defaults until you get to the password definition screen<br />    &#8211; define password of &#8216;password&#8217; for all default accounts (SYS, SYSTEM,<br />      SYSMAN, DBSNMP)<br />    &#8211; setup &#8216;dba&#8217; as privileged system groups.. if were not defined use<br />      default oracle group.</p>
<p>** NOTES **</p>
<p>=======================================<br />Creating an Oracle Response File for Automated Installs<br />=======================================<br />Response<br />files can be created by running the software in record mode or by<br />manually editing a sample response file. Here&#8217;s a basic demo:</p>
<p>   1. Start the OUI with this command to create the response file:<br />        ./runInstaller -IgnoreSysPrereqs <br />                  -jreLoc /opt/jdk1.6.0_06 <br />                  -record <br />                  -destinationFile /opt/app/oracle/software/uberdev-f8-oracle10.2.0.2-recorded.rsp<br />   2. Make all the selections you want to (source destination, home, home name, products).<br />   3. When you get to the Summary screen, instead of clicking on Install, click on Cancel.</p>
<p>4. Examine the resulting response file created in tmp/recorded.rsp. If<br />desired, you can manually edit this file as long as you adhere to the<br />prescribed format (see documentation).<br />   5. Now perform the silent installation like this:<br />        ./runInstaller -silent -responseFile /opt/app/oracle/software/uberdev-f8-oracle10.2.0.2-recorded.rsp</p>
<p>The progress of the installation will be reported as the script is being run.</p>
<p>If you have a problem with the installation due to incorrect entries in the response file, the installation will fail with a diagnostic message. Further information can be found in the oraInventory/logs directory. Logs with names in the format installActions-<date-timestamp>.log and silentInstall<date-timestamp>.log are created each time the OUI is run using a response file.</p>
<p>- Might need to increase available swap space.<br />Checking available swap space requirements &#8230;<br />Expected result: 8108MB<br />Actual Result: 2047MB</date-timestamp></date-timestamp></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Oracle+10.2.0.1+installation+on+Fedora+8+http://zdm2o.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Oracle+10.2.0.1+installation+on+Fedora+8+http://zdm2o.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/49/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating A Local Mirror (Fedora)</title>
		<link>http://www.codedrop.ca/blog/archives/36</link>
		<comments>http://www.codedrop.ca/blog/archives/36#comments</comments>
		<pubDate>Thu, 06 Sep 2007 17:54:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=36</guid>
		<description><![CDATA[Create a script that you&#8217;ll be able to setup as a cron entry to run daily.  For a FC7 mirror I used the following:

#!/bin/bash
ARCH=i386   # Set to the architecture of your systems

# Mirror found at: http://mirrors.fedoraproject.org/publiclist/Fedora/7/
# Be sure to include trailing slash.
RELEASES_DIR=/clientdata/yum/fedora/releases/7/Fedora/$ARCH/
RELEASES_URL=rsync://mirrors.kernel.org/fedora/releases/7/Fedora/$ARCH/
CORE_DIR=/clientdata/yum/fedora/releases/7/Live/$ARCH/os/
CORE_URL=rsync://mirrors.kernel.org/fedora/releases/7/Live/i386/os/
UPDATES_URL=rsync://mirrors.kernel.org/fedora/updates/7/$ARCH/
UPDATES_DIR=/clientdata/yum/fedora/updates/7/$ARCH/

mkdir -p $RELEASES_DIR
cd $RELEASES_DIR &#124;&#124; exit
rsync --recursive --delete -v $RELEASES_URL .

mkdir [...]]]></description>
			<content:encoded><![CDATA[<p>Create a script that you&#8217;ll be able to setup as a cron entry to run daily.  For a FC7 mirror I used the following:</p>
<pre>
#!/bin/bash
ARCH=i386   # Set to the architecture of your systems

# Mirror found at: http://mirrors.fedoraproject.org/publiclist/Fedora/7/
# Be sure to include trailing slash.
RELEASES_DIR=/clientdata/yum/fedora/releases/7/Fedora/$ARCH/
RELEASES_URL=rsync://mirrors.kernel.org/fedora/releases/7/Fedora/$ARCH/
CORE_DIR=/clientdata/yum/fedora/releases/7/Live/$ARCH/os/
CORE_URL=rsync://mirrors.kernel.org/fedora/releases/7/Live/i386/os/
UPDATES_URL=rsync://mirrors.kernel.org/fedora/updates/7/$ARCH/
UPDATES_DIR=/clientdata/yum/fedora/updates/7/$ARCH/

mkdir -p $RELEASES_DIR
cd $RELEASES_DIR || exit
rsync --recursive --delete -v $RELEASES_URL .

mkdir -p $CORE_DIR
cd $CORE_DIR || exit
rsync --recursive --delete -v $CORE_URL .

mkdir -p $UPDATES_DIR
cd $UPDATES_DIR || exit
rsync --recursive --delete -v $UPDATES_URL .</pre>
<p>Next you&#8217;ll have to configure your systems to use your local repository for updates by setting up a baseurl entry in /etc/yum.repos.d/fedora-updates.repo as described <a href="http://dailypackage.fedorabook.com/index.php?/archives/36-Package-Management-Week-Yum-Repositories-Plugins.html">here</a>.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Creating+A+Local+Mirror+%28Fedora%29+http://id2s7.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Creating+A+Local+Mirror+%28Fedora%29+http://id2s7.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/36/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
