<?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>Unix Surgeon &#187; Linux tutorials</title>
	<atom:link href="http://www.unixsurgeon.com/kb/category/linux-tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unixsurgeon.com/kb</link>
	<description>Linux Hosting Solution, Linux Web Hosting Solution, Learn Linux, How to, Server Management , Web Hosting Solution , Linux Solution , KnowledgeBase , Linux Tutorial</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:42:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to install NginX on cPanel WHM/Cpanel Server</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-nginx-on-cpanel-whmcpanel-server.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-nginx-on-cpanel-whmcpanel-server.html#comments</comments>
		<pubDate>Mon, 06 Feb 2012 10:42:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginxadmin]]></category>
		<category><![CDATA[nginxcp]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=351</guid>
		<description><![CDATA[Install NginxAdmin to WHM/Cpanel for Optimize Performance.
Diffrence between nginx &#38; apache :-
Apache is a process-based server, while nginx is an event-based web server.Nginx known as &#8220;engineX&#8221; probably the best-known asynchronous server and Apache is undoubtedly the best known process-based server.
The main advantage of the asynchronous approach is scalability. In a process-based server, each simultaneous connection [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install NginxAdmin to WHM/Cpanel for Optimize Performance.</strong></p>
<p><strong>Diffrence between nginx &amp; apache :-</strong></p>
<p>Apache is a process-based server, while nginx is an event-based web server.Nginx known as &#8220;engineX&#8221; probably the best-known asynchronous server and Apache is undoubtedly the best known process-based server.</p>
<p>The main advantage of the asynchronous approach is scalability. In a process-based server, each simultaneous connection requires a thread which incurs significant overhead. An asynchronous server, on the other hand, is event-driven and handles requests in a single (or at least, very few) threads.</p>
<p>While a process-based server can often perform on par with an asynchronous server under light loads, under heavier loads they usually consume far too much RAM which significantly degrades performance. Also, they degrade much faster on less powerful hardware or in a resource-restricted environment such as a VPS.</p>
<p>Pulling numbers from thin air for illustrative purposes, serving 10,000 simultaneous connections would probably only cause Nginx to use a few megabytes of RAM whereas Apache would probably consume hundreds of megabytes (if it could do it at all).</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Nginx+cPanel+Apache= Performance boosted secured hosting server</strong></p>
<p><strong>How NginxAdmin will help your cPanel server to increase the performance ?</strong></p>
<p>NginxAdmin is WHM interface of Nginx installer for cPanel server. This plugin will increase your server performance and decrease the server Apache Load. So you can host more websites in a cPanel server than usual.Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.Unlike traditional servers, Nginx doesn&#8217;t rely on threads to handle requests. Instead it uses a much more scalable event-driven architecture. This architecture uses small, but more importantly, predictable amounts of memory under load.</p>
<p>Even if you don&#8217;t expect to handle thousands of simultaneous requests, you can still benefit from Nginx&#8217;s high-performance and small memory footprint. Nginx scales in all directions: from the smallest VPS all the way up to clusters of servers.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>To install copy and execute following lines :-</strong></p>
<p># cd /usr/local/src<br />
# wget http://nginxcp.com/nginxadmin2.8-stable.tar<br />
# tar -xvf nginxadmin2.8-stable.tar<br />
# cd publicnginx<br />
# ./nginxinstaller install<br />
# /etc/init.d/httpd restart</p>
<p><strong>Troubleshooting Installation:-</strong></p>
<p>If you receive any pyaml related error or the following error</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Welcome to the Nginx Admin installer&#8230;&#8230;Starting Install<br />
Generating vhosts&#8230;<br />
Traceback (most recent call last):<br />
File &#8220;/scripts/createvhosts.py&#8221;, line 2, in ?<br />
import yaml<br />
File &#8220;/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py&#8221;, line 26<br />
SyntaxError: &#8216;yield&#8217; not allowed in a &#8216;try&#8217; block with a &#8216;finally&#8217; clause<br />
Installing WHM interface&#8230;<br />
deploying booster rockets<br />
Traceback (most recent call last):<br />
File &#8220;/usr/local/src/publicnginx/nginxinstaller2&#8243;, line 9, in ?<br />
import createvhosts<br />
File &#8220;/usr/local/src/publicnginx/createvhosts.py&#8221;, line 2, in ?<br />
import yaml<br />
File &#8220;/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py&#8221;, line 26<br />
SyntaxError: &#8216;yield&#8217; not allowed in a &#8216;try&#8217; block with a &#8216;finally&#8217; clause<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Then run execute following commands &#8230;.<br />
<strong>For i686 architecture :-</strong></p>
<p># easy_install Pyyaml==3.09<br />
# rm -f /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg</p>
<p><strong>For x86_64 architecture :-</strong></p>
<p># easy_install Pyyaml==3.09<br />
# rm -f /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Then Again run the following commands :-<br />
</strong><br />
# ./nginxinstaller install<br />
# /etc/init.d/httpd restart</p>
<p>Now Nginx run on the port no:80 and apache run on the port no.8081.You can manage the nginx through WHM &gt;&gt; Main &gt;&gt; Nginx Admin</p>
<p><img class="alignnone" title="nginxadmin" src="http://unixsurgeon.com/images/nginx.png" alt="" width="656" height="341" /></p>
<p><strong>To uninstall nginx use following :-</strong></p>
<p>#  cd /usr/local/src<br />
#  wget http://nginxcp.com/nginxadmin2.8-stable.tar<br />
#  tar xf nginxadmin2.8-stable.tar<br />
#  cd publicnginx<br />
#  ./nginxinstaller uninstall</p>
<p><strong>Enjoy Linux&#8230;!!!!</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-nginx-on-cpanel-whmcpanel-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install MP4Box with ffmpeg.</title>
		<link>http://www.unixsurgeon.com/kb/install-mp4box-with-ffmpeg.html</link>
		<comments>http://www.unixsurgeon.com/kb/install-mp4box-with-ffmpeg.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 06:16:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[MP4Box]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=348</guid>
		<description><![CDATA[Install MP4Box with ffmpeg
The following are the instructions for installing a fully fuctional Mp4Box plugins with ffmpeg. You first need to install ffmepg and all its related modules using the script  from  this website. Then please proceed the following steps.



#  yum -y install freetype-devel SDL-devel freeglut-devel
#  wget -c http://mirror.ffmpeginstaller.com/source/gpac/gpac-full-0.4.5.tar.gz
#  tar -xzf gpac-full-0.4.5.tar.gz
#  cd gpac/
# ./configure [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install MP4Box with ffmpeg</strong></p>
<p>The following are the instructions for installing a fully fuctional Mp4Box plugins with ffmpeg. You first need to install ffmepg and all its related modules using the script  from  this website. Then please proceed the following steps.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>#  yum -y install freetype-devel SDL-devel freeglut-devel<br />
#  wget -c http://mirror.ffmpeginstaller.com/source/gpac/gpac-full-0.4.5.tar.gz<br />
#  tar -xzf gpac-full-0.4.5.tar.gz<br />
#  cd gpac/<br />
# ./configure –-prefix=/usr/local/cpffmpeg/ –-extra-cflags=-I/usr/local/cpffmpeg/include/ –-extra-ldflags=-L/usr/local/cpffmpeg/lib –-disable-wx –-strip<br />
</strong></p>
<p><strong>#  make<br />
#  make install</strong><br />
Then create softlink for the same :-</p>
<p><strong>#  ln -s /usr/local/cpffmpeg/bin/MP4Box /usr/local/bin/MP4Box<br />
#  ln -s /usr/local/cpffmpeg/bin/MP4Box /usr/bin/MP4Box</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/install-mp4box-with-ffmpeg.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto install Nginx on Centos.</title>
		<link>http://www.unixsurgeon.com/kb/howto-install-nginx-on-centos.html</link>
		<comments>http://www.unixsurgeon.com/kb/howto-install-nginx-on-centos.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 04:41:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=337</guid>
		<description><![CDATA[Today we are going to install Nginx on Centos. Nginx (pronounced “Engine X”) is a lightweight web server that offers speed and flexibility without all of the extra features that larger web servers like Apache offer. Although it is a free and open source application, CentOS does not offer the latest version in its default [...]]]></description>
			<content:encoded><![CDATA[<p>Today we are going to install Nginx on Centos. Nginx (pronounced “Engine X”) is a lightweight web server that offers speed and flexibility without all of the extra features that larger web servers like Apache offer. Although it is a free and open source application, CentOS does not offer the latest version in its default YUM repository. To install it, you need to add the EPEL (Extra Packages for Enterprise Linux) repository, which is part of the Fedora Project.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>First of all installing the EPEL repository:-</strong></p>
<p>[p-root@unixsurgeon ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm</p>
<p>Retrieving http://download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm<br />
warning: /var/tmp/rpm-xfer.toDVXj: Header V3 DSA signature: NOKEY, key ID 217521f6<br />
Preparing…                ########################################### [100%]<br />
1:epel-release              ########################################### [100%]</p>
<p><strong>Install nginx:-</strong></p>
<p>[p-root@unixsurgeon ~]# yum install nginx</p>
<p>It will install nginx and ask gpg-key for EPEL, accept with yes option.</p>
<p><strong>Now start your nginx web server.</strong></p>
<p>[p-root@unixsurgeon ~]# service nginx start</p>
<p>Starting nginx:                                            [  OK  ]</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The default document root of nginx server :- /usr/share/nginx/html<br />
And the config file path is :-  /etc/nginx/nginx.conf<br />
Now open your browser and type 127.0.0.1 , it will open your default nginx page like below:-</p>
<p>http://127.0.0.1</p>
<p>The Default Document root is /usr/share/nginx/html&#8230;.you should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /et/nginx/nginx.conf.</p>
<p><img class="aligncenter" title="nginx" src="http://unixsurgeon.com/images/nginxcentos.png" alt="" width="681" height="144" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/howto-install-nginx-on-centos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion</title>
		<link>http://www.unixsurgeon.com/kb/missing-dependency-perluri-1-17-is-needed-by-package-subversion.html</link>
		<comments>http://www.unixsurgeon.com/kb/missing-dependency-perluri-1-17-is-needed-by-package-subversion.html#comments</comments>
		<pubDate>Fri, 13 Jan 2012 11:30:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[skipborken;perl(URI)]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=329</guid>
		<description><![CDATA[Install Error: Missing Dependency: perl(URI) &#62;= 1.17 is needed by package subversion
Today i finally decided to go ahead with installing subversion, after a bit of reading i opened a ssh session and input :
[root@unixsurgeon.com ~]# yum install subversion
I got an surprise error :-
Error: Missing Dependency: perl(URI) &#62;= 1.17 is needed by package subversion



After a long [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install Error: Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion</strong></p>
<p>Today i finally decided to go ahead with installing subversion, after a bit of reading i opened a ssh session and input :</p>
<p>[root@unixsurgeon.com ~]# yum install subversion</p>
<p><strong>I got an surprise error :-</strong></p>
<p>Error: Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>After a long try i managed to find a solution and i thought to post it here, so that other will find it faster.</p>
<p>First we need to download the perl(URI) with version greater than 1.17 using the following command.</p>
<p>[root@unixsurgeon.com ~]# wget http://yum.trixbox.org/centos/5/RPMS/perl-URI-1.35-3.noarch.rpm</p>
<p><strong>Then to install the perl package :-</strong></p>
<p>[root@unixsurgeon.com ~]# rpm -i perl-URI-1.35-3.noarch.rpm</p>
<p>That is it, you can now install the subversion once again.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>In Capnel :-</strong></p>
<p>Problem solved by using the following way:</p>
<p>1. Removed perl* part from the yum repository(/etc/yum.conf)<br />
2. yum install subversion<br />
3. Add perl* back to the yum.conf file</p>
<p>Enjoy Linux&#8230;!!!! <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/missing-dependency-perluri-1-17-is-needed-by-package-subversion.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>libgpac.so: cannot open shared object file.</title>
		<link>http://www.unixsurgeon.com/kb/libgpac-so-cannot-open-shared-object-file.html</link>
		<comments>http://www.unixsurgeon.com/kb/libgpac-so-cannot-open-shared-object-file.html#comments</comments>
		<pubDate>Wed, 11 Jan 2012 12:02:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[libgpac.so]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=323</guid>
		<description><![CDATA[Hi,
Today i am getting the following error after installation of MP4Box.
MP4Box did not find libgpac.so



Error :- 
root@unixsurgeon [~]# /usr/local/bin/MP4Box
/usr/local/bin/MP4Box: error while loading shared libraries: libgpac.so: cannot open shared object file: No such file or directory
root@unixsurgeon [~]#



Solution :-
The shared libary was compiled, but is not installed to /usr/local/lib. This can be fixed as,
root@unixsurgeon [/usr/local/src/gpac]# install -m644 [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Today i am getting the following error after installation of MP4Box.</p>
<p>MP4Box did not find libgpac.so</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Error :- </strong></p>
<p>root@unixsurgeon [~]# /usr/local/bin/MP4Box<br />
/usr/local/bin/MP4Box: error while loading shared libraries: libgpac.so: cannot open shared object file: No such file or directory<br />
root@unixsurgeon [~]#</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Solution :-</strong></p>
<p>The shared libary was compiled, but is not installed to /usr/local/lib. This can be fixed as,</p>
<p>root@unixsurgeon [/usr/local/src/gpac]# install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so<br />
root@unixsurgeon [/usr/local/src/gpac]# chmod +x /usr/local/lib/libgpac.so<br />
root@unixsurgeon [/usr/local/src/gpac]# ldconfig</p>
<p><strong>Now you can verify :-</strong></p>
<p>root@unixsurgeon [~]# /usr/local/bin/MP4Box<br />
MP4Box [option] input [option]<br />
-h general:          general options help<br />
-h hint:             hinting options help<br />
-h import:           import options help<br />
-h encode:           encode options help<br />
-h meta:             meta handling options help<br />
-h extract:          extraction options help<br />
-h dump:             dump options help<br />
-h swf:              Flash (SWF) options help<br />
-h crypt:            ISMA E&amp;A options help<br />
-h format:           supported formats help<br />
-nodes:              lists supported MPEG4 nodes<br />
-node NodeName:      gets MPEG4 node syntax and QP info<br />
-xnodes:             lists supported X3D nodes<br />
-xnode NodeName:     gets X3D node syntax<br />
-snodes:             lists supported SVG nodes<br />
-snode NodeName:     gets SVG node syntax<br />
-languages:              lists supported ISO 639 languages<br />
-quiet:               quiet mode<br />
-v:                  verbose mode<br />
-version:            gets build version</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>root@unixsurgeon [~]# /usr/local/bin/MP4Box -version</strong><br />
MP4Box &#8211; GPAC version 0.4.5 (build 33)<br />
GPAC Copyright: (c) Jean Le Feuvre 2000-2005<br />
(c) ENST 2005-200X<br />
root@unixsurgeon [~]#</p>
<p>Enjoy Linux&#8230; !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/libgpac-so-cannot-open-shared-object-file.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install MRTG (Multi Router Traffic Grapher).</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-mrtg-multi-router-traffic-grapher.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-mrtg-multi-router-traffic-grapher.html#comments</comments>
		<pubDate>Fri, 30 Dec 2011 12:55:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Monitoring Tool]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[MRTG]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=306</guid>
		<description><![CDATA[Most of the times people probably wonder how much traffic is flowing through servers. At this point, you probably want to monitor how much bandwidth you are using. One of the best tools you can use is MRTG (Multi Router Traffic Grapher). It is not very hard to setup MRTG and requires only few packages [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the times people probably wonder how much traffic is flowing through servers. At this point, you probably want to monitor how much bandwidth you are using. One of the best tools you can use is<strong> MRTG (Multi Router Traffic Grapher)</strong>. It is not very hard to setup MRTG and requires only few packages to be installed.</p>
<p>First of all we have to install SNMP service.</p>
<p><strong>[root@p-root /opt]# rpm -qa | grep snmp</strong></p>
<p><strong>[root@p-root /opt]# yum install net-snmp net-snmp-utils</strong></p>
<p><strong>[root@p-root /opt]# service snmpd start</strong></p>
<p><strong>[root@p-root /opt]# chkconfig –add snmpd</strong></p>
<p><strong>[root@p-root /opt]# chkconfig –levels 2345 snmpd on</strong></p>
<p>Run this command,whether is&#8217;t working or not,if you get the below output means it&#8217;s working:</p>
<p><strong>[root@p-root /opt]# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex<br />
</strong><br />
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1</p>
<p>IP-MIB::ipAdEntIfIndex.192.168.0.128 = INTEGER: 2</p>
<p>Now configure snmpd.conf file. Please take backup of default snmpd.conf file and create new one.</p>
<p><strong>[root@p-root /opt]# mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong><br />
[root@p-root /opt]# vi /etc/snmp/snmpd.conf</strong></p>
<p>Replace the content in there with following:-</p>
<p><strong>com2sec local localhost public<br />
com2sec mynetwork 192.168.0.0/24 public<br />
group MyRWGroup v1 local<br />
group MyRWGroup v2c local<br />
group MyRWGroup usm local<br />
group MyROGroup v1 mynetwork<br />
group MyROGroup v2c mynetwork<br />
group MyROGroup usm mynetwork<br />
view all included .1 80<br />
access MyROGroup &#8220;&#8221; any noauth exact all none none<br />
access MyRWGroup &#8220;&#8221; any noauth exact all all none<br />
syslocation &#8220;Some place out there&#8221;<br />
syscontact Admin &lt;admin@unixsurgeon.com&gt;</strong></p>
<p><strong>Here i am sharing my configuration file  :-</strong></p>
<p>##########################################################</p>
<p>#</p>
<p># snmpd.conf</p>
<p>#</p>
<p># – created by the snmpconf configuration program</p>
<p>#</p>
<p>##########################################################</p>
<p># SECTION: Access Control Setup</p>
<p>#</p>
<p># This section defines who is allowed to talk to your running</p>
<p># snmp agent.</p>
<p># rocommunity: a SNMPv1/SNMPv2c read-only access community name</p>
<p># arguments: community [default|hostname|network/bits] [oid]</p>
<p>com2sec local localhost private</p>
<p>com2sec mynetwork 192.168.0.0/24 public</p>
<p>com2sec mynetwork 115.110.x.x/32 public</p>
<p>group MyRWGroup v1 local</p>
<p>group MyRWGroup v2c local</p>
<p>group MyRWGroup usm local</p>
<p>group MyROGroup v1 mynetwork</p>
<p>group MyROGroup v2c mynetwork</p>
<p>group MyROGroup usm mynetwork</p>
<p>view     all        included         .1         80</p>
<p>access MyROGroup  ” “  any noauth exact all none none</p>
<p>access MyRWGroup  ” “  any noauth exact all all none</p>
<p>syslocation Linux (RH3_UP2), Linux Router.</p>
<p><strong>[root@p-root /opt]# service snmpd restart</strong></p>
<p>Now test your SNMP server.</p>
<p><strong>[root@p-root /opt]# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex</strong></p>
<p>IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1</p>
<p>IP-MIB::ipAdEntIfIndex.192.168.0.128 = INTEGER: 2</p>
<p>Ok. That is all we will do with SNMP. Let us continue MRTG installation.</p>
<p><strong>[root@p-root /opt]# rpm -qa | grep mrtg</strong></p>
<p><strong>[root@p-root /opt]# yum install mrtg</strong></p>
<p>Let us set up data directory to store html files:</p>
<p><strong>[root@p-root /opt]# mkdir /var/www/html/mrtg</strong></p>
<p>Now let us set up mrtg.conf to use for monitoring bandwidth usage:</p>
<p><strong>[root@p-root /opt]# cfgmaker public@192.168.0.128 –global “WorkDir: /var/www/html/mrtg” –output=/etc/mrtg/mrtg.cfg</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Let us create index file for MRTG page:</p>
<p><strong>[root@p-root /opt]# indexmaker –output=/var/www/html/mrtg/index.html /etc/mrtg/mrtg.cfg<br />
</strong><br />
It is time for us to tell Apache to serve these pages</p>
<p><strong>[root@p-root /opt]# vi /usr/local/apache2/conf/httpd.conf</strong></p>
<p><strong>Alias /mrtg /var/www/html/mrtg<br />
&lt;location /mrtg&gt;<br />
Order deny,allow<br />
Deny from all<br />
Allow from 127.0.0.1 192.168.0.0/24<br />
&lt;/location&gt;</strong></p>
<p><strong>[root@p-root /opt]# snmpwalk -v 1 -c public 192.168.0.128 interface</strong></p>
<p><strong>[root@p-root /opt]# env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg</strong></p>
<p><strong>[root@p-root /opt]# crontab -e</strong></p>
<p><strong>*/5 * * * * /usr/bin/mrtg /etc/mrtg/mrtg.cfg –logging /var/log/mrtg.log<br />
</strong><br />
Open this link in your browser and it will show like this.</p>
<p>http://192.168.0.128/mrtg</p>
<p><img src="http://www.unixsurgeon.com/images/mrtg.png" alt="mrtg" /><br />
<strong>Protect your MRTG graphs with password protected directory :-</strong></p>
<p>To restrict access to your MRTG reports. This can easily accomplished with Apache webserver&#8217;s .htaccess file.</p>
<p>Below is process to protect graphs using apache&#8217;s .htaccess file and htpasswd command:</p>
<p>Step # 1: Create .htaccess file in /var/www/html/mymrtg/ directory (add text as follows):</p>
<p>[root@p-root /]# vi /var/www/html/mymrtg/.htaccess</p>
<p>Then Add following text to file:-</p>
<p><strong>AuthName &#8220;MRTG Graphs Restricted Access&#8221;<br />
AuthType Basic<br />
AuthUserFile /var/members/.htpasswd<br />
require user unixsurgeon</strong></p>
<p>Step # 2: Create a user and password name (-c assumes first time you are using .htpasswd file):-</p>
<p><strong>[root@p-root /]# htpasswd -c /var/members/.htpasswd unixsurgeon</strong></p>
<p>=============================================================================================</p>
<p>Enjoy Linux !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-mrtg-multi-router-traffic-grapher.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the PHP/Java Bridge?</title>
		<link>http://www.unixsurgeon.com/kb/what-is-the-phpjava-bridge.html</link>
		<comments>http://www.unixsurgeon.com/kb/what-is-the-phpjava-bridge.html#comments</comments>
		<pubDate>Mon, 12 Sep 2011 12:28:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php-java]]></category>
		<category><![CDATA[php-java-bridge]]></category>
		<category><![CDATA[phpjavabridge]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=289</guid>
		<description><![CDATA[The php-java bridge is the php extension for using the java code in php files . You can access Java classes etc from within your PHP code.
Basically the PHP/Java Bridge is an implementation of a streaming, XML-based network protocol which can be used to connect a native script engine, for example PHP, Scheme or Python, [...]]]></description>
			<content:encoded><![CDATA[<p>The php-java bridge is the php extension for using the java code in php files . You can access Java classes etc from within your PHP code.</p>
<p>Basically the PHP/Java Bridge is an implementation of a streaming, XML-based network protocol which can be used to connect a native script engine, for example PHP, Scheme or Python, with a Java virtual machine. It is up to 50 times faster than local RPC via SOAP, requires less resources on the web-server side. It is faster and more reliable than direct communication via the Java Native Interface, and it requires no additional components to invoke Java procedures from PHP or PHP procedures from Java.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h1>How it works :-</h1>
<p>A PHP Front end contained in, and associated with, a Java <em>back end</em>. The invoked Front end uses simple HTTP or XML to invoke Java procedures/methods/classes of the running back end. Both, the front end and the back end establish a continuation which may be called at any time from the other continuation.</p>
<p>This mechanism can also be used programmatically: the JAVA interface can be used to invoke PHP methods within a running PHP/Apache server so that Java components can invoke PHP instances and PHP scripts can call Java based applications or transfer control back to the environment where the request came from.</p>
<h1>Use for :-</h1>
<p>It’s mandatory requirement for all type of payment gateway integration. (Like :- HDFC,ICICI etc.)</p>
<p>For more information :- http://php-java-bridge.sourceforge.net/pjb</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/what-is-the-phpjava-bridge.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error installing new crontab (:9: bad minute)</title>
		<link>http://www.unixsurgeon.com/kb/error-installing-new-crontab-9-bad-minute.html</link>
		<comments>http://www.unixsurgeon.com/kb/error-installing-new-crontab-9-bad-minute.html#comments</comments>
		<pubDate>Thu, 02 Jun 2011 10:15:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[bad minute]]></category>
		<category><![CDATA[cron problem]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=284</guid>
		<description><![CDATA[Hi,
Today when i edit one cron job in crontab file of root user&#8230;i received following  cryptic error message while trying to update :-
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
root@unixsurgeon [~]# crontab -u root -e
crontab: installing new crontab
&#8220;/tmp/crontab.XXXXfkODuc&#8221;:9: bad minute
errors in crontab file, can&#8217;t install.
Do you want to retry the same edit?
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
The error message suggests me that there is a format problem [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Today when i edit one cron job in crontab file of root user&#8230;i received following  cryptic error message while trying to update :-</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>root@unixsurgeon [~]# crontab -u root -e</p>
<p>crontab: installing new crontab</p>
<p>&#8220;/tmp/crontab.XXXXfkODuc&#8221;:9: bad minute</p>
<p>errors in crontab file, can&#8217;t install.</p>
<p>Do you want to retry the same edit?</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>The error message suggests me that there is a format problem with my entry, but the real root cause  is due to DOS line endings (CR LF) in the file. Unix/Linux line endings just use CR. If a crontab is installed without using the crontab -e command, this error might appear.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>You can check the line endings by running:<br />
cat -v -e -t /var/spool/cron/<em>username</em></p>
<p>in my case user :- root</p>
<p>cat -v -e -t /var/spool/cron/<em>root</em></p>
<p>If you see &#8220;^M$&#8221; at the end of each line, the file has DOS line endings. Each line should just end with &#8220;$&#8221;.</p>
<p>The fix is to run the dos2unix command on the crontab to correct the line endings:<br />
dos2unix /var/spool/cron/<em>username</em></p>
<p><em>In my case :- </em>dos2unix /var/spool/cron/<em>root</em><br />
<em>Enjoy Linux&#8230;..!!!!<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/error-installing-new-crontab-9-bad-minute.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add ftp user</title>
		<link>http://www.unixsurgeon.com/kb/how-to-add-ftp-user.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-add-ftp-user.html#comments</comments>
		<pubDate>Tue, 19 Apr 2011 08:47:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[usermod]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=280</guid>
		<description><![CDATA[Add users to use FTP server so that they can login into account to upload / download files. To add a user called  john and set the password, enter:
# adduser -c &#8216;FTP USER John&#8217; -m john
# passwd john
Now john  can login using our ftp server. Make sure the following is set in vsftpd.conf  or in [...]]]></description>
			<content:encoded><![CDATA[<p>Add users to use FTP server so that they can login into account to upload / download files. To add a user called  john and set the password, enter:<br />
<strong># adduser -c &#8216;FTP USER John&#8217; -m john</strong><br />
<strong># passwd john</strong><br />
Now john  can login using our ftp server. Make sure the following is set in vsftpd.conf  or in your ftp server configuration file.</p>
<p><strong>Local_enable=YES</strong></p>
<p>Restart the vsftpd or ftp server daemon:</p>
<p><strong># service vsftpd restart</strong></p>
<p>By default user is added to /home directory.IF you would  like to add user to another partion  like /var/www/html directory instead of default /home,please use the below command :-</p>
<p><strong># usermod –d /path/to/new/dir/ username</strong></p>
<p>In my scenario :-</p>
<p><strong># usermod –d /var/www/html/  john</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-add-ftp-user.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Add or Remove Users in webmin</title>
		<link>http://www.unixsurgeon.com/kb/how-to-add-or-remove-users-in-webmin.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-add-or-remove-users-in-webmin.html#comments</comments>
		<pubDate>Thu, 14 Apr 2011 15:25:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[webmin]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=276</guid>
		<description><![CDATA[ Add or Remove Users in webmain panel

To add or remove users or groups from your Linux server, first click the System button on the navigational pane on the left, and then select Users and Groups:




Once you are on the Users and Groups page on Webmin, you can easily add or remove individual users from [...]]]></description>
			<content:encoded><![CDATA[<p><strong> Add or Remove Users in webmain panel<br />
</strong></p>
<p>To add or remove users or groups from your Linux server, first click the System button on the navigational pane on the left, and then select Users and Groups:</p>
<p><a href="http://unixsurgeon.com/images/1.png"><img class="alignnone" src="http://unixsurgeon.com/images/1.png" alt="" width="227" height="337" /></a></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Once you are on the Users and Groups page on Webmin, you can easily add or remove individual users from your Linux server. To do this, click on the Create User link at the top and bottom of the users list:</p>
<p><a href="http://unixsurgeon.com/images/2.png"><img class="alignnone" src="http://unixsurgeon.com/images/2.png" alt="" width="682" height="107" /></a></p>
<p>From here, you can select the user&#8217;s home directory (/var/web_hosts/USERNAME), as well as enter the user&#8217;s password. In addition, you can also change the user&#8217;s default group membership (useful if a group of users are working on a particular website or project), and a variety of other options. In particular, we want to make sure that the option &#8220;Create Home Directory&#8221; is enabled, since we will need to have a home directory of /var/web_hosts/username of our user on this server.</p>
<p><a href="http://unixsurgeon.com/images/3.png"><img class="alignnone" src="http://unixsurgeon.com/images/3.png" alt="" width="750" height="642" /></a></p>
<p>Once you have entered all of the information, click &#8220;Create&#8221; to create the user account. Once successfull, you are now returned to the main Users and Groups page. To remove a user account, click on the checkbox next to the user account, and click &#8220;Delete Selected Users&#8221;.</p>
<p><a href="http://unixsurgeon.com/images/4.png"><img class="alignnone" src="http://unixsurgeon.com/images/4.png" alt="" width="500" height="66" /></a></p>
<p>From here, you will be asked to confirm whether or not you wish to delete the selected user, as well as delete the user&#8217;s data. Typically, you will want to delete the user&#8217;s data as well as the user account, but Webmin gives you the option of both.</p>
<p><a href="http://unixsurgeon.com/images/5.png"><img class="alignnone" src="http://unixsurgeon.com/images/5.png" alt="" width="507" height="126" /></a></p>
<p style="text-align: center;">Once the user account is successfully deleted, you will then have the option of returning to the Users and Groups page. To add or remove user groups, select the &#8220;Local Groups&#8221; tab at the top of the Users and Groups page.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-add-or-remove-users-in-webmin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

