<?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>Masao Kitamura &#187; Linux</title>
	<atom:link href="http://www.masaokitamura.com/category/linux/feed/?category_name=linux" rel="self" type="application/rss+xml" />
	<link>http://www.masaokitamura.com</link>
	<description>Blog</description>
	<lastBuildDate>Tue, 06 Dec 2011 01:00:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2-beta1-17916</generator>
		<item>
		<title>Linux: Send Process To Background And Logout</title>
		<link>http://www.masaokitamura.com/2011/09/linux-send-process-to-background-and-logout/</link>
		<comments>http://www.masaokitamura.com/2011/09/linux-send-process-to-background-and-logout/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 23:29:57 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1314</guid>
		<description><![CDATA[While process is running, press CTRL-z, then... $ bg (the output may come to foreground again, but you can logout now and the process will continue running in the background)]]></description>
			<content:encoded><![CDATA[<pre>
While process is running, press CTRL-z, then...
$ bg
(the output may come to foreground again, but you can logout now
and the process will continue running in the background)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/linux-send-process-to-background-and-logout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Using Daemonize To Run User Processes In The Background</title>
		<link>http://www.masaokitamura.com/2011/09/linux-using-daemonize-to-run-user-processes-in-the-background/</link>
		<comments>http://www.masaokitamura.com/2011/09/linux-using-daemonize-to-run-user-processes-in-the-background/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 16:46:00 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1306</guid>
		<description><![CDATA[You must use full paths to all arguments for daemonize. As of now, daemonize must be downloaded and compiled, it does not exist in APT. $ daemonize /usr/full/path/to/node /home/full/path/to/app.js]]></description>
			<content:encoded><![CDATA[<p>You must use full paths to all arguments for daemonize.</p>
<p>As of now, daemonize must be downloaded and compiled, it does not exist in APT.</p>
<pre>
$ daemonize /usr/full/path/to/node /home/full/path/to/app.js
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/linux-using-daemonize-to-run-user-processes-in-the-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: How To Fix &#8220;node js openssh not found&#8221;</title>
		<link>http://www.masaokitamura.com/2011/09/linux-how-to-fix-node-js-openssh-not-found/</link>
		<comments>http://www.masaokitamura.com/2011/09/linux-how-to-fix-node-js-openssh-not-found/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 11:38:41 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1298</guid>
		<description><![CDATA[apt-get install -y pkg-config]]></description>
			<content:encoded><![CDATA[<pre>
apt-get install -y pkg-config
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/linux-how-to-fix-node-js-openssh-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: How To Find Disk IO Usage Per Process</title>
		<link>http://www.masaokitamura.com/2011/09/linux-how-to-find-disk-io-usage-per-process/</link>
		<comments>http://www.masaokitamura.com/2011/09/linux-how-to-find-disk-io-usage-per-process/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 16:03:06 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1292</guid>
		<description><![CDATA[Sendmail sometimes uses a lot of disk IO by kicking off this process: 215 root 20 0 0 0 0 D 1 0.0 187:49.63 [jbd2/dm-0-8] Tools you can try using: iostat iotop Before: # iostat 1 avg-cpu: %user %nice %system &#8230; <a href="http://www.masaokitamura.com/2011/09/linux-how-to-find-disk-io-usage-per-process/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sendmail sometimes uses a lot of disk IO by kicking off this process:</p>
<pre>
  215 root      20   0     0    0    0 D    1  0.0 187:49.63 [jbd2/dm-0-8]
</pre>
<p>Tools you can try using:</p>
<pre>
iostat
iotop
</pre>
<p>Before:</p>
<pre>
# iostat 1
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.57    0.30    1.28   25.45    0.00   72.40

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda             145.50        22.54      1432.56   38268380 2431954938
dm-0            370.18        22.48      1432.37   38162397 2431624576
dm-1              0.06         0.05         0.18      79200     308588
</pre>
<p>After:</p>
<pre>
# /etc/init.d/sendmail stop
 * Stopping Mail Transport Agent (MTA) sendmail                                                        [ OK ]
# iostat 1
Linux 2.6.38-11-server (web201) 	09/21/2011 	_x86_64_	(4 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.00    0.00    0.00    0.00    0.00  100.00

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               0.00         0.00         0.00          0          0
dm-0              0.00         0.00         0.00          0          0
dm-1              0.00         0.00         0.00          0          0
</pre>
<p>Sendmail alternative:</p>
<pre>
# apt-get install -y postfix
(blah blah blah)
 * Starting Postfix Mail Transport Agent postfix         [ OK ]
# sendmail -t
To:me@gmail.com
Subject: test after postfix installed
do it
(this works)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/linux-how-to-find-disk-io-usage-per-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: How To Play AVI Files</title>
		<link>http://www.masaokitamura.com/2011/09/linux-how-to-play-avi-files/</link>
		<comments>http://www.masaokitamura.com/2011/09/linux-how-to-play-avi-files/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 19:41:04 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1283</guid>
		<description><![CDATA[APT packages needed to play FFmpeg .avi files: p gstreamer0.10-ffmpeg - FFmpeg plugin for GStreamer p gstreamer0.10-plugins-bad - GStreamer plugins from the "bad" set]]></description>
			<content:encoded><![CDATA[<p>APT packages needed to play FFmpeg .avi files:</p>
<pre>
p   gstreamer0.10-ffmpeg            - FFmpeg plugin for GStreamer
p   gstreamer0.10-plugins-bad       - GStreamer plugins from the "bad" set
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/linux-how-to-play-avi-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VIM: Swap Left Hand Directional Keys With Right Hand Command Keys</title>
		<link>http://www.masaokitamura.com/2011/09/vim-swap-left-directional-keys-with-right-command-keys/</link>
		<comments>http://www.masaokitamura.com/2011/09/vim-swap-left-directional-keys-with-right-command-keys/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 00:09:46 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1272</guid>
		<description><![CDATA[Reduce usage in your right hand using these mappings. - Mirror up and down keys - Shift left and right keys to the left hand - 's' (change one character and insert) becomes 'h' - 'd' ('dd' deletes a line) &#8230; <a href="http://www.masaokitamura.com/2011/09/vim-swap-left-directional-keys-with-right-command-keys/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Reduce usage in your right hand using these mappings.</p>
<pre>
- Mirror up and down keys
- Shift left and right keys to the left hand
- 's' (change one character and insert) becomes 'h'
- 'd' ('dd' deletes a line) becomes 'k'
- 'f' ('ff' moves cursor to end of line) becomes 'j'
- 'g' (does nothing by itself) becomes 'l'
- 'noremap' avoids infinite loop
</pre>
<pre>
~/.vimrc:

" Map Right Hand Directionals to Left Hand Commands
noremap s h
noremap d k
noremap f j
noremap g l

" Map Left Hand Commands to Right Hand Directionals
noremap h s
noremap k d
noremap j f
noremap l g
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/vim-swap-left-directional-keys-with-right-command-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu: CMake &#8220;RPM package requires rpmbuild executable&#8221;</title>
		<link>http://www.masaokitamura.com/2011/09/ubuntu-cmake-rpm-package-requires-rpmbuild-executable/</link>
		<comments>http://www.masaokitamura.com/2011/09/ubuntu-cmake-rpm-package-requires-rpmbuild-executable/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 14:19:35 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1251</guid>
		<description><![CDATA[apt-get install -y rpm]]></description>
			<content:encoded><![CDATA[<pre>apt-get install -y rpm</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/ubuntu-cmake-rpm-package-requires-rpmbuild-executable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Backup Entire Directories With Revision Control Using Subversion SVN</title>
		<link>http://www.masaokitamura.com/2011/09/linux-backup-entire-directories-with-revision-control-using-subversion-svn/</link>
		<comments>http://www.masaokitamura.com/2011/09/linux-backup-entire-directories-with-revision-control-using-subversion-svn/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 19:12:32 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1257</guid>
		<description><![CDATA[General steps (for example, the /etc directory) Install Ubuntu Server Log in and sudo bash. Import the /etc directory into your SVN repository. Check out the new directory and call it &#8220;/etc.new&#8221; Move out the old directory: &#8220;mv /etc /etc.old&#8221; &#8230; <a href="http://www.masaokitamura.com/2011/09/linux-backup-entire-directories-with-revision-control-using-subversion-svn/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div>General steps (for example, the /etc directory)</div>
<ol>
<li>Install Ubuntu Server</li>
<li>Log in and sudo bash.</li>
<li>Import the /etc directory into your SVN repository.</li>
<li>Check out the new directory and call it &#8220;/etc.new&#8221;</li>
<li>Move out the old directory: &#8220;mv /etc /etc.old&#8221;</li>
<li>Move in the new directory: &#8220;mv /etc.new /etc&#8221;</li>
<li>Fix sudoers permissions: &#8220;chmod 0440 /etc/sudoers /etc/sudoers.d/README&#8221;</li>
<li>Reboot</li>
</ol>
<div><span style="font-size: small;"><span class="Apple-style-span" style="line-height: 24px;"><br />
</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/linux-backup-entire-directories-with-revision-control-using-subversion-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Subversion SVN+SSH Import New Project</title>
		<link>http://www.masaokitamura.com/2011/09/linux-subversion-import-new-project/</link>
		<comments>http://www.masaokitamura.com/2011/09/linux-subversion-import-new-project/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 01:50:47 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1248</guid>
		<description><![CDATA[svn import myfolder svn+ssh://kitamura@svn2.cs.lmu.edu/svn/myfolder \ -m "my comment"]]></description>
			<content:encoded><![CDATA[<pre>
svn import myfolder svn+ssh://kitamura@svn2.cs.lmu.edu/svn/myfolder \
  -m "my comment"
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/linux-subversion-import-new-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Linux: Flush, Clear, Renew DHCP Cache</title>
		<link>http://www.masaokitamura.com/2011/08/ubuntu-linux-flush-clear-renew-dhcp-cache/</link>
		<comments>http://www.masaokitamura.com/2011/08/ubuntu-linux-flush-clear-renew-dhcp-cache/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 18:37:15 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1237</guid>
		<description><![CDATA[When all else fails on the client&#8230; # apt-get install -y dhcpcd # dhcpcd eth0 # dhcpcd.sh: interface eth0 has been configured with new IP=XXX.XXX.XXX.XXX If it still fails, restart the DHCP server&#8230; # /etc/init.d/dhcp3-server restart Other things to try &#8230; <a href="http://www.masaokitamura.com/2011/08/ubuntu-linux-flush-clear-renew-dhcp-cache/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When all else fails on the client&#8230;</p>
<pre>
# apt-get install -y dhcpcd
# dhcpcd eth0
# dhcpcd.sh: interface eth0 has been configured with new IP=XXX.XXX.XXX.XXX
</pre>
<p>If it still fails, restart the DHCP server&#8230;</p>
<pre>
# /etc/init.d/dhcp3-server restart
</pre>
<p>Other things to try on the client:</p>
<pre>
# dhcpcd -k eth0
# dhcpcd -n eth0
# dhcpcd eth0
# ifconfig (to check)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/08/ubuntu-linux-flush-clear-renew-dhcp-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

