<?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>Redstream Blog &#187; Linux/Mac OS</title>
	<atom:link href="http://blog.redstream.nl/tag/linuxmac-os/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.redstream.nl</link>
	<description>Pragmatic Integrators</description>
	<lastBuildDate>Mon, 26 Jul 2010 06:09:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=415</generator>
		<item>
		<title>Using Oracle XE on your Mac (part 3): Improving the basics</title>
		<link>http://blog.redstream.nl/2008/12/08/using-oracle-xe-on-your-mac-part-3-improving-the-basics/</link>
		<comments>http://blog.redstream.nl/2008/12/08/using-oracle-xe-on-your-mac-part-3-improving-the-basics/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 15:30:51 +0000</pubDate>
		<dc:creator>Pascal Alma</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Linux/Mac OS]]></category>
		<category><![CDATA[Oracle XE]]></category>

		<guid isPermaLink="false">http://www.pascalalma.net/?p=284</guid>
		<description><![CDATA[In my previous posts I installed Debian as a virtual server and installed Oracle XE on it. In this post some minor improvements are being described. The first is to make use of a fixed IP address for the Debian instance (in my default setup I made use of DHCP to obtain an IP address). [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://www.pascalalma.net/2008/12/07/using-oracle-xe-on-your-mac-part-2-xe-installation/">previous</a> <a href="http://www.pascalalma.net/2008/12/06/using-oracle-xe-on-your-mac-part-1-debian-installation/">posts</a> I installed Debian as a virtual server and installed Oracle XE on it. In this post some minor improvements are being described. The first is to make use of a fixed IP address for the Debian instance (in my default setup I made use of DHCP to obtain an IP address). This is done in Debian by editing the file &#8216;/etc/network/interfaces&#8217;. <span id="more-284"></span><br />
Originally I had this in the file:</p>
<blockquote><p>
# This file describes the network interfaces available on your system<br />
# and how to activate them. For more information, see interfaces(5).</p>
<p># The loopback network interface<br />
auto lo<br />
iface lo inet loopback</p>
<p># The primary network interfaces<br />
allow-hotplug eth0</p>
<p>iface eth0 inet dhcp
</p></blockquote>
<p>And I changed it into:</p>
<blockquote><p>
# This file describes the network interfaces available on your system<br />
# and how to activate them. For more information, see interfaces(5).</p>
<p># The loopback network interface<br />
auto lo<br />
iface lo inet loopback</p>
<p># The primary network interfaces<br />
allow-hotplug eth0</p>
<p>iface eth0 inet static<br />
       address 192.168.2.16<br />
       netmask 255.255.255.0<br />
       network 192.168.2.1<br />
       broadcast 192.168.2.255<br />
       gateway 192.168.2.1
</p></blockquote>
<p>Now when you restart the virtual server the Debian server will have the IP address 192.168.2.16. You can test this first by performing the &#8216;ifconfig&#8217;  command in Debian. And the real test is to open up a terminal in Mac OS and ping there the set IP:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-19.png" width="600" /></p>
<p>Next step is to match the name &#8216;xe-server&#8217; to this IP address in Mac OS. You can do this by editing the hosts file with:<br />
<code>sudo nano /private/etc/hosts</code><br />
In my case I added the line:<br />
<code>192.168.2.16     xe-server</code><br />
Now you can access the Debian server with &#8216;http://xe-server:8080/apex&#8217; or &#8216;system@//xe-server:1521/xe&#8217; in <a href="http://www.oracle.com/technology/software/products/sql/index.html">SQLDeveloper</a>.<br />
This was the last post about this issue. I hope it helps you in some way. Otherwise it was fun to do anyway :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.redstream.nl/2008/12/08/using-oracle-xe-on-your-mac-part-3-improving-the-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Oracle XE on your Mac (part 2): XE Installation</title>
		<link>http://blog.redstream.nl/2008/12/07/using-oracle-xe-on-your-mac-part-2-xe-installation/</link>
		<comments>http://blog.redstream.nl/2008/12/07/using-oracle-xe-on-your-mac-part-2-xe-installation/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 13:20:00 +0000</pubDate>
		<dc:creator>Pascal Alma</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Linux/Mac OS]]></category>
		<category><![CDATA[Oracle XE]]></category>

		<guid isPermaLink="false">http://www.pascalalma.net/?p=263</guid>
		<description><![CDATA[In this post we will install Oracle XE on the virtual Debian server that we installed in part 1. This installation is described in detail on several sites. I started with the instruction from this site. With the production release you only need the instructions in the grey box: First log in as root and [...]]]></description>
			<content:encoded><![CDATA[<p>In this post we will install Oracle XE on the virtual Debian server that we installed in <a href="http://www.pascalalma.net/2008/12/06/using-oracle-xe-on-your-mac-part-1-debian-installation/">part 1</a>. This installation is described in detail on several sites. I started with the instruction from <a href="http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html">this site</a>. <span id="more-263"></span><br />
With the production release you only need the instructions in the grey box:<br />
First log in as root and add to the /etc/app/sources.list:<br />
<code>deb http://oss.oracle.com/debian unstable main non-free</code><br />
Perform an update with:<br />
<code>apt-get update</code><br />
Then we install the oracle-xe package with:<br />
<code>apt-get install oracle-xe</code><br />
This may take a while since it has to download the Oracle XE package. After the installation you will get this:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/4____picture-1.png" width="600" /></p>
<p>Like it says, the next step is to perform the command<br />
<code>/etc/init.d/oracle-xe configure</code><br />
I accept all defaults so the database is started automatically when the Debian instance is started, but hey, that&#8217;s the only reason I made this instance.<br />
When the database is installed, we need to make it accessable from outside the Debian server. There are several ways to this this. The way I did this is to setup a ssh tunnel to the Debian server from my Mac OS so I can access the Apex application with a browser (I found this tip <a href="http://www.debian-administration.org/articles/430">here</a>).<br />
To setup the tunnel (this is done on the host system, Mac OS in our case) open up a terminal window and enter the command:<br />
<code>ssh 192.168.2.32 -L 8081:localhost:8080</code><br />
(Btw, to obtain the ip address of the Debian server you perform the command &#8216;ifconfig&#8217; and you get something like the following where &#8216;eth0&#8242; is the adapter with the needed IP address:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-31.png" width="600"/></p>
<p>So when the ssh command is issued we login into the Debain box as shown here:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-61.png"  width="600" /></p>
<p>While this ssh connection is open, we can open up a browser in the Mac OS and go to the url &#8216;http://localhost:8081/apex&#8217;  and we end up on the Debian host:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-71.png" width="600" /></p>
<p>In the Apex application choose &#8216;Administration&#8217; and on the right side of the screen choose the option &#8216;manage http access&#8217;. In the screen that then appears, select the option &#8216;Available from local server and remote clients&#8217; and click &#8216;Apply Changes&#8217;.<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-81.png" width="600" /></p>
<p>When this change is done, we can access the Apex application directly from the host with the following url:&#8217;http://192.168.2.32:8080/apex&#8217;. The ssh tunnel is no longer needed.<br />
Now the Oracle XE installation is ready to be used in the Mac OS and it will take a minimum of the available memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.redstream.nl/2008/12/07/using-oracle-xe-on-your-mac-part-2-xe-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Oracle XE on your Mac (part 1): Debian installation</title>
		<link>http://blog.redstream.nl/2008/12/06/using-oracle-xe-on-your-mac-part-1-debian-installation/</link>
		<comments>http://blog.redstream.nl/2008/12/06/using-oracle-xe-on-your-mac-part-1-debian-installation/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 20:51:21 +0000</pubDate>
		<dc:creator>Pascal Alma</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Linux/Mac OS]]></category>
		<category><![CDATA[Oracle XE]]></category>

		<guid isPermaLink="false">http://www.pascalalma.net/?p=215</guid>
		<description><![CDATA[Since a week I am the proud owner of a MacBook. Besides all new nice features and tools I was getting with the MacBook I knew there was (at least) one thing I would miss: Oracle XE installation for Mac OS. Since I use this XE a lot for research and development I had the [...]]]></description>
			<content:encoded><![CDATA[<p>Since a week I am the proud owner of a <a href="http://www.apple.com/macbook/">MacBook</a>. Besides all new nice features and tools I was getting with the MacBook I knew there was (at least) one thing I would miss: Oracle XE installation for Mac OS. Since I use this XE a lot for research and development I had the workaround for this high on my list of things to do.<br />
While setting up my workaround, I noticed there are already a lot of articles about this issue, but  nevertheless I decided to post my solution, worst case it would only be for my own reference in future :-)<br />
Like I said my goal was to setup a virtual server running Oracle XE so I could access the database from Mac OS. My most important goal was to keep the memory footprint as low as possible (and cheap as possible). So setting up a virtual server running Windows was not an option! I choose to use Debian Linux, it&#8217;s free and without the graphical user interface it has  a very low memory footprint. The rest of this post I will describe how I set up Debian with Sun&#8217;s Virtual Box. In the next post I will describe how to install Oracle XE on the Debian server.<span id="more-215"></span><br />
First step is to download <a href="http://download.virtualbox.org/virtualbox/2.0.6/VirtualBox-2.0.6-39760-OSX_x86.dmg">Sun xVM Virtual Box</a> for Mac OS and install it on your MacBook. Next step is to download the Debian software <a href="http://cdimage.debian.org/debian-cd/4.0_r5/i386/iso-cd/debian-40r5-i386-netinst.iso">here</a>.<br />
When this download is done we can create a virtual machine in VirtualBox and choose Debian as operating system. Make sure you map the downloaded iso for Debian as CD/DVD drive like shown here:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-4.png" width="600"  /><br />
Another important thing is to set the Network Adapter to &#8216;host interface&#8217; so you can use your current internet connection that you have in Mac OS automatically in the Debian instance (assumed you have an internet connection!). The virtual hard disk is set to max 8 GB. This will be sufficient for me to run Oracle XE but you can create a bigger one of course if your going to do more with this server. At the end you must have something like this:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-1.png" width="600" /></p>
<p>When this is done you can start the virtual machine and you will be asked to setup Debian. The most of the installation is quite simple, only one thing I did especially for Oracle XE was define a 1.5 GB swap disk space at my virtual hard disk (I was told this was mandatory but I am not sure about that). This is how I did this:<br />
Somewhere during the setup you will be asked to partition the hard disk. When this appears you choose &#8216;Manual&#8217; from the menu:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-2.png" width="600" /></p>
<p>Next choose the hard disk to partition (for the virtual machine newbies: don&#8217;t worry about your Mac OS installation: this hard disk is your virtual one and will not affect your Mac OS installation!)<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-3.png" alt="" title="choose harddisk" width="600" /></p>
<p>Continue the setup to partition the first part of the disk as normal space. Just make sure you reserve 1,5 GB for the swap space. Here are the steps to perform:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/1____picture-1.png"  width="600" /></p>
<p><img src="http://blog.redstream.nl/wp-content/uploads/2008/12/1____picture-4.png"<br />
width=&#8221;600&#8243;  /></p>
<p><img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-5.png"  width="600" /></p>
<p>Make sure here you&#8217;ll keep 1.5 GB available<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-6.png" width="600" /></p>
<p><img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-7.png" width="600" /></p>
<p><img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-8.png" width="600"  /></p>
<p><img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-9.png" width="600"  /></p>
<p>Now the main part is setup. Now select the 1.5 GB free space to create the swap space.<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-10.png" width="600"  /></p>
<p><img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-11.png" width="600" /></p>
<p><img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-12.png" width="600" /></p>
<p><img src="http://www.pascalalma.net/wordpress/wp-content/uploads/2008/12/picture-13.png"  width="600" /></p>
<p>Here is the important part. Select the &#8216;Use as&#8217;  and give <enter> to make the other option available.<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-14.png" width="600" /></p>
<p>Pick the &#8216;swap area&#8217; as your choice and proceed.<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-15.png" width="600" /></p>
<p><img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-16.png" width="600" /></p>
<p><img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-17.png" width="600" /></p>
<p>Finally choose &#8216;yes&#8217; to perform the partitioning of the disk.<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/picture-18.png"  width="600" /></p>
<p>Next question is to add a network mirror, which I didn&#8217;t to keep the installation as minimal as possible:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/2____picture-1.png" width="600" /></p>
<p>If you are working behind a proxy you will get the following screen that takes a while to disappear:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/1____picture-21.png"  width="600" /></p>
<p>And after a while you will get (but we will fix this later, but only if you are after a proxy):<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/1____picture-31.png" width="600" /></p>
<p>The last choice you have to make is the following:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/1____picture-5.png" width="600" /></p>
<p>I deselected both options, again to keep the footprint as minimal as possible. After this, proceed with the process and fill in the mandatory answers. At the end of the installation the system will restart and the installation is finished.<br />
Now it is time to shutdown the guest system and modify the virtual machine settings in VirtualBox. If we don&#8217;t do anything, the system will start to install again after we start it again. In the VirtualBox change the boot order so the hard dsik preceeds the cd-rom from now on, like shown here:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/2____picture-4.png" width="600" /></p>
<p>After this is changed, startup the Debian server again and login as &#8216;root&#8217; user (normally you don&#8217;t do this but for the following task it make things a little easier).<br />
If you are working behind a proxy then give the following command to enter the proxy:<br />
<code>nano /etc/profile</code><br />
Add the following line to the file:<br />
<code>export http_proxy=http://user:password@my.proxy.host:proxy_port</code><br />
Save the file and perform the following command to load the profile:<br />
<code>source /etc/profile</code><br />
Next step is to modify the sources.lst file. This file contains the repositories which Debian uses for downloading necessary tools, libraries, etc. To open the file go to the directory &#8216;/etc/apt/&#8217; and open the file &#8216;sources.list&#8217; with the &#8216;nano&#8217; command:<br />
<code>cd /etc/apt<br />
nano sources.list</code><br />
If you are behind a proxy you have to uncomment the lines:<br />
<code>deb http://security.debian.org/ etch/updates main contrib<br />
deb-src http://security.debian.org/ etch/updates main contrib<br />
</code>And add the following lines:<br />
<code>deb http://ftp.debian.org/debian unstable non-free<br />
deb http://ftp.nl.debian.org/debian/ etch main</code><br />
Where the last line is depending on the location where you are.<br />
Here is the complete content of the file:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2008/12/3____picture-1.png" width="600" /></p>
<p>Now we have set the repositories and set the proxy, if needed, we can get the necessary updates by performing the command:<br />
<code>apt-get update</code><br />
If everything went well you will see the system downloading several packages. When the update is finished, we install one package, which we will need later and that is the &#8216;ssh&#8217; package. With this package also other dependent packages are installed. To install the package we issue the command:<br />
<code>apt-get install ssh</code><br />
And that&#8217;s it. We now have a Debian installation ready to have Oracle XE installed on it, which I will show in the next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.redstream.nl/2008/12/06/using-oracle-xe-on-your-mac-part-1-debian-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring your Linux server</title>
		<link>http://blog.redstream.nl/2007/09/28/60/</link>
		<comments>http://blog.redstream.nl/2007/09/28/60/#comments</comments>
		<pubDate>Fri, 28 Sep 2007 11:13:32 +0000</pubDate>
		<dc:creator>Pascal Alma</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Linux/Mac OS]]></category>

		<guid isPermaLink="false">http://www.pascalalma.net/2007/09/28/60/</guid>
		<description><![CDATA[As I stated a post ago I am not very familiair with the Linux operating system. I know some basic commands to browse the system and to perform some filesystem actions. Most of the time that is sufficient. Usually I do the development of the software on a Windows workstation and then deploy it to [...]]]></description>
			<content:encoded><![CDATA[<p>As I stated a post ago I am not very familiair with the Linux operating system. I know some basic commands to browse the system and to perform some filesystem actions. Most of the time that is sufficient. Usually I do the development of the software on a Windows workstation and then deploy it to a J2EE container running on some version/distribution of Linux. However this time I had to perform some performance tests on our applications while it was running at a (virtual) Linux server (RedHat 4 distribution, to be more specific). Usually I am able to find someone else to do the Linux thing :-) but this time I had to do it myself.<span id="more-60"></span> Luckily there was my great friend Google that helped me in this matter! I quickly found out there is a &#8216;<a href="http://linux.die.net/man/1/sar">sar</a>&#8216; command in Linux which will log all kinds of parameters about the system resources in a daily log file. And you can also use this command to create reports of the collected data. Although that was what I needed, what I really wanted was &#8216;<a href="http://ksar.atomique.net/">ksar</a>&#8216;. This is a Java tool that you can run on your Windows machine (it&#8217;s Java so you can run it anywhere, right?) and have it creating graphs based on the &#8216;sar&#8217; output. You should really check it out if you&#8217;re interested in the use of the resources on a Linux system. Here you see the tool at work:<br />
<img src="http://blog.redstream.nl/wp-content/uploads/2007/09/screenshot.JPG" alt="Screenshot" width='500'/></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.redstream.nl/2007/09/28/60/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
