<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">

<channel>
	<title>PinoyTux Weblog</title>
	
	<link>http://www.pinoytux.com</link>
	<description>Everything Linux</description>
	<lastBuildDate>Mon, 06 May 2013 06:29:44 +0000</lastBuildDate>
	<language />
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/pinoytux" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="pinoytux" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.0/</creativeCommons:license><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">pinoytux</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>“Cannot retrieve repository metadata” error on RHEL 5.7</title>
		<link>http://www.pinoytux.com/linux/cannot-retrieve-repository-metadata-error-on-rhel-5-7</link>
		<comments>http://www.pinoytux.com/linux/cannot-retrieve-repository-metadata-error-on-rhel-5-7#comments</comments>
		<pubDate>Mon, 06 May 2013 06:29:44 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=835</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/cannot-retrieve-repository-metadata-error-on-rhel-5-7';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = '&#8220;Cannot retrieve repository metadata&#8221; error on RHEL 5.7';
digg_bodytext = 'If running yum on RHEL 5.7 spews out an error like:"Cannot retrieve repository metadata (repomd.xml) for repository: rhel-5-server-cf-tools-1-rpms. Please verify its path and try again".Try the following troubleshooting tips.1.) Disable firewall like...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
If running yum on RHEL 5.7 spews out an error like: "Cannot retrieve repository metadata (repomd.xml) for repository: rhel-5-server-cf-tools-1-rpms. Please verify its path and try again". Try the following troubleshooting tips. 1.) Disable firewall like iptables to isolate firewall issues. 2.) Verify that your proxy settings are correct. 3.) Make sure that the machine is [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/cannot-retrieve-repository-metadata-error-on-rhel-5-7';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = '&#8220;Cannot retrieve repository metadata&#8221; error on RHEL 5.7';
digg_bodytext = 'If running yum on RHEL 5.7 spews out an error like:"Cannot retrieve repository metadata (repomd.xml) for repository: rhel-5-server-cf-tools-1-rpms. Please verify its path and try again".Try the following troubleshooting tips.1.) Disable firewall like...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>If running yum on RHEL 5.7 spews out an error like:</p>
<p><code>"Cannot retrieve repository metadata (repomd.xml) for repository: rhel-5-server-cf-tools-1-rpms. Please verify its path and try again".</code></p>
<p>Try the following troubleshooting tips.</p>
<p>1.) Disable firewall like iptables to isolate firewall issues.<br />
2.) Verify that your proxy settings are correct.<br />
3.) Make sure that the machine is properly subscribed to RHN Network using certificate based management. </p>
<p>If none of these has fixed the problem, try upgrading the following packages to the version that works in RHEL 5.7:</p>
<ul>
<li>python-rhsm-1.0.10-1.el5.x86_64.rpm</li>
<li>yum-3.2.22-40.el5.noarch.rpm</li>
<li>subscription-manager-1.0.24-1.el5.x86_64.rpm</li>
</ul>
<p>These packages can be downloaded from the RHN package repository.</p>
<p>Once you have downloaded the RPM&#8217;s, transfer it to the server and run rpm:</p>
<p><code>rpm -Uvh /tmp/python-rhsm-1.0.10-1.el5.x86_64.rpm /tmp/yum-3.2.22-40.el5.noarch.rpm /tmp/subscription-manager-1.0.24-1.el5.x86_64.rpm</code></p>
<p>No package dependency should occur at this point, but if it does, resolve those dependencies first then try running the above command again.</p>
<p>After the package upgrade, you should now be able to run yum without errors:</p>
<p><code>[root@localhost ~]# yum repolist<br />
Loaded plugins: product-id, security, subscription-manager<br />
This system is receiving updates from Red Hat Subscription Management.<br />
rhel-5-server-cf-tools-1-rpms                                 | 2.8 kB     00:00<br />
rhel-5-server-rhev-agent-rpms                                 | 3.1 kB     00:00<br />
rhel-5-server-rpms                                            | 3.7 kB     00:00<br />
repo id                       repo name                                        status<br />
Server                        Red Hat Enterprise 5Server - Server               3,261<br />
Supplementary                 Red Hat Enterprise 5Server - Server                  73<br />
rhel-5-server-cf-tools-1-rpms Red Hat CloudForms Tools for RHEL 5 (RPMs)           35<br />
rhel-5-server-rhev-agent-rpms Red Hat Enterprise Virtualization Agents for RHE      3<br />
rhel-5-server-rpms            Red Hat Enterprise Linux 5 Server (RPMs)         15,085<br />
repolist: 18,529</code></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>Most Popular Posts</li></ul><img src="http://feeds.feedburner.com/~r/pinoytux/~4/P0SB4CWqb88" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/cannot-retrieve-repository-metadata-error-on-rhel-5-7/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test GSM Modem Using minicom</title>
		<link>http://www.pinoytux.com/linux/test-gsm-modem-using-minicom</link>
		<comments>http://www.pinoytux.com/linux/test-gsm-modem-using-minicom#comments</comments>
		<pubDate>Mon, 01 Apr 2013 08:30:52 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[learning,]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=820</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/test-gsm-modem-using-minicom';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Test GSM Modem Using minicom';
