<?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>Doug Jaworski</title>
	<atom:link href="http://www.dougjaworski.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dougjaworski.com/blog</link>
	<description></description>
	<lastBuildDate>Sun, 25 Jul 2010 17:03:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to Install Amazon EC2 Tools on a MAC</title>
		<link>http://www.dougjaworski.com/blog/how-to-install-amazon-ec2-tools-on-a-mac/</link>
		<comments>http://www.dougjaworski.com/blog/how-to-install-amazon-ec2-tools-on-a-mac/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 03:55:55 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[MAC]]></category>

		<guid isPermaLink="false">http://www.dougjaworski.com/blog/?p=201</guid>
		<description><![CDATA[This tutorial is intended to get you started with the Amazon EC2 API Tools on a Mac. I am running this on a PowerBook Pro with Snow Leopard.  The EC2 API Tools are a client interface to EC2 web service and extend the AWS Management Console. Create Directories Create a directory to store your AWS [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial is intended to get you started with the Amazon EC2 API Tools on a Mac. I am running this on a PowerBook Pro with Snow Leopard.  The EC2 API Tools are a client interface to EC2 web service and extend the AWS Management Console.</p>
<p><strong>Create Directorie</strong>s</p>
<p>Create a directory to store your AWS Keys and Certificates. For this tutorial we will be creating 2 directories.</p>
<p>The first directory is for your AWS Security Credentials and is typically placed in your home directory.</p>
<pre>mkdir ~/.ec2</pre>
<p>We also need a directory to place the EC2 API Tools. This can be placed in any directory location of your liking. As this is on a Mac, we will be placing in our /Applications directory.</p>
<pre>mkdir /Applications/ec2</pre>
<p><strong>Create an AWS Account</strong></p>
<p>You will first need to create an Amazon AWS account and an AWS EC2 account. This will require a credit card however you will only be charged for what you use.</p>
<p>To create an account, you need to go to http://aws.amazon.com and sign up for the service.</p>
<p>After you have created your EC2 account, you will need to create a X.509 certificate. To locate, select the your Account tab and scroll down to Access Credentials section and select <strong>Create a new Access Key</strong>. Once this is completed, you will need to save the private key file and the X.509 certificate.</p>
<p>Download both the &#8220;private Key&#8221; file and the &#8220;X.509 Certificate&#8221; file. Typically this can be in a directory of your liking but for the sake of this tutorial we will place it in your home ~./ec2. The private key file will be names something like ﻿<span style="color: #222222; font-family: sans-serif; font-size: 13px; line-height: 19px;">pk-xxxxxxxxxxxxxxxxxxxxxx.pem and the X.509 Certificate file will be named something like cert-xxxxxxxxxxxxxxxxxxxxxx.pem.</span></p>
<p><strong>Download and Install EC2 API Tools</strong></p>
<p>Download the <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&amp;categoryID=88">Amazon EC2 API Tools</a> and make sure you have the most current version. Since this tutorial was targeted for the Mac users, the default location for the the file is in your Downloads directory. Simply copy the contents of this file to you /Applications/ec2 directory.</p>
<pre>cp Downloads/ec2-api-tools-1.3-53907 /Applications/ec2</pre>
<p>A prerequisite for EC2 API Tools is Java, as we are on a Mac, it is already installed and should have JAVA_HOME set. To verify you have JAVA_HOME set, you can simply open up a terminal window and type the following:</p>
<pre>echo $JAVA_HOME</pre>
<p>It should return something like this:</p>
<pre>﻿/System/Library/Frameworks/JavaVM.framework/Home/</pre>
<p>If not, verify that you have java installed and set the JAVA_HOME Variable as defined in the next section.</p>
<p><strong>Define your Enviornment</strong></p>
<p>There are many ways to customize your environment variables with OS X.  I personally like you use .bash_profile however you might elect to use another method, this way just works out nice for me so customize to your liking.</p>
<p>﻿Open or create .bash_profile in your home directory with your favorite text editor and update with the following. Your items will have unique names when generated.</p>
<pre>export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home/</pre>
<pre>export EC2_HOME=/Applications/ec2</pre>
<pre>export EC2_PRIVATE_KEY=~/.ec2/pk-xxx.pem</pre>
<pre>export EC2_CERT=~/.ec2/cert-xxx.pem</pre>
<pre>export EC2_ACCNO=0000-0000-0000</pre>
<pre>export ACCESS_KEY=BGIRITQM7O6ZZF3R2ODC</pre>
<pre>export SECRET_KEY=lDgGzXoTKukVmZw7q7Donx/O6Jc/kFQ4P889zQu</pre>
<pre>export PATH=$PATH:$EC2_HOME/bin</pre>
<p> </p>
<div><strong>Environment Definitions</strong></div>
<div>EC2_HOME = Location of EC2 API Tools</div>
<div>EC2_PRIVATE_KEY = AWS Private Key</div>
<div>EC2_CERT = X.509 Certificate</div>
<div>EC2_ACCNO = Your EC2 Account Number which is located on the account page of your AWS account</div>
<div>ACCESS_KEY = Your AWS Access Key located under AWS Access Credentials</div>
<div>SECRET_KEY = Your AWS Secret Access Key located under AWS Access Credentials</div>
<p>After saving this file, you will need to source your .bash_profile so it will export your new variables. From a command prompt run the following command.</p>
<pre>source ~/.bash_profile</pre>
<p><strong>Create an EC2 Keypair</strong></p>
<p>In order to launch an Amazon AMI, you need a named keypair that is yours and yours alone. You can call your keypair anything you like. I called mine my-keypair for the sake of this tutorial. You will then want to move this keypair to ~/.ec2 and secure the file so only you have access to this file. You must keep this key private and secure as it is the keys to the kingdom.</p>
<pre>ec2-add-keypair my-keypair &gt; ~/.ec2/my-keypair.pem</pre>
<p> </p>
<pre>chmod 600 ~/.ec2/my-keypair.pem</pre>
<p> </p>
<p><strong>Testing in Out</strong></p>
<p>To confirm you have it setup correctly, you can simply query publicly available AMI&#8217;s with the following command</p>
<pre>ec2-describe-images -a</pre>
<p>Simple as that. In my next tutorial, I will document how to launch and customize an Ubuntu 10.04 AMI with an EBS Volume for persistant storage.</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougjaworski.com/blog/how-to-install-amazon-ec2-tools-on-a-mac/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use iWork to Cool 15inch MacBook Pro</title>
		<link>http://www.dougjaworski.com/blog/use-iwork-to-cool-15inch-macbook-pro/</link>
		<comments>http://www.dougjaworski.com/blog/use-iwork-to-cool-15inch-macbook-pro/#comments</comments>
		<pubDate>Sat, 22 May 2010 18:26:41 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[MAC]]></category>

		<guid isPermaLink="false">http://www.dougjaworski.com/blog/?p=190</guid>
		<description><![CDATA[If you are running a MacBook Pro, you know they run hot. I solved this issue on the cheap by recycling an iWork Retail Eddition box to allow for more airflow under the the MacBook. All you need is to allow a bit of air to flow on the bottom surface and this box happens [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://www.dougjaworski.com/blog/wp-content/uploads/2010/05/iwork.jpg"><img class="aligncenter size-full wp-image-192" title="iwork" src="http://www.dougjaworski.com/blog/wp-content/uploads/2010/05/iwork.jpg" alt="" width="639" height="426" /></a><br />
If you are running a MacBook Pro, you know they run hot. I solved this issue on the cheap by recycling an <a href="http://www.apple.com/iwork/" target="_blank">iWork</a> Retail Eddition box to allow for more airflow under the the MacBook. All you need is to allow a bit of air to flow on the bottom surface and this box happens to be just the right hight to accomplish with ease.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougjaworski.com/blog/use-iwork-to-cool-15inch-macbook-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excessive Response Times for Local DNS Queries</title>
		<link>http://www.dougjaworski.com/blog/excessive-response-times-for-local-dns-queries/</link>
		<comments>http://www.dougjaworski.com/blog/excessive-response-times-for-local-dns-queries/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 02:49:29 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.dougjaworski.com/blog/?p=188</guid>
		<description><![CDATA[I just finished setting up an internal Ubuntu 9.10 BIND9 DNS server on my home network and when I tried to ping an internal host by FQDN it would take a long time to respond. Actual ping times however where good. I looked at all the normal places one would look at thinking it might [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished setting up an internal Ubuntu 9.10 BIND9 DNS server on my home network and when I tried to ping an internal host by FQDN it would take a long time to respond. Actual ping times however where good. I looked at all the normal places one would look at thinking it might have been a bad resolve.conf file or host file entry. I then stumbled across /etc/nsswitch.conf. In the old days you would have nsswitch.conf resolve files first followed by DNS however it seems in Ubuntu 9.10 to look like this:</p>
<pre>hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4</pre>
<p>It just did not look right to me and so I changed it to this:</p>
<pre>hosts: files dns</pre>
<p>Problem now solved. After a bit more research I came across <a href="https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/94940">Ubuntu Bug #94940</a> which also highlighted my problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougjaworski.com/blog/excessive-response-times-for-local-dns-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Go Colts!</title>
		<link>http://www.dougjaworski.com/blog/go-colts/</link>
		<comments>http://www.dougjaworski.com/blog/go-colts/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 02:34:47 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://www.dougjaworski.com/blog/?p=184</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/dougandrada/sets/72157623037746312/"><img style="border: 0px initial initial;" src="http://www.dougjaworski.com/blog/wp-content/uploads/2010/01/ColtsAtHome-02.jpg" border="0" alt="ColtsAtHome-02.jpg" width="639" height="426" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougjaworski.com/blog/go-colts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ruby on Rails &#8211; Ubuntu Linux</title>
		<link>http://www.dougjaworski.com/blog/installing-ruby-on-rails-ubuntu-linux/</link>
		<comments>http://www.dougjaworski.com/blog/installing-ruby-on-rails-ubuntu-linux/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 03:03:28 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.dougjaworski.com/blog/?p=177</guid>
		<description><![CDATA[Over the past few weeks I have been teaching myself ever so slowly Ruby on Rails. While my background is system administration, I have always had an eye for programming logic and a respect for programmers. The first place one needs to start when learning Ruby on Rails is getting up and running Ruby on [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past few weeks I have been teaching myself ever so slowly Ruby on Rails. While my background is system administration, I have always had an eye for programming logic and a respect for programmers. The first place one needs to start when learning Ruby on Rails is getting up and running Ruby on Rails on the Server or Workstation. </p>
<p>I already have a dedicated Ubuntu Servers so I will leverage what I already have implemented and hook in Ruby on Rails. For my server environment I already have Apache 2, MySQL Server and a few other tools so I will start with that as a baseline. If you don&#8217;t have any of this installed already I have created a primer below.</p>
<p><strong>Install Apache Server<br />
</strong></p>
<pre>sudo apt-get install apache2</pre>
<p>After the install, Apache will autostart. As a result you might find an error</p>
<pre>* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
   ...done.</pre>
<p>While this is annoying, it does not impact Apache&#8217;s ability to operate but the fix is simple and resolved by creating a file called fqdn (fully qualified domain name) in /etc/apache2/conf.d/. Mine looks like this:</p>
<pre>ServerName localhost</pre>
<p>Restarting Apache will now result in a clean startup.</p>
<pre>sudo /etc/init.d/apache2 restart</pre>
<p><strong>Install Mysql Server<br />
</strong></p>
<p>While Ruby runs great with sqlite, I have on my server MySQL as it performs all the needs I have in a shared database environment. Installing is simple and is accomplished with just a few simple commands.</p>
<pre>sudo apt-get install mysql-server
sudo apt-get install libmysqlclient16-dev</pre>
<p>During the install, MySQL will prompt you to create a root password for the admin user. </p>
<p>To test the installation, log in to MySQL via command line to confirm.</p>
<pre>doug@audi:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 34
Server version: 5.0.75-0ubuntu10.2 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql></pre>
<p>And to view the databases</p>
<pre>mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
+--------------------+
2 rows in set (0.00 sec)
mysql></pre>
<p><strong>Install Ruby from Source<br />
</strong></p>
<p>While this solution might promote some argument, I believe by far the best way to work with some applications, including Ruby on Rails is to install from source. This method will give you the most control as well as provide stability when performing system upgrades or during the patching process.</p>
<p>Make a directory for all your source code. This will come in handy when you need to re-compile and add in additional functionality for future efforts.</p>
<p>You may already have a /usr/local/src directory but if you don&#8217;t, simply create one for yourself.</p>
<pre>sudo mkdir /usr/local/src</pre>
<p>We will place all source code for Ruby and RubyGems in this directory.</p>
<p>Download Ruby</p>
<pre>cd /usr/local/src</pre>
<pre>sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz</pre>
<p>You need to use sudo with wget in this case because as a normal user, you wont have the necessary permissions to save to this directory.</p>
<p>Uncompress ruby-1.8.7-p174.tar.gz</p>
<pre>sudo tar -xzvf ruby-1.8.7-p174.tar.gz
cd ruby-1.8.7-p174
sudo ./configure
sudo make
sudo make install</pre>
<p>Ruby is now installed in /usr/local/bin/ruby</p>
<p>While Ruby is installed, there a still 2 pieces that are needed before we install RubyGems.</p>
<p>Install zlib for Ruby</p>
<pre>cd /usr/local/src/ruby-1.8.7-p174/ext/zlib
sudo ruby extconf.rb --with-zlib-include=/usr/include --with-zlib-lib=/usr/lib
sudo make
sudo make install
</pre>
<p>Install openssl for Ruby</p>
<pre>cd ../openssl/
sudo ruby extconf.rb
sudo make
sudo make install</pre>
<p><strong>Install RubyGems</strong></p>
<pre>cd /usr/local/src/
sudo wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
sudo tar -xzvf rubygems-1.3.5.tgz
cd rubygems-1.3.5
sudo ruby setup.rb config
sudo ruby setup.rb setup
sudo ruby setup.rb install</pre>
<p><strong>Install RAILS</strong></p>
<pre>sudo gem install rails</pre>
<p>You will need to enable RAILS to talk to our database and this is done by installing the mysql gem.</p>
<pre>sudo gem install mysql</pre>
<p>Optionally, you can install Mongrel instead of using WebBrick.</p>
<pre>sudo gem instal mongrel</pre>
<p><strong>Install Passenger</strong></p>
<p>Passenger basically allows you to proxy RAILS applications via apache to the Ruby server &#8211; WebBrick or Mongrel. The installation is rather easy and is installed via a Ruby gem. Once installed you will need to modify your Apache configurations to point to the appropriate RAILS application.</p>
<pre>sudo gem install Passenger
sudo passenger-install-apache2-module</pre>
<p>After running passenger-install-apache2-module, it said I was missing some dependencies. In my case I needed to install the following via apt-get.</p>
<pre>sudo apt-get install build-essential apache2-prefork-dev libapr1-dev libaprutil1-dev</pre>
<p>After installing the dependancies, re-run passenger-install-apache2-module.</p>
<pre>sudo passenger-install-apache2-module</pre>
<p>The passenger configuration requires you to modify your Apache configuration file. In my case I create a file in /etc/apache2/conf.d called passenger.</p>
<pre>sudo vi /etc/apache2/conf.d/passenger</pre>
<pre>LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.8/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.8
PassengerRuby /usr/local/bin/ruby</pre>
<p>Then you need to create a virtual host to point to your new application. In my case it is setup in this fashion but there are many other ways of accomplishing the same thing.</p>
<pre>sudo vi /etc/apache2/site-available/ruby.dougjaworski.com</pre>
<p>What my virtual host file looks like.</p>
<pre>< VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName ruby.dougjaworski.com
        DocumentRoot /home/doug/rails_apps/test/public
        < Directory /home/doug/rails_apps/test/public>
                Options MultiViews
                AllowOverride All
        < /Directory>
< /VirtualHost></pre>
<p>It is important that you point DocumentRoot to the location of your applications public folder as this is what is exposed to Apache.</p>
<p>It is also important that you have a DNS record or at the very least an entry in hosts host pointing to your Apache virtual host as this is named based resolution.</p>
<p>Now you must enable the virtual host.</p>
<pre>sudo a2ensite ruby.dougjaworski.com
[sudo] password for doug:
Enabling site ruby.dougjaworski.com.
Run '/etc/init.d/apache2 reload' to activate new configuration!</pre>
<p>Reload the Apache configuration so your changes take effect.</p>
<pre>sudo /etc/init.d/apache2 reload</pre>
<p>Point your web browser to your new RAILS site!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougjaworski.com/blog/installing-ruby-on-rails-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network Connect with OS X 10.6 Snow Leopard</title>
		<link>http://www.dougjaworski.com/blog/network-connect-with-os-x-10-6-snow-leopard/</link>
		<comments>http://www.dougjaworski.com/blog/network-connect-with-os-x-10-6-snow-leopard/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 17:06:46 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[MAC]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://www.dougjaworski.com/blog/?p=168</guid>
		<description><![CDATA[I recently performed a clean install of OS X Snow Leopard on my PowerMac Pro and ran into issues when trying to connect to my companies SSL VPN. While there are numerous posts found on the web, none seem to pertain to a clean install of Snow Leopard. After debugging the issue furtherI found that [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dougjaworski.com/blog/wp-content/uploads/2009/12/nc1.jpg"><img class="alignleft size-full wp-image-175" title="nc" src="http://www.dougjaworski.com/blog/wp-content/uploads/2009/12/nc1.jpg" alt="" width="128" height="128" /></a>I recently performed a clean install of OS X Snow Leopard on my PowerMac Pro and ran into issues when trying to connect to my companies SSL VPN. While there are numerous posts found on the web, none seem to pertain to a clean install of Snow Leopard. After debugging the issue furtherI found that Network Connect was still having permission issues when trying to connect via the Network Connect client.</p>
<p><strong>Here is what I did to resolve the problem:</strong></p>
<p>Install <a href="http://www.dougjaworski.com/~doug/software/OSX/NetworkConnect6.1.dmg">NetworkConnect.dmg</a> with the version that your Juniper SSL VPN device supports. In my case, it was <a href="http://www.dougjaworski.com/~doug/software/OSX/NetworkConnect6.1.dmg">6.1</a></p>
<p>Open up Terminal and type the following commands followed by enter after each line. As you will be using sudo, you may be prompted for your password as well:</p>
<pre>sudo chmod 755 /usr/local/juniper/nc/6.1.0/
sudo mkdir '/Applications/Network Connect.app/Contents/Frameworks'</pre>
<p>I original found the above steps at various sites including the Juniper support forums but I was still running into permission issues. After digging further into the log files I found this and determined that there must be some sort of elevated root permission that needs to update some network settings that can only be done as a super user.</p>
<pre>ncproxyd[19016] ncproxyd.info ncproxyd exiting status 1 (ncproxyd.cpp:92)
ncproxyd[19054] ncproxyd.error Failed to gain root privileges: Operation not permitted</pre>
<p>To fix this you must modify the permissions of ncproxyd</p>
<pre>chmod 4711 /usr/local/juniper/nc/6.3.0/ncproxyd</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.dougjaworski.com/blog/network-connect-with-os-x-10-6-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL Server Tips</title>
		<link>http://www.dougjaworski.com/blog/mysql-server-tips/</link>
		<comments>http://www.dougjaworski.com/blog/mysql-server-tips/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 16:04:54 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.dougjaworski.com/blog/?p=160</guid>
		<description><![CDATA[How to Install MySQL Server on RHEL 5.3 sudo yum install mysql-server mysql sudo chkconfig &#8211;add mysqld sudo chkconfig &#8211;level 2 mysqld sudo chkconfig &#8211;level 3 mysqld sudo chkconfig &#8211;level 4 mysqld How to Set the MySQL Root User Password mysql -u root mysql&#62; SET PASSWORD FOR &#8216;root&#8217;@'localhost&#8217; = PASSWORD(&#8216;yourpassword&#8217;); mysql&#62; FLUSH PRIVILEGES; mysql&#62; exit [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How to Install MySQL Server on RHEL 5.3</strong></p>
<p>sudo yum install mysql-server mysql<br />
sudo chkconfig &#8211;add mysqld<br />
sudo chkconfig &#8211;level 2 mysqld<br />
sudo chkconfig &#8211;level 3 mysqld<br />
sudo chkconfig &#8211;level 4 mysqld</p>
<p><strong>How to Set the MySQL Root User Password</strong></p>
<p>mysql -u root<br />
mysql&gt; SET PASSWORD FOR <a href="mailto:'root'@'localhost'">&#8216;root&#8217;@'localhost&#8217;</a> = PASSWORD(&#8216;yourpassword&#8217;);<br />
mysql&gt; FLUSH PRIVILEGES;<br />
mysql&gt; exit</p>
<p><strong>How to Create a Database</strong></p>
<p>mysql -u root -pyourpassword<br />
mysql&gt; CREATE DATABASE yourdatabase;</p>
<p><strong>Creating a User With Access to New Database</strong></p>
<p>mysql -u root -pyourpassword<br />
mysql&gt; GRANT ALL PRIVILEGES ON yourdatabase.* TO <a href="mailto:'yourusername'@'localhost'">&#8216;yourusername&#8217;@'localhost&#8217;</a> IDENTIFIED BY &#8216;yourpassword&#8217; WITH GRANT OPTION;<br />
mysql&gt; FLUSH PRIVILEGES;<br />
mysql&gt; exit</p>
<p><strong>To Create a User With Fewer Privileges Limited to New Database</strong></p>
<p>mysql -u root -pyourpassword<br />
mysql&gt; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON yourdatabase.* TO <a href="mailto:'yourusername'@'localhost'">&#8216;yourusername&#8217;@'localhost&#8217;</a> IDENTIFIED BY &#8216;yourpassword&#8217;;<br />
mysql&gt; FLUSH PRIVILEGES;<br />
mysql&gt; exit</p>
<p><strong>To Create a User With Access to New Database From any Host</strong></p>
<p>mysql -u root -pyourpassword<br />
mysql&gt; GRANT ALL PRIVILEGES ON yourdatabase.* TO <a href="mailto:'yourusername'@'localhost'">&#8216;yourusername&#8217;@'localhost&#8217;</a> IDENTIFIED BY &#8216;yourpassword&#8217; WITH GRANT OPTION;<br />
mysql&gt; FLUSH PRIVILEGES;<br />
mysql&gt; exit</p>
<p><strong>To Create a User With Access to database from any host</strong></p>
<p>mysql -u root -pyourpassword<br />
mysql&gt; GRANT ALL PRIVILEGES ON yourdatabase.* TO <a href="mailto:'yourusername'@'%'">&#8216;yourusername&#8217;@'%&#8217;</a> IDENTIFIED BY &#8216;yourpassword&#8217; WITH GRANT OPTION;<br />
mysql&gt; FLUSH PRIVILEGES;<br />
mysql&gt; exit</p>
<p><strong>How to Backup a Database Instance From mysqldump Command</strong></p>
<p>/bin/mysqldump -u username -ppassword &#8211;databases databasename &gt;/tmp/databasename.sql</p>
<p><strong>How to Restore a Database Instance From Command Line</strong></p>
<p>mysql -u username -ppassword databasename &lt; /tmp/databasename.sql</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougjaworski.com/blog/mysql-server-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tasty Halloween Treats</title>
		<link>http://www.dougjaworski.com/blog/tasty-halloween-treats/</link>
		<comments>http://www.dougjaworski.com/blog/tasty-halloween-treats/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 01:13:15 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Halloween 2009]]></category>

		<guid isPermaLink="false">http://www.dougjaworski.com/blog/?p=156</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a title="Halloween 2009" href="http://www.flickr.com/photos/dougandrada/sets/72157622705240248/" target="_blank"><img class="alignnone size-full wp-image-155" title="Halloween2009-03" src="http://www.dougjaworski.com/blog/wp-content/uploads/2009/10/Halloween2009-03.jpg" alt="Halloween2009-03" width="640" height="426" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougjaworski.com/blog/tasty-halloween-treats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Juliana Isabella Jaworski</title>
		<link>http://www.dougjaworski.com/blog/juliana-isabella-jaworski/</link>
		<comments>http://www.dougjaworski.com/blog/juliana-isabella-jaworski/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 00:58:08 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Photo of the Week]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Juliana]]></category>

		<guid isPermaLink="false">http://www.dougjaworski.com/blog/?p=147</guid>
		<description><![CDATA[On October 15th, 2009 the Jaworski family welcomed Juliana Isabella Jaworski into the family. She weighed in at a healthy 7.0lbs. Welcome to the family Juliana!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/dougandrada/4034470593/in/set-72157622469940617/"><img class="alignnone size-full wp-image-148" title="Juliana_Home-52" src="http://www.dougjaworski.com/blog/wp-content/uploads/2009/10/Juliana_Home-52.jpg" alt="Juliana_Home-52" width="640" height="426" /></a></p>
<p>On October 15th, 2009 the Jaworski family welcomed Juliana Isabella Jaworski into the family. She weighed in at a healthy 7.0lbs. Welcome to the family Juliana!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougjaworski.com/blog/juliana-isabella-jaworski/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Papua New Guinea Family Photos From the 1970&#8242;s</title>
		<link>http://www.dougjaworski.com/blog/papua-new-guinea-family-photos-from-the-1970s/</link>
		<comments>http://www.dougjaworski.com/blog/papua-new-guinea-family-photos-from-the-1970s/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 00:35:02 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Papua New Guinea]]></category>

		<guid isPermaLink="false">http://www.dougjaworski.com/blog/?p=143</guid>
		<description><![CDATA[I have started a side project of taking all of our family photos shot in the 1970&#8242;s and scanning them to digital media. This picture is from the time our family lived in Papua New Guinea for a few years.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/dougandrada/4010090140/"><img class="alignnone size-full wp-image-144" title="png-001" src="http://www.dougjaworski.com/blog/wp-content/uploads/2009/10/png-001.jpg" alt="png-001" width="640" height="384" /></a></p>
<p>I have started a side project of taking all of our family photos shot in the 1970&#8242;s and scanning them to digital media. This picture is from the time our family lived in Papua New Guinea for a few years.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougjaworski.com/blog/papua-new-guinea-family-photos-from-the-1970s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
