<?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:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0" xml:base="http://www.linuxweblog.com">
<channel>
 <title>LinuxWebLog.com</title>
 <link>http://www.linuxweblog.com</link>
 <description>Blogging for Linux and Open Source Enthusiasts!!</description>
 <language>en</language>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/linuxweblog" /><feedburner:info uri="linuxweblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
 <title>Extract IP address</title>
 <link>http://feedproxy.google.com/~r/linuxweblog/~3/Yt1ahOy7urw/extract-ip-address</link>
 <description>&lt;p&gt;One liner with grep to extract the IP addresses from a file.&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;grep -Eo &amp;#039;([0-9]{1,3}\.){3}[0-9]{1,3}&amp;#039; /path/to/file&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The "-o" option prints only the matched parts.&lt;/p&gt;
&lt;p&gt;One liner with perl:&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;perl -ne &amp;#039;print if s/.*((\d{1,3}\.){3}\d{1,3}).*/\1/&amp;#039; /path/to/file&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.linuxweblog.com/extract-ip-address" target="_blank"&gt;read more&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Yt1ahOy7urw:hdOKOXZX3Sk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Yt1ahOy7urw:hdOKOXZX3Sk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=Yt1ahOy7urw:hdOKOXZX3Sk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Yt1ahOy7urw:hdOKOXZX3Sk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Yt1ahOy7urw:hdOKOXZX3Sk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=Yt1ahOy7urw:hdOKOXZX3Sk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Yt1ahOy7urw:hdOKOXZX3Sk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=Yt1ahOy7urw:hdOKOXZX3Sk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <comments>http://www.linuxweblog.com/extract-ip-address#comments</comments>
 <category domain="http://www.linuxweblog.com/blog-tags/grep">grep</category>
 <category domain="http://www.linuxweblog.com/blog-tags/scripting/perl">Perl</category>
 <pubDate>Tue, 15 May 2012 20:22:24 +0000</pubDate>
 <dc:creator>sandip</dc:creator>
 <guid isPermaLink="false">1942 at http://www.linuxweblog.com</guid>
<feedburner:origLink>http://www.linuxweblog.com/extract-ip-address</feedburner:origLink></item>
<item>
 <title>Find size of ext3 Journal</title>
 <link>http://feedproxy.google.com/~r/linuxweblog/~3/Kj6ZX_3Ctms/size-of-ext3-journal</link>
 <description>&lt;p&gt;The journal is located at inode:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;# tune2fs -l /dev/sda1 | awk &amp;#039;/Journal inode/ {print $3}&amp;#039;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The size of journal in Bytes is:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;# debugfs -R &amp;quot;stat &amp;lt;inodenumber&amp;gt;&amp;quot; /dev/sda1 | awk &amp;#039;/Size: /{print $6}&amp;#039;|head -1&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Note: "&amp;lt;&gt;" is necessary around the inode number.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.linuxweblog.com/size-of-ext3-journal" target="_blank"&gt;read more&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Kj6ZX_3Ctms:e1R88GQGXR0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Kj6ZX_3Ctms:e1R88GQGXR0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=Kj6ZX_3Ctms:e1R88GQGXR0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Kj6ZX_3Ctms:e1R88GQGXR0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Kj6ZX_3Ctms:e1R88GQGXR0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=Kj6ZX_3Ctms:e1R88GQGXR0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Kj6ZX_3Ctms:e1R88GQGXR0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=Kj6ZX_3Ctms:e1R88GQGXR0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <comments>http://www.linuxweblog.com/size-of-ext3-journal#comments</comments>
 <category domain="http://www.linuxweblog.com/blog-tags/ext3">ext3</category>
 <category domain="http://www.linuxweblog.com/blog-tags/journal">journal</category>
 <pubDate>Fri, 13 Apr 2012 20:01:04 +0000</pubDate>
 <dc:creator>sandip</dc:creator>
 <guid isPermaLink="false">1910 at http://www.linuxweblog.com</guid>