digg_bodytext = 'If you want to test your GSM modem before running any application such as SMS gateway, a lightweight application called minicom can be used for this purpose. To install minicom, run yum:yum install minicomAfter installing, create a symlink called /dev/modem...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
If you want to test your GSM modem before running any application such as SMS gateway, a lightweight application called minicom can be used for this purpose. To install minicom, run yum: yum install minicom After installing, create a symlink called /dev/modem to your serial or USB device. In this example, my GSM modem is [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/test-gsm-modem-using-minicom';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Test GSM Modem Using minicom';
digg_bodytext = 'If you want to test your GSM modem before running any application such as SMS gateway, a lightweight application called minicom can be used for this purpose. To install minicom, run yum:yum install minicomAfter installing, create a symlink called /dev/modem...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>
<div><html><br /></html></div>
<div>If you want to test your GSM modem before running any application such as SMS gateway, a lightweight application called minicom can be used for this purpose.</p>
<p> To install minicom, run yum:</div>
<div>
</div>
<div><code>yum install minicom</code></div>
<div>
</div>
<div>After installing, create a symlink called /dev/modem to your serial or USB device. In this example, my GSM modem is detected and given the device name /dev/ttyS0, so: </div>
<div>
</div>
<div><code>ln -s /dev/ttyS0 /dev/modem</code></div>
<div>
</div>
<div>You need the symlink because minicom, by default, will use the device /dev/modem. If you have a USB device, it could be detected as /dev/ttyUSB0 or /dev/ttyACM0, depending on your setup. </div>
<div>
</div>
<div>Once you have your symlink ready, setup minicom by running:</div>
<div>
</div>
<div><code>minicom -s</code></div>
<div>
</div>
<div>You can use the next screen to setup your modem. In my case, I just need to setup the baud rate to 115200: </div>
<div>
</div>
<div><code> ââââââ[configuration]âââââââ </code></p>
<p><code> â Filenames and paths      â </code></p>
<p><code> â File transfer protocols  â </code></p>
<p><code> â Serial port setup        â </code></p>
<p><code> â Modem and dialing        â </code></p>
<p><code> â Screen and keyboard      â </code></p>
<p><code> â Save setup as dfl        â </code></p>
<p><code> â Save setup as..          â </code></p>
<p><code> â Exit                     â </code></p>
<p><code> â Exit from Minicom        â </code></p>
<p><code> ââââââââââââââââââââââââââââ </code></div>
<div>
</div>
<div>I selected Serial port setup -> E -> I </div>
<div>
</div>
<div>Then pressed Esc to fall back to minicom.</div>
<div>
</div>
<div>At the minicom screen, type the following commands to test SMS sending:</div>
<div>
<p> AT</p>
<p>You should get: OK</p>
<p><code>AT+CREG?</code></p>
<p>You should get : +CREG: 0,1</p>
<p><code>AT+CMGF=1</code></p>
<p>You should get: OK</p>
<p><code>AT+CMEE=1 </code></p>
<p>You should get: OK</p>
<p>If all above commands executed without errors, try sending a test SMS by running:</p>
<p><code>AT+CMGS="639991234567"</code><br /> <code>> Testing</code><br /><code>> </code></p>
<p>Exit the data sending part by pressing CTRL+z</p>
<p>You should get: +CMGS: 23</p>
<p></div>
<div>If not, try re-formatting the number to use the format <code>+<country Code><br />
<areacode><number></number></areacode></country></code> (do not forget the + sign).</p>
<p></div>
<div>You should now receive your test SMS to mobile number +639991234567.</div>
<div>
</div>
<div></div>
<div></div>
<div> </div>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.pinoytux.com/linux/how-to-verify-ssl-certificates" title="How to Verify SSL Certificates">How to Verify SSL Certificates</a> (0)</li><li><a href="http://www.pinoytux.com/linux/how-to-setup-raspberry-pi-part-1" title="How to Setup Raspberry Pi (Part 1)">How to Setup Raspberry Pi (Part 1)</a> (0)</li><li><a href="http://www.pinoytux.com/linux/tip-how-to-use-awk-with-netstat" title="Tip: How to Use Awk with Netstat">Tip: How to Use Awk with Netstat</a> (1)</li><li><a href="http://www.pinoytux.com/linux/tip-how-to-schedule-tasks" title="Tip: How to Schedule Tasks">Tip: How to Schedule Tasks</a> (2)</li><li><a href="http://www.pinoytux.com/linux/tip-testing-your-phpmysql-connection" title="Tip: Testing Your PHP/MySQL Connection">Tip: Testing Your PHP/MySQL Connection</a> (6)</li></ul><img src="http://feeds.feedburner.com/~r/pinoytux/~4/AjVx3EgW5Qw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/test-gsm-modem-using-minicom/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphene: The Super Supercapacitor</title>
		<link>http://www.pinoytux.com/news/graphene-the-super-supercapacitor</link>
		<comments>http://www.pinoytux.com/news/graphene-the-super-supercapacitor#comments</comments>
		<pubDate>Sun, 24 Mar 2013 07:26:27 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[cheap production]]></category>
		<category><![CDATA[dvd burner]]></category>
		<category><![CDATA[graphene]]></category>
		<category><![CDATA[lightscribe]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[supercapacitor]]></category>
		<category><![CDATA[UCLA]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=816</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/news/graphene-the-super-supercapacitor';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Graphene: The Super Supercapacitor';
digg_bodytext = 'Don&#8217;t you just love it when people discover things that can make life better? I know I do.Take graphene for example. A recent discovery by UCLA researchers lead by Professor Richard Kaner made it easier and cheaper to produce graphene supercapacitor...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
Don&#8217;t you just love it when people discover things that can make life better? I know I do. Take graphene for example. A recent discovery by UCLA researchers lead by Professor Richard Kaner made it easier and cheaper to produce graphene supercapacitor just by using a consumer grade DVD burner. To create a layer of [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/news/graphene-the-super-supercapacitor';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Graphene: The Super Supercapacitor';
digg_bodytext = 'Don&#8217;t you just love it when people discover things that can make life better? I know I do.Take graphene for example. A recent discovery by UCLA researchers lead by Professor Richard Kaner made it easier and cheaper to produce graphene supercapacitor...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>Don&#8217;t you just love it when people discover things that can make life better? I know I do.</p>
<p>Take graphene for example. A recent discovery by UCLA researchers lead by Professor Richard Kaner made it easier and cheaper to produce graphene supercapacitor just by using a consumer grade DVD burner. To create a layer of graphene, they put a layer of plastic and graphite oxide on the surface of a DVD disc and use the DVD drive&#8217;s Lightscribe laser to create graphene circuits.</p>
<p>The result is a flexible film of graphene, but still able to charge and discharge electricity a hundred, even a thousand, times faster compared to standard batteries. It is also biodegradable, so if you want to dispose of it, just throw it in your garden.</p>
<p>So what are the practical applications of graphene? Using the this new production method, it can be used as an efficient way of storing solar enegy in solar panels. And with its ability to bend and twist, it can be used in flat panel TVs, epaper or even roll-up displays. Plus, it does not contain toxic chemicals, unlike batteries, so it is better for the environment.</p>
<p><center><iframe width="448" height="252" src="http://www.youtube.com/embed/OtM6XJlynkk" frameborder="0" allowfullscreen></iframe></center></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>Most Popular Posts</li></ul><img src="http://feeds.feedburner.com/~r/pinoytux/~4/EE55bsW7Fd4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/news/graphene-the-super-supercapacitor/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Verify SSL Certificates</title>
		<link>http://www.pinoytux.com/linux/how-to-verify-ssl-certificates</link>
		<comments>http://www.pinoytux.com/linux/how-to-verify-ssl-certificates#comments</comments>
		<pubDate>Wed, 13 Mar 2013 04:19:37 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[learning,]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=810</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/how-to-verify-ssl-certificates';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'How to Verify SSL Certificates';
digg_bodytext = 'How to Verify SSL Certificates&nbsp;openssl x509 -in  -text -nooutExample:openssl x509 -in nagios.crt -text -nooutOutput:Not Before: Mar 29 09:38:10 2011 GMTNot After : Jan 15 09:55:14 2018 GMTSubject: C=PH, ST=Metro Manila, L=Mandaluyong City, O=PINOYTUX...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
How to Verify SSL Certificates &#160; openssl x509 -in -text -noout Example: openssl x509 -in nagios.crt -text -noout Output: Not Before: Mar 29 09:38:10 2011 GMT Not After : Jan 15 09:55:14 2018 GMT Subject: C=PH, ST=Metro Manila, L=Mandaluyong City, O=PINOYTUX DOT COM, OU=IT Department, CN=nagios.pinoytux.com/emailAddress=admin@pintux.com &#160; The advocate waits around a clipped unfortunate. Related [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/how-to-verify-ssl-certificates';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'How to Verify SSL Certificates';
digg_bodytext = 'How to Verify SSL Certificates&nbsp;openssl x509 -in  -text -nooutExample:openssl x509 -in nagios.crt -text -nooutOutput:Not Before: Mar 29 09:38:10 2011 GMTNot After : Jan 15 09:55:14 2018 GMTSubject: C=PH, ST=Metro Manila, L=Mandaluyong City, O=PINOYTUX...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>How to Verify SSL Certificates</p>
<p>&nbsp;</p>
<div><code>openssl x509 -in  -text -noout</code></div>
<div></div>
<div>Example:</div>
<div></div>
<div><code>openssl x509 -in nagios.crt -text -noout</code></div>
<div></div>
<div></div>
<div>Output:</div>
<div>
<blockquote><p>Not Before: Mar 29 09:38:10 2011 GMT</p>
<p>Not After : Jan 15 09:55:14 2018 GMT</p>
<p>Subject: C=PH, ST=Metro Manila, L=Mandaluyong City, O=PINOYTUX DOT COM, OU=IT Department, CN=<a href="http://nagios.pinoytux.com/emailAddress=admin@pintux.com">nagios.pinoytux.com/emailAddress=admin@pintux.com</a></p></blockquote>
</div>
<p>&nbsp;</p>
<div></div>
<p>The advocate waits around a clipped unfortunate.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.pinoytux.com/linux/test-gsm-modem-using-minicom" title="Test GSM Modem Using minicom">Test GSM Modem Using minicom</a> (0)</li><li><a href="http://www.pinoytux.com/linux/how-to-setup-raspberry-pi-part-1" title="How to Setup Raspberry Pi (Part 1)">How to Setup Raspberry Pi (Part 1)</a> (0)</li><li><a href="http://www.pinoytux.com/linux/tip-how-to-use-awk-with-netstat" title="Tip: How to Use Awk with Netstat">Tip: How to Use Awk with Netstat</a> (1)</li><li><a href="http://www.pinoytux.com/linux/tip-how-to-schedule-tasks" title="Tip: How to Schedule Tasks">Tip: How to Schedule Tasks</a> (2)</li><li><a href="http://www.pinoytux.com/linux/tip-testing-your-phpmysql-connection" title="Tip: Testing Your PHP/MySQL Connection">Tip: Testing Your PHP/MySQL Connection</a> (6)</li></ul><img src="http://feeds.feedburner.com/~r/pinoytux/~4/wqpPLQFKihU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/how-to-verify-ssl-certificates/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install and Configure minidlna on Raspberry Pi</title>
		<link>http://www.pinoytux.com/linux/install-and-configure-minidlna-on-raspberry-pi</link>
		<comments>http://www.pinoytux.com/linux/install-and-configure-minidlna-on-raspberry-pi#comments</comments>
		<pubDate>Mon, 04 Mar 2013 04:40:26 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dlna server]]></category>
		<category><![CDATA[minidevice]]></category>
		<category><![CDATA[minidlna]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<category><![CDATA[raspi]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=794</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/install-and-configure-minidlna-on-raspberry-pi';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Install and Configure minidlna on Raspberry Pi';
digg_bodytext = 'Raspberry Pi is a capable mini-device for learning and in my case, it also works as a media server.Setting up a media server is simple, the more complex part of the process is arranging your media files in a way that makes sense to you. This was the case...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
Raspberry Pi is a capable mini-device for learning and in my case, it also works as a media server. Setting up a media server is simple, the more complex part of the process is arranging your media files in a way that makes sense to you. This was the case for me.  It took me [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/install-and-configure-minidlna-on-raspberry-pi';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Install and Configure minidlna on Raspberry Pi';
digg_bodytext = 'Raspberry Pi is a capable mini-device for learning and in my case, it also works as a media server.Setting up a media server is simple, the more complex part of the process is arranging your media files in a way that makes sense to you. This was the case...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>Raspberry Pi is a capable mini-device for learning and in my case, it also works as a media server.</p>
<p>Setting up a media server is simple, the more complex part of the process is arranging your media files in a way that makes sense to you. This was the case for me.  It took me about more than 3 hours to arrange the media files, when it only took me about 30 minutes to get minidlna up and running.</p>
<p><strong>Get the media drive ready.</strong></p>
<p>So first things first, make sure that you have your media storage mounted and ready to use. I have a 1 TB Seagate GoFlex FreeAgent Desk storage connected and mounted on my Raspberry Pi. Even though the drive is already powered by a separate power supply, I plugged its USB on a powered USB hub.  It just helps me sleep at night.</p>
<p>To get started, you need the UUID of your device:</p>
<p><code>$ sudo blkid</code></p>
<p>In the output of the command above, look for your storage device and take note of the value of UUID.</p>
<p>RPi does not come with NTFS support pre-installed, so we need apt-get to install NTFS support for my drive:</p>
<p><code>$ sudo apt-get install ntfs-3g</code></p>
<p>And create the mount point:</p>
<p><code>$ sudo mkdir /mnt/GoFlex</code></p>
<p>After you have the UUID of your device and the ntfs-3g package installed, you can edit your fstab. My GoFlex drive is configured to mount at boot time so I have the following line in my fstab:</p>
<p><code>UUID=76AE49F1-D79D-6FAF-B2FC-B806785F5721A  /mnt/GoFlex   ntfs-3g    defaults      0     0</code></p>
<p>Run mount command to test:</p>
<p><code>$ sudo mount -a</code></p>
<p>If all goes well, you should have your media drive accessible by doing:</p>
<p><code>$ ls -l /mnt/GoFlex </code></p>
<p><strong>Install minidlna</strong></p>
<p>This part is so easy. Just run the apt-get command. That&#8217;s it.</p>
<p><code>sudo apt-get install minidlna</code></p>
<p>Answer yes if it asks. Done.</p>
<p><strong>Configure minidlna</strong></p>
<p>Your minidlna installation includes a config file named /etc/minidlna.conf. I want you to back the original file in case you need it.</p>
<p><code>$ sudo cp /etc/minidlna.conf /etc/minidlna.conf.$(date +%F) </code></p>
<p>After the backup, configure the minidlna.conf file:</p>
<p><code>$ sudo vi /etc/minidlna.conf</code></p>
<p>&#8230; and change the following lines:</p>
<p><code># Change the Media Dir's to point to the external hard drive, obviously change these to match your directory layout<br />
media_dir=V,/mnt/GoFlex/Files/DLNA/Movies<br />
media_dir=V,/mnt/GoFlex/Files/DLNA/TV<br />
media_dir=A,/mnt/GoFlex/Files/DLNA/Music</p>
<p># Change db_dir so that the database is saved across reboots<br />
db_dir=/home/pi/.minidlna</p>
<p># Uncomment log_dir for now in case we hit problems<br />
log_dir=/var/log<br />
</code></p>
<p>Almost there. Start the minidlna service:</p>
<p><code>$ sudo /etc/init.d/minidlna start</code></p>
<p>Tada! You now have a DLNA service ready for use with your DLNA-capable device, such as a Samsung SMART TV UA40EH5300.</p>
<p>Don&#8217;t forget to enable minidlna at startup:</p>
<p><code>$ sudo update-rc.d minidlna defaults</code></p>
<p><em>Caveat:</em></p>
<p>Although minidlna is a super lightweight and capable DLNA media server, it annoys me when it comes to updating the database. First, you need to to force-reload the service to update the database; and second, minidlna disconnects every time it detects a new media in any of the media directories defined in minidlna.conf.</p>
<p>I have no known way (yet) to address the first issue, but for the constant disconnection every time minidlna tries to update the media database when new media is found, I have disabled the inotify option in minidlna.conf:</p>
<p><code>inotify=no </code></p>
<p>The bad aftertaste of this is I have to force-reload minidlna after adding new media:</p>
<p><code>$ sudo /etc/init.d/minidlna force-reload</code></p>
<p>Aside from that, minidlna works for me.</p>
<p>Let me know if you run into an issue or a bug or something, and I will try to help you out.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.pinoytux.com/linux/how-to-setup-raspberry-pi-part-2" title="How to Setup Raspberry Pi (Part 2)">How to Setup Raspberry Pi (Part 2)</a> (0)</li><li><a href="http://www.pinoytux.com/linux/test-gsm-modem-using-minicom" title="Test GSM Modem Using minicom">Test GSM Modem Using minicom</a> (0)</li><li><a href="http://www.pinoytux.com/linux/how-to-verify-ssl-certificates" title="How to Verify SSL Certificates">How to Verify SSL Certificates</a> (0)</li><li><a href="http://www.pinoytux.com/linux/how-to-setup-raspberry-pi-part-1" title="How to Setup Raspberry Pi (Part 1)">How to Setup Raspberry Pi (Part 1)</a> (0)</li><li><a href="http://www.pinoytux.com/linux/how-to-remove-m-character" title="How to Remove ^M Character">How to Remove ^M Character</a> (1)</li></ul><img src="http://feeds.feedburner.com/~r/pinoytux/~4/6ZInYDAsAuQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/install-and-configure-minidlna-on-raspberry-pi/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
