<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Philip</title>
	<atom:link href="http://thephil.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://thephil.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 23 Feb 2010 19:11:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='thephil.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Philip</title>
		<link>http://thephil.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://thephil.wordpress.com/osd.xml" title="Philip" />
	<atom:link rel='hub' href='http://thephil.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Setup POSTFIX SMTP AUTH to relayhost</title>
		<link>http://thephil.wordpress.com/2010/02/23/setup-postfix-smtp-auth-to-relayhost/</link>
		<comments>http://thephil.wordpress.com/2010/02/23/setup-postfix-smtp-auth-to-relayhost/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 19:11:27 +0000</pubDate>
		<dc:creator>Philip Rhee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[postfix relayhost smtp]]></category>

		<guid isPermaLink="false">http://thephil.wordpress.com/?p=46</guid>
		<description><![CDATA[To use other email server&#8217;s SMTP service to send emails, following is very basic setup for POSTFIX. 1)  Add or Edit the following in /etc/postfix/main.cf smtp_sasl_auth_enable = yes #enables sasl authentication smtpd_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd relayhost = smtp.youremailserver.net OR smtp.youremailserver.net:587 2)  Add /etc/postfix/sasl/sasl_passwd smtp.youremailserver.net       username:password 3)  # postmap /etc/postfix/sasl/sasl_passwd 4)  # chmod 600 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=46&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To use other email server&#8217;s SMTP service to send emails, following is very basic setup for POSTFIX.</p>
<p>1)  Add or Edit the following in /etc/postfix/main.cf</p>
<p style="padding-left:30px;">smtp_sasl_auth_enable = yes #enables sasl authentication</p>
<p style="padding-left:30px;">smtpd_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd</p>
<p style="padding-left:30px;">relayhost = smtp.youremailserver.net OR smtp.youremailserver.net:587</p>
<p>2)  Add /etc/postfix/sasl/sasl_passwd</p>
<p style="padding-left:30px;">smtp.youremailserver.net       username:password</p>
<p>3)  # postmap /etc/postfix/sasl/sasl_passwd</p>
<p>4)  # chmod 600 sasl_passwd sasl_passwd.db</p>
<p>5) # /etc/init.d/postfix reload</p>
<p>This was on Ubuntu 8.04.</p>
<p style="padding-left:30px;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thephil.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thephil.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thephil.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thephil.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thephil.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thephil.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thephil.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thephil.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thephil.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thephil.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thephil.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thephil.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thephil.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thephil.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=46&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thephil.wordpress.com/2010/02/23/setup-postfix-smtp-auth-to-relayhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61fe585cb2f8a0c801628fed479a5c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Philip Rhee</media:title>
		</media:content>
	</item>
		<item>
		<title>Automate RSYNC using SSH with KEYCHAIN</title>
		<link>http://thephil.wordpress.com/2010/02/19/automate-rsync-using-ssh-with-keychain/</link>
		<comments>http://thephil.wordpress.com/2010/02/19/automate-rsync-using-ssh-with-keychain/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 01:40:32 +0000</pubDate>
		<dc:creator>Philip Rhee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[keychain]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://thephil.wordpress.com/?p=42</guid>
		<description><![CDATA[This will create password enabled RSA/DSA key on localbox to log into remotebox. 1)  localbox:~#ssh-keygen OR ssh-keygen -t dsa This will create ~/.ssh/id_rsa (private key) and ~/.ssh/id_rsa.pub (public key) ssh-keygen -t dsa will create id_dsa and id_dsa.pub 2)  localbox:~#scp ~/.ssh/id_rsa.pub username@remotebox:/home/username This will transfer public key to remotebox. 3)  remotebox:~#cat id_rsa.pub &#62;&#62; ~/.ssh/authorized_keys That is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=42&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This will create password enabled RSA/DSA key on localbox to log into remotebox.</p>
<p>1)  localbox:~#<strong>ssh-keygen </strong>OR <strong>ssh-keygen -t dsa</strong></p>
<ul>
<li>This will create ~/.ssh/id_rsa (private key) and ~/.ssh/id_rsa.pub (public key)</li>
<li>ssh-keygen -t dsa will create id_dsa and id_dsa.pub</li>
</ul>
<p>2)  localbox:~#<strong>scp ~/.ssh/id_rsa.pub username@remotebox:/home/username</strong></p>
<ul>
<li>This will transfer public key to remotebox.</li>
</ul>
<p>3)  remotebox:~#<strong>cat id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys</strong></p>
<p>That is it for setting up ssh keys.</p>
<p>Install KEYCHAIN&#8230;</p>
<p style="padding-left:30px;"># tar xzvf keychain-1.0.tar.gz</p>
<p style="padding-left:30px;"># cd keychain-1.0</p>
<p style="padding-left:30px;"># install -m0755 keychain /usr/bin</p>
<pre>
</pre>
<p>Create ~/.bash_profile with following on localbox&#8230;.</p>
<p style="padding-left:30px;">#!/bin/bash<br />
#on this next line, we start keychain and point it to the private keys that<br />
#we&#8217;d like it to cache<br />
/usr/bin/keychain ~/.ssh/id_rsa<br />
source $HOME/.keychain/${HOSTNAME}-sh<br />
#redirect ~/.ssh-agent output to /dev/null to zap the annoying<br />
#&#8221;Agent PID&#8221; message<br />
source ~/.ssh-agent &gt; /dev/null<br />
#sourcing ~/.bashrc is a good thing<br />
source ~/.bashrc</p>
<p>Logout and login&#8230; Now you are set to ssh to remotebox.  ps aux | grep ssh-agent will show that ssh-agent is running.</p>
<p>Create RSYNC script&#8230;</p>
<p style="padding-left:30px;">#!/bin/bash<br />
BACKUPDIR_REMOTE=/remotedir                   # Remote backup directory<br />
BACKUPDIR_LOCAL=/localdir    # Local backup directory</p>
<p>keychain $HOME/.ssh/id_rsa<br />
source $HOME/${HOSTNAME}-sh<br />
rsync -avz -e ssh backup@remotebox:$BACKUPDIR_REMOTE/* $BACKUPDIR_LOCAL</p>
<p style="padding-left:30px;">
<pre style="padding-left:30px;">
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thephil.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thephil.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thephil.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thephil.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thephil.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thephil.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thephil.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thephil.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thephil.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thephil.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thephil.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thephil.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thephil.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thephil.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=42&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thephil.wordpress.com/2010/02/19/automate-rsync-using-ssh-with-keychain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61fe585cb2f8a0c801628fed479a5c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Philip Rhee</media:title>
		</media:content>
	</item>
		<item>
		<title>Note on PHP Session</title>
		<link>http://thephil.wordpress.com/2009/12/21/note-on-php-session/</link>
		<comments>http://thephil.wordpress.com/2009/12/21/note-on-php-session/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 22:49:50 +0000</pubDate>
		<dc:creator>Philip Rhee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php session risk security]]></category>

		<guid isPermaLink="false">http://thephil.wordpress.com/2009/12/21/note-on-php-session/</guid>
		<description><![CDATA[Following comment is from http://www.sitepoint.com/blogs/2004/03/03/notes-on-php-session-security/#. This was a good short thought on php session security issue. hello. php’s built-in session_x() functions work well enough, but there are cases where you will want to roll your own. the first to come to mind is that you’ll run into trouble when implementing a single site (domain) across [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=41&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following comment is from http://www.sitepoint.com/blogs/2004/03/03/notes-on-php-session-security/#.</p>
<p>This was a good short thought on php session security issue.</p>
<p>hello.<br />
php’s built-in session_x() functions work well enough, but there are cases where you will want to roll your own. the first to come to mind is that you’ll run into trouble when implementing a single site (domain) across multiple machines (httpd processes) as in a web server farm.<br />
fortunately, php’s header() or setcookie() functions make this an easy task.<br />
i have monkeyed up a function called session_begin() which takes two optional arguments: session_id, and session_key.<br />
session_id is, of course, a string which identifies a given unique session; session_key is a string which is intended to help ensure that the provided session is indeed unique. consider the following.</p>
<p>http client one comes along and acquires a legitimate session, abc123. along with generating this session, the server records something unique about http client one, or about the communication itself, such as http client one’s remote ip address (not a good idea, keep reading). this can be anything at all, not necessarily limited to an http context, and this is stored as session_key. all subsequent requests from http client one will contain the session abc123. the idea is that session_key should be something determined by the server, on the server-side, not provided by the client (i.e., javascript or hidden form-field or whathaveyou), as this is trivial for an attacker to spoof.</p>
<p>now, sitting across the coffee shop, http client two has been watching http client one’s tcp packets and knows exactly what that session_id is. therefore, http client two does not need to poke around for usernames or passwords. no need for a phishing site. no trojan horse, spyware, keystroke logger, fraudulent phone calls, or anything else. http client two needs only to make a request to the same domain with the same session_id, while http client one is logged in. http client two now has immediate access to anything and everything available to http client one, and nobody even knows about it. that’s right, a simple, untraceable attack. this works, by my testing, with yahoo! mail, gmail, hotmail, and probably about every web site i could try it on, though ssl makes things more cumbersome – i should say, not very much more cumbersome, if the attacker can see the underlying tcp.</p>
<p>…however, since the server is also using session_key to store and retrieve it’s sessions, http client two must appear to the server as identical to http client one. for example, say the server stores http_client_id (”mozilla” or “ie” or whathaveyou) in the session_key. now, http client two must make it’s request to the server not only with the same session as http client one, but also with the same browsing software. or, say, session_key is remote_addr: now http client two must also spoof his victim’s ip.</p>
<p>the obvious argument to this is that, in our scenario, http client two sees the whole http request made by his victim. therefore, it is entirely probable that he will spoof his request to match his victims to the greatest extent possible, in trying to make his hijack. therefore, the server would see the same http_client_id (or accept_charset or whatever else you could think of). and using the client-provided ip address or any function of the underlying ip connection as a session_key would be stupid on the server’s part since the server may not know about http tunnels, proxy servers, ip-masquerading firewalls, or anything else which could (and inevitably would) obfuscate the reliability of such a method.</p>
<p>so, here is my post in a nutshell: what would serve as a good spoof-proof session_key? that is, what can a web server (or the system running a web server) see about a web client that is not likely (even better, not possible) to be reproduced in an attacker’s hijack request? answer that, and you’ll have a secure, unbreakable session management implementation. you will no longer need ssl, even when dealing out credit card numbers and social security numbers and the like.</p>
<p>it’s not a rhetorical question. i don’t expect anybody to be able to answer, or else yahoo! and hotmail, gmail at least, would not be quite so easy to break into. if you can answer, though, you would be well-advised to seek a patent.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thephil.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thephil.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thephil.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thephil.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thephil.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thephil.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thephil.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thephil.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thephil.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thephil.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thephil.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thephil.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thephil.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thephil.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=41&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thephil.wordpress.com/2009/12/21/note-on-php-session/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61fe585cb2f8a0c801628fed479a5c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Philip Rhee</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding sudo user/group in Centos 5</title>
		<link>http://thephil.wordpress.com/2009/10/30/adding-sudo-user-in-centos-5/</link>
		<comments>http://thephil.wordpress.com/2009/10/30/adding-sudo-user-in-centos-5/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 19:40:18 +0000</pubDate>
		<dc:creator>Philip Rhee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://thephil.wordpress.com/?p=37</guid>
		<description><![CDATA[To add user to use sudo : Log in as root run /usr/sbin/visudo (it will be opened with vim editor) add a line at the end,   %groupname   ALL=(ALL)  ALL please change &#8220;groupname&#8221; to the groupname of the user you are trying to add as sudoer. note that all users in this &#8220;groupname&#8221; will be in able [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=37&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To add user to use sudo :</p>
<ol>
<li>Log in as root</li>
<li>run /usr/sbin/visudo (it will be opened with vim editor)</li>
<li>add a line at the end,   <em>%groupname   ALL=(ALL)  ALL<br />
</em></p>
<ul>
<li>please change &#8220;<em>groupname</em>&#8221; to the groupname of the user you are trying to add as sudoer.</li>
<li>note that all users in this &#8220;<em>groupname</em>&#8221; will be in able to use sudo</li>
</ul>
</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thephil.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thephil.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thephil.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thephil.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thephil.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thephil.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thephil.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thephil.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thephil.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thephil.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thephil.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thephil.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thephil.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thephil.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=37&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thephil.wordpress.com/2009/10/30/adding-sudo-user-in-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61fe585cb2f8a0c801628fed479a5c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Philip Rhee</media:title>
		</media:content>
	</item>
		<item>
		<title>LVM2 and device-mapper problem</title>
		<link>http://thephil.wordpress.com/2009/07/06/lvm2-and-device-mapper-problem/</link>
		<comments>http://thephil.wordpress.com/2009/07/06/lvm2-and-device-mapper-problem/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 16:46:27 +0000</pubDate>
		<dc:creator>Philip Rhee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[lvm lv device mapper logical volume manager group]]></category>

		<guid isPermaLink="false">http://thephil.wordpress.com/2009/07/06/lvm2-and-device-mapper-problem/</guid>
		<description><![CDATA[After installing LVM2 (logical volume manager) on Ubuntu 8.04, I received the following error msg when I try to create LV (logical volume). /proc/misc: No entry for device-mapper found Is device-mapper driver missing from kernel? Failure to communicate with kernel device-mapper driver. I solved the problem by doing the following. root@linux:~#modprobe dm_mod root@linux:~#modprobe dm_mirror root@linux:~#modprobe [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=36&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After installing LVM2 (logical volume manager) on Ubuntu 8.04, I received the following error msg when I try to create LV (logical volume).</p>
<p>/proc/misc: No entry for device-mapper found<br />
Is device-mapper driver missing from kernel?<br />
Failure to communicate with kernel device-mapper driver.</p>
<p>I solved the problem by doing the following. </p>
<p>root@linux:~#modprobe dm_mod<br />
root@linux:~#modprobe dm_mirror<br />
root@linux:~#modprobe dm_snapshot</p>
<p>It should be fine now.  Verify by :<br />
root@linux:~#lsmod | grep dm_*</p>
<p>It should look like :<br />
dm_mirror              24448  0<br />
dm_snapshot            18980  0<br />
dm_mod                 58816  5 dm_mirror,dm_snapshot</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thephil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thephil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thephil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thephil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thephil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thephil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thephil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thephil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thephil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thephil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thephil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thephil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thephil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thephil.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=36&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thephil.wordpress.com/2009/07/06/lvm2-and-device-mapper-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61fe585cb2f8a0c801628fed479a5c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Philip Rhee</media:title>
		</media:content>
	</item>
		<item>
		<title>Good Explanation of Broadcast &amp; Collision Domains</title>
		<link>http://thephil.wordpress.com/2009/07/03/good-explanation-of-broadcast-collision-domains/</link>
		<comments>http://thephil.wordpress.com/2009/07/03/good-explanation-of-broadcast-collision-domains/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 19:21:26 +0000</pubDate>
		<dc:creator>Philip Rhee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://thephil.wordpress.com/2009/07/03/good-explanation-of-broadcast-collision-domains/</guid>
		<description><![CDATA[I thought his did a great job of giving overall view of what broadcast and collision domains are, and other fundamental parts to network. This is essential in understanding what network is about and why there is a need to manage them, or at least implment them well-designed. http://www.techexams.net/technotes/networkplus/networkcomponents.shtml<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=35&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I thought his did a great job of giving overall view of what broadcast and collision domains are, and other fundamental parts to network.</p>
<p>This is essential in understanding what network is about and why there is a need to manage them, or at least implment them well-designed.</p>
<p><a href="http://www.techexams.net/technotes/networkplus/networkcomponents.shtml">http://www.techexams.net/technotes/networkplus/networkcomponents.shtml</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thephil.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thephil.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thephil.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thephil.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thephil.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thephil.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thephil.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thephil.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thephil.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thephil.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thephil.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thephil.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thephil.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thephil.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=35&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thephil.wordpress.com/2009/07/03/good-explanation-of-broadcast-collision-domains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61fe585cb2f8a0c801628fed479a5c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Philip Rhee</media:title>
		</media:content>
	</item>
		<item>
		<title>Few Simple Emacs Configuration</title>
		<link>http://thephil.wordpress.com/2009/07/01/few-simple-emacs-configuration/</link>
		<comments>http://thephil.wordpress.com/2009/07/01/few-simple-emacs-configuration/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 18:28:53 +0000</pubDate>
		<dc:creator>Philip Rhee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://thephil.wordpress.com/?p=13</guid>
		<description><![CDATA[&#160; I use emacs often in linux environment.  It is more comfortable for me then vi. Below are few configuration settings that I use to make emacs more friendlier. Just create .emacs file in  your home directory, then copy and paste the following for your liking&#8230; &#160; ;; ========== Line by line scrolling ========== (setq [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=13&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>I use emacs often in linux environment.  It is more comfortable for me then vi.</p>
<p>Below are few configuration settings that I use to make emacs more friendlier.</p>
<p>Just create .emacs file in  your home directory, then copy and paste the following for your liking&#8230;</p>
<p>&nbsp;</p>
<p><strong>;; ========== Line by line scrolling ==========<br />
</strong>(setq scroll-step 1)<br />
<strong>;; ======== Place Backup Files in Specific Directory =========</strong></p>
<pre><code>;; Put autosave files (ie #foo#) in one place, *not*
;; scattered all over the file system!
(defvar autosave-dir
 (concat "/tmp/emacs_autosaves/" (user-login-name) "/"))

(make-directory autosave-dir t)

(defun auto-save-file-name-p (filename)
  (string-match "^#.*#$" (file-name-nondirectory filename)))

(defun make-auto-save-file-name ()
  (concat autosave-dir
   (if buffer-file-name
      (concat "#" (file-name-nondirectory buffer-file-name) "#")
    (expand-file-name
     (concat "#%" (buffer-name) "#")))))

;; Put backup files (ie foo~) in one place too. (The backup-directory-alist
;; list contains regexp=&gt;directory mappings; filenames matching a regexp are
;; backed up in the corresponding directory. Emacs will mkdir it if necessary.)
(defvar backup-dir (concat "/tmp/emacs_backups/" (user-login-name) "/"))
(setq backup-directory-alist (list (cons "." backup-dir)))
</code><strong><code>

</code>;;====== Set Basic Colors =========</strong></pre>
<div>;; set basic colors for all buffers</div>
<div>
<div>;; Set cursor and mouse-pointer colours</div>
<p>(set-cursor-color &#8220;red&#8221;)<br />
(set-mouse-color &#8220;goldenrod&#8221;)</p>
<div>;; Set region background colour</div>
<p>(set-face-background &#8216;region &#8220;blue&#8221;)</p>
<div>;; Set emacs background colour</div>
<p>(set-background-color &#8220;black&#8221;)</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thephil.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thephil.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thephil.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thephil.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thephil.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thephil.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thephil.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thephil.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thephil.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thephil.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thephil.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thephil.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thephil.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thephil.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=13&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thephil.wordpress.com/2009/07/01/few-simple-emacs-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61fe585cb2f8a0c801628fed479a5c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Philip Rhee</media:title>
		</media:content>
	</item>
		<item>
		<title>Uploading large file with PHP</title>
		<link>http://thephil.wordpress.com/2009/06/25/uploading-large-file-with-php/</link>
		<comments>http://thephil.wordpress.com/2009/06/25/uploading-large-file-with-php/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 18:22:33 +0000</pubDate>
		<dc:creator>Philip Rhee</dc:creator>
				<category><![CDATA[PHP Stuff]]></category>
		<category><![CDATA[large files]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://thephil.wordpress.com/?p=6</guid>
		<description><![CDATA[This seems like a common problem.  In my case, our field reps need to send scanned reports to central office.  The file size varies from 5M to 100M.  We are predominantly LAMP shop so php.ini settings need to be configured. upload_max_filesize : 2M is default.  set it higher. memory_limit : set it higher to match your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=6&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This seems like a common problem.  In my case, our field reps need to send scanned reports to central office.  The file size varies from 5M to 100M.  We are predominantly LAMP shop so <strong>php.ini</strong> settings need to be configured.</p>
<ul>
<li>upload_max_filesize : 2M is default.  set it higher.</li>
<li>memory_limit : set it higher to match your needs. 128M is default</li>
<li>max_input_time : default is 60 (seconds).  change needed as you prefer.</li>
<li>post_max_size : setting this to match upload_max_filesize is a good idea.  8M is default.</li>
<li>max_execution_time : DONT CHANGE THIS.  it is a good idea to set this in your script using &#8220;set_time_limit(0)&#8221;.  Zero means no time limit.  Default is 30 (seconds).  More details <a title="set_time_limit" href="http://us.php.net/set_time_limit" target="_blank">HERE&#8230;</a> </li>
</ul>
<p>Play around with the above settings to match what you&#8217;ll need.  This is based on PHP version 5.2.3</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thephil.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thephil.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thephil.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thephil.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thephil.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thephil.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thephil.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thephil.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thephil.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thephil.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thephil.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thephil.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thephil.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thephil.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=6&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thephil.wordpress.com/2009/06/25/uploading-large-file-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61fe585cb2f8a0c801628fed479a5c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Philip Rhee</media:title>
		</media:content>
	</item>
		<item>
		<title>Beginning&#8230;</title>
		<link>http://thephil.wordpress.com/2009/06/25/beginning/</link>
		<comments>http://thephil.wordpress.com/2009/06/25/beginning/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 00:42:40 +0000</pubDate>
		<dc:creator>Philip Rhee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://thephil.wordpress.com/?p=3</guid>
		<description><![CDATA[So I decided to start a blog to record some of the things I do throughout the day. Hopefully some of you will find it interesting, beneficial, or maybe absolutely absurd. In any case, please feel free to share your opinions and comments.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=3&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I decided to start a blog to record some of the things I do throughout the day.</p>
<p>Hopefully some of you will find it interesting, beneficial, or maybe absolutely absurd.</p>
<p>In any case, please feel free to share your opinions and comments.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thephil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thephil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thephil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thephil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thephil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thephil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thephil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thephil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thephil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thephil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thephil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thephil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thephil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thephil.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thephil.wordpress.com&amp;blog=8315728&amp;post=3&amp;subd=thephil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thephil.wordpress.com/2009/06/25/beginning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61fe585cb2f8a0c801628fed479a5c0c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Philip Rhee</media:title>
		</media:content>
	</item>
	</channel>
</rss>