<feedburner:origLink>http://www.linuxweblog.com/size-of-ext3-journal</feedburner:origLink></item>
<item>
 <title>group writable web folders with setgid and ACL</title>
 <link>http://feedproxy.google.com/~r/linuxweblog/~3/0WlmQR2PZPU/group-writable-web-folders</link>
 <description>&lt;p&gt;Often times, there is need for web-accessible folders to be set up so all web-developers have write access.&lt;/p&gt;
&lt;p&gt;Along with setgid option, ACL can be used so anyone in the group "web-developers"&lt;br /&gt;
would have write privileges to anything under web-accessible document root. &lt;/p&gt;
&lt;p&gt;So unless the acl privileges is revoked specifically, it would just continue to work.&lt;/p&gt;
&lt;p&gt;To enable ACL, add "acl" option to /etc/fstab file for the corresponding partition and remount.&lt;/p&gt;
&lt;p&gt;Edit /etc/fstab:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;/dev/mapper/home /home&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ext4&amp;nbsp;&amp;nbsp;&amp;nbsp; defaults,acl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Remount:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;# mount -o remount /home&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Here is the commands to be used for the setup:&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;# groupadd developers&lt;br /&gt;# chgrp -R developers /path/to/docroot&lt;br /&gt;# find /path/to/docroot -type d -exec chmod g+s {} \;&lt;br /&gt;# find /path/to/docroot -type d -exec setfacl -m g:developers:rwx,d:g:developers:rwx {} \;&lt;br /&gt;# find /path/to/docroot -type f -exec setfacl -m g:developers:rw {} \;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Now anyone needing write access can be put in the "developers" group.&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;# usermod -G developers {username}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;If you need the webserver to have write access to certain folders, then chown the location to be owned by the webserver, instead of giving write permissions to all.&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;# chown apache /path/to/docroot/apache&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.linuxweblog.com/group-writable-web-folders" target="_blank"&gt;read more&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=0WlmQR2PZPU:6eeHlRl0XTo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=0WlmQR2PZPU:6eeHlRl0XTo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=0WlmQR2PZPU:6eeHlRl0XTo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=0WlmQR2PZPU:6eeHlRl0XTo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=0WlmQR2PZPU:6eeHlRl0XTo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=0WlmQR2PZPU:6eeHlRl0XTo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=0WlmQR2PZPU:6eeHlRl0XTo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=0WlmQR2PZPU:6eeHlRl0XTo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <comments>http://www.linuxweblog.com/group-writable-web-folders#comments</comments>
 <category domain="http://www.linuxweblog.com/blog-tags/acl">ACL</category>
 <category domain="http://www.linuxweblog.com/blog-tags/linux/apache">Apache</category>
 <category domain="http://www.linuxweblog.com/blog-tags/setgid">setgid</category>
 <pubDate>Tue, 03 Apr 2012 15:18:54 +0000</pubDate>
 <dc:creator>sandip</dc:creator>
 <guid isPermaLink="false">1905 at http://www.linuxweblog.com</guid>
<feedburner:origLink>http://www.linuxweblog.com/group-writable-web-folders</feedburner:origLink></item>
<item>
 <title>Getting the most out of Grub</title>
 <link>http://feedproxy.google.com/~r/linuxweblog/~3/tVhoaOksYpQ/getting-most-out-grub</link>
 <description>&lt;p&gt;The grub bootloader is particularly useful, especially when upgrading and testing new kernels. I recently found a way to modifiy the default boot config to make it useful when you wish to remotely upgrade a kernel and boot into it once only without being at the console to change the default back.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.timburgess.net/node/19" title="Go to the original news source."&gt;Original news source&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=tVhoaOksYpQ:Sqr7o43QvrE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=tVhoaOksYpQ:Sqr7o43QvrE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=tVhoaOksYpQ:Sqr7o43QvrE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=tVhoaOksYpQ:Sqr7o43QvrE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=tVhoaOksYpQ:Sqr7o43QvrE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=tVhoaOksYpQ:Sqr7o43QvrE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=tVhoaOksYpQ:Sqr7o43QvrE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=tVhoaOksYpQ:Sqr7o43QvrE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <comments>http://www.linuxweblog.com/links/sandip/20120403/getting-most-out-grub#comments</comments>
 <category domain="http://www.linuxweblog.com/link-tags/grub">grub</category>
 <pubDate>Tue, 03 Apr 2012 12:40:53 +0000</pubDate>
 <dc:creator>sandip</dc:creator>
 <guid isPermaLink="false">1904 at http://www.linuxweblog.com</guid>
<feedburner:origLink>http://www.linuxweblog.com/links/sandip/20120403/getting-most-out-grub</feedburner:origLink></item>
<item>
 <title>munin-node mysql setup</title>
 <link>http://feedproxy.google.com/~r/linuxweblog/~3/o7B601Mz368/munin-node-mysql-setup</link>
 <description>&lt;ul&gt;
&lt;li /&gt;munin-node installed via epel repository.&lt;br /&gt;
&lt;/li&gt;&lt;li /&gt;Install perl-Cache-Cache:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;# yum install munin-node perl-Cache-Cache&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;&lt;li /&gt;Create file "/etc/munin/plugin-conf.d/mysql" with below contents:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;[mysql*]&lt;br /&gt;env.mysqluser munin&lt;br /&gt;env.mysqlpassword {PASS}&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;&lt;li /&gt;Create mysql user and assign corresponding privileges:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;mysql&amp;gt; create user munin@localhost identified by &amp;#039;{PASS}&amp;#039;;&lt;br /&gt;mysql&amp;gt; GRANT PROCESS, SUPER ON *.* TO &amp;#039;munin&amp;#039;@&amp;#039;localhost&amp;#039;;&lt;br /&gt;mysql&amp;gt; GRANT SELECT ON `mysql`.* TO &amp;#039;munin&amp;#039;@&amp;#039;localhost&amp;#039;;&lt;br /&gt;mysql&amp;gt; flush privileges&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;&lt;li /&gt;Check the suggestions and install the plugins:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;munin-node-configure&amp;nbsp; --suggest 2&amp;gt;/dev/null |grep mysql&lt;br /&gt;munin-node-configure&amp;nbsp; --shell | grep mysql | sh&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;&lt;li /&gt;Test via:&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;# cd /etc/munin/plugins&lt;br /&gt;# munin-run mysql_connections&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://www.linuxweblog.com/munin-node-mysql-setup" target="_blank"&gt;read more&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=o7B601Mz368:qiJw8ObSZCs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=o7B601Mz368:qiJw8ObSZCs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=o7B601Mz368:qiJw8ObSZCs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=o7B601Mz368:qiJw8ObSZCs:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=o7B601Mz368:qiJw8ObSZCs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=o7B601Mz368:qiJw8ObSZCs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=o7B601Mz368:qiJw8ObSZCs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=o7B601Mz368:qiJw8ObSZCs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <comments>http://www.linuxweblog.com/munin-node-mysql-setup#comments</comments>
 <category domain="http://www.linuxweblog.com/blog-tags/munin">munin</category>
 <category domain="http://www.linuxweblog.com/blog-tags/munin-node-0">munin-node</category>
 <category domain="http://www.linuxweblog.com/blog-tags/database/mysql">MySQL</category>
 <pubDate>Wed, 28 Mar 2012 18:33:23 +0000</pubDate>
 <dc:creator>sandip</dc:creator>
 <guid isPermaLink="false">1896 at http://www.linuxweblog.com</guid>
<feedburner:origLink>http://www.linuxweblog.com/munin-node-mysql-setup</feedburner:origLink></item>
<item>
 <title>How to install oracle java 7 in ubuntu 12.04</title>
 <link>http://feedproxy.google.com/~r/linuxweblog/~3/zIrfoXrpT1Y/how-install-oracle-java-7-ubuntu-1204</link>
 <description>&lt;p&gt;Java is a programming language and computing platform first released by Sun Microsystems in 1995. It is the underlying technology that powers state-of-the-art programs including utilities, games, and business applications. Java runs on more than 850 million personal computers worldwide, and on billions of devices worldwide, including mobile and TV devices.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.ubuntugeek.com/how-to-install-oracle-java-7-in-ubuntu-12-04.html" title="Go to the original news source."&gt;Original news source&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=zIrfoXrpT1Y:XI5K4AlmDP0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=zIrfoXrpT1Y:XI5K4AlmDP0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=zIrfoXrpT1Y:XI5K4AlmDP0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=zIrfoXrpT1Y:XI5K4AlmDP0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=zIrfoXrpT1Y:XI5K4AlmDP0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=zIrfoXrpT1Y:XI5K4AlmDP0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=zIrfoXrpT1Y:XI5K4AlmDP0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=zIrfoXrpT1Y:XI5K4AlmDP0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <comments>http://www.linuxweblog.com/links/david23/20120327/how-install-oracle-java-7-ubuntu-1204#comments</comments>
 <pubDate>Tue, 27 Mar 2012 14:31:52 +0000</pubDate>
 <dc:creator>david23</dc:creator>
 <guid isPermaLink="false">1894 at http://www.linuxweblog.com</guid>
<feedburner:origLink>http://www.linuxweblog.com/links/david23/20120327/how-install-oracle-java-7-ubuntu-1204</feedburner:origLink></item>
<item>
 <title>Plesk courier-imap imapd on port 143 fails</title>
 <link>http://feedproxy.google.com/~r/linuxweblog/~3/tjwxXhwMdI4/plesk-courier-imap-port-143</link>
 <description>&lt;p&gt;After Plesk upgrade to 9.5.4, imapd on port 143 did not come up.&lt;/p&gt;
&lt;p&gt;On checking the maillog, it was complaining about:&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;imapd: Invalid -maxprocsarg option.&lt;br /&gt;imapd-ssl: Invalid -maxprocsarg option.&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I noticed /etc/courier-imap/imapd had both the below lines commented:&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;#MAXDAEMONS=40&lt;br /&gt;#MAXPERIP=4&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Once I uncommented those values, I was able to get the imap listener up upon a `service courier-imap restart`.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.linuxweblog.com/plesk-courier-imap-port-143" target="_blank"&gt;read more&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=tjwxXhwMdI4:IPOruLAwOjo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=tjwxXhwMdI4:IPOruLAwOjo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=tjwxXhwMdI4:IPOruLAwOjo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=tjwxXhwMdI4:IPOruLAwOjo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=tjwxXhwMdI4:IPOruLAwOjo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=tjwxXhwMdI4:IPOruLAwOjo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=tjwxXhwMdI4:IPOruLAwOjo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=tjwxXhwMdI4:IPOruLAwOjo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <comments>http://www.linuxweblog.com/plesk-courier-imap-port-143#comments</comments>
 <category domain="http://www.linuxweblog.com/blog-tags/courier-imap">courier-imap</category>
 <category domain="http://www.linuxweblog.com/blog-tags/imapd">imapd</category>
 <category domain="http://www.linuxweblog.com/blog-tags/plesk">Plesk</category>
 <pubDate>Fri, 17 Feb 2012 01:53:35 +0000</pubDate>
 <dc:creator>sandip</dc:creator>
 <guid isPermaLink="false">1869 at http://www.linuxweblog.com</guid>
<feedburner:origLink>http://www.linuxweblog.com/plesk-courier-imap-port-143</feedburner:origLink></item>
<item>
 <title>Django postgresql connect_timeout via environment variable</title>
 <link>http://feedproxy.google.com/~r/linuxweblog/~3/SvsiM7EwP8A/django-postgresql-connect_timeout</link>
 <description>&lt;p&gt;Recently, I've had to move a postgresql database onto a separate server and split it out from the django application server.&lt;/p&gt;
&lt;p&gt;On doing so, we saw intermittent "OperationalError: could not connect to server: Connection timed out".&lt;/p&gt;
&lt;p&gt;This was quite obvious that the "connect_timeout" had to be increased to resolve the issue due to the latency introduced by the network. However, psycopg2 database adapter was being used which did not support the "connect_timeout" option to be passed via django.&lt;/p&gt;
&lt;p&gt;We were able to work around the issue setting the environmental variable "PGCONNECT_TIMEOUT" so libpq would pick up the connection parameter.&lt;/p&gt;
&lt;p&gt;Put the below in "django.wsgi":&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;os.environ[&amp;#039;PGCONNECT_TIMEOUT&amp;#039;] = &amp;#039;30&amp;#039;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.linuxweblog.com/django-postgresql-connect_timeout" target="_blank"&gt;read more&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=SvsiM7EwP8A:RgUFYviLPqw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=SvsiM7EwP8A:RgUFYviLPqw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=SvsiM7EwP8A:RgUFYviLPqw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=SvsiM7EwP8A:RgUFYviLPqw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=SvsiM7EwP8A:RgUFYviLPqw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=SvsiM7EwP8A:RgUFYviLPqw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=SvsiM7EwP8A:RgUFYviLPqw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=SvsiM7EwP8A:RgUFYviLPqw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <comments>http://www.linuxweblog.com/django-postgresql-connect_timeout#comments</comments>
 <category domain="http://www.linuxweblog.com/blog-tags/django">django</category>
 <category domain="http://www.linuxweblog.com/blog-tags/database/postgresql">PostgreSQL</category>
 <category domain="http://www.linuxweblog.com/blog-tags/psycopg2">Psycopg2</category>
 <pubDate>Tue, 07 Feb 2012 04:03:57 +0000</pubDate>
 <dc:creator>sandip</dc:creator>
 <guid isPermaLink="false">1868 at http://www.linuxweblog.com</guid>
<feedburner:origLink>http://www.linuxweblog.com/django-postgresql-connect_timeout</feedburner:origLink></item>
<item>
 <title>munin-node and postgresql plugins setup</title>
 <link>http://feedproxy.google.com/~r/linuxweblog/~3/Gym95gEjBZY/munin-node-postgresql-plugins</link>
 <description>&lt;p&gt;While setting up munin to monitor postgresql, I was getting "[DBD::Pg not found, and cannot do psql yet]" when running `munin-node-configure  --suggest | grep postgres`.&lt;/p&gt;
&lt;p&gt;I confirmed that the rpm package "perl-DBI-1.52-2.el5" was indeed installed.&lt;/p&gt;
&lt;p&gt;However, when I ran a test against the module, it failed with:&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;# perl -MDBD::Pg -e 1&lt;br /&gt;Can&amp;#039;t load &amp;#039;/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Pg/Pg.so&amp;#039; for module DBD::Pg: libpq.so.4: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230.&lt;br /&gt; at -e line 0&lt;br /&gt;Compilation failed in require.&lt;br /&gt;BEGIN failed--compilation aborted.&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;On checking the library, it returned with "libpq.so.4 =&gt; not found":&lt;br /&gt;
&lt;div class="codeblock"&gt;&lt;code&gt;# ldd /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Pg/Pg.so&lt;br /&gt;	linux-vdso.so.1 =&amp;gt;&amp;nbsp; (0x00007fffb60bb000)&lt;br /&gt;	libpq.so.4 =&amp;gt; not found&lt;br /&gt;	libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007fa36d2c2000)&lt;br /&gt;	/lib64/ld-linux-x86-64.so.2 (0x00007fa36d845000)&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Indeed libpq.so.4 was missing since postgresql90-libs was installed which only includes "libpq.so.5".&lt;/p&gt;
&lt;p&gt;To get libpq.so.4, "compat-postgresql-libs" package needed to be installed. &lt;/p&gt;
&lt;p&gt;Once installed the perl module test passed and I was able to get the munin plugins linked using:&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;# munin-node-configure --shell | grep postgres | sh&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.linuxweblog.com/munin-node-postgresql-plugins" target="_blank"&gt;read more&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Gym95gEjBZY:AhRoZANsgvU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Gym95gEjBZY:AhRoZANsgvU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=Gym95gEjBZY:AhRoZANsgvU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Gym95gEjBZY:AhRoZANsgvU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Gym95gEjBZY:AhRoZANsgvU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=Gym95gEjBZY:AhRoZANsgvU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=Gym95gEjBZY:AhRoZANsgvU:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=Gym95gEjBZY:AhRoZANsgvU:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <comments>http://www.linuxweblog.com/munin-node-postgresql-plugins#comments</comments>
 <category domain="http://www.linuxweblog.com/blog-tags/libpq">libpq</category>
 <category domain="http://www.linuxweblog.com/blog-tags/munin">munin</category>
 <category domain="http://www.linuxweblog.com/blog-tags/munin-node-0">munin-node</category>
 <category domain="http://www.linuxweblog.com/blog-tags/scripting/perl">Perl</category>
 <category domain="http://www.linuxweblog.com/blog-tags/postgres">postgres</category>
 <category domain="http://www.linuxweblog.com/blog-tags/database/postgresql">PostgreSQL</category>
 <pubDate>Mon, 06 Feb 2012 00:37:31 +0000</pubDate>
 <dc:creator>sandip</dc:creator>
 <guid isPermaLink="false">1867 at http://www.linuxweblog.com</guid>
<feedburner:origLink>http://www.linuxweblog.com/munin-node-postgresql-plugins</feedburner:origLink></item>
<item>
 <title>Configuring Bind RNDC</title>
 <link>http://feedproxy.google.com/~r/linuxweblog/~3/MsSo6Vlgf-0/configure-bind-rndc</link>
 <description>&lt;p&gt;RNDC is a useful mechanism for administering DNS servers. If it is not configured, BIND complains about it.&lt;/p&gt;
&lt;p&gt;Determine the locations where RNDC expects to find the config files. &lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;# rndc status &lt;br /&gt;&amp;nbsp; rndc: neither /etc/rndc.conf nor /etc/rndc.key was found&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Create the rndc config file:&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;# rndc-confgen &amp;gt; /etc/rndc.conf&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Thy rndc conf file should also have the contents that need to go to  "/etc/named.conf". See sample below:&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;# Use with the following in named.conf, adjusting the allow list as needed:&lt;br /&gt;# key &amp;quot;rndc-key&amp;quot; {&lt;br /&gt;# 	algorithm hmac-md5;&lt;br /&gt;# 	secret &amp;quot;aitNuyDz9NkSZ0MbxeQKcQ==&amp;quot;;&lt;br /&gt;# };&lt;br /&gt;# &lt;br /&gt;# controls {&lt;br /&gt;# 	inet 127.0.0.1 port 953&lt;br /&gt;# 		allow { 127.0.0.1; } keys { &amp;quot;rndc-key&amp;quot;; };&lt;br /&gt;# };&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Once the key and control section has been added to named.conf, restart named and test again with:&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;# rndc status&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.linuxweblog.com/configure-bind-rndc" target="_blank"&gt;read more&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=MsSo6Vlgf-0:R7x5RU_Kx1Q:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=MsSo6Vlgf-0:R7x5RU_Kx1Q:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=MsSo6Vlgf-0:R7x5RU_Kx1Q:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=MsSo6Vlgf-0:R7x5RU_Kx1Q:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=MsSo6Vlgf-0:R7x5RU_Kx1Q:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=MsSo6Vlgf-0:R7x5RU_Kx1Q:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/linuxweblog?a=MsSo6Vlgf-0:R7x5RU_Kx1Q:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/linuxweblog?i=MsSo6Vlgf-0:R7x5RU_Kx1Q:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <comments>http://www.linuxweblog.com/configure-bind-rndc#comments</comments>
 <category domain="http://www.linuxweblog.com/blog-tags/bind">bind</category>
 <category domain="http://www.linuxweblog.com/blog-tags/dns">dns</category>
 <category domain="http://www.linuxweblog.com/blog-tags/named">named</category>
 <category domain="http://www.linuxweblog.com/blog-tags/rndc">rndc</category>
 <pubDate>Wed, 28 Dec 2011 03:00:27 +0000</pubDate>
 <dc:creator>sandip</dc:creator>
 <guid isPermaLink="false">1849 at http://www.linuxweblog.com</guid>
<feedburner:origLink>http://www.linuxweblog.com/configure-bind-rndc</feedburner:origLink></item>
</channel>
</rss>

