<?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>Technical Zone &#187; Linux</title>
	<atom:link href="http://www.pankajdangi.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pankajdangi.com</link>
	<description>Best Technical Zone for Opensource!</description>
	<lastBuildDate>Thu, 01 Dec 2011 10:05:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<atom:link rel='hub' href='http://www.pankajdangi.com/?pushpress=hub'/>
		<item>
		<title>How to install php5 in Ubuntu</title>
		<link>http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/</link>
		<comments>http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 12:52:04 +0000</pubDate>
		<dc:creator>Pankaj</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.pankajdangi.com/?p=617</guid>
		<description><![CDATA[If you are doing any kind of PHP development, you’ll almost always be using Apache along with it.]]></description>
			<content:encoded><![CDATA[<p><strong>Installing PHP5 and Apache on Ubuntu</strong></p>
<p>If you are doing any kind of PHP development, you’ll almost always be using Apache along with it. Here’s the quick and easy way to get PHP up and running on your Ubuntu box.</p>
<p>First, you’ll want to add the extra repositories to Ubuntu’s sources.list file.</p>
<p>From a command shell, you will run the following commands:</p>
<p>sudo apt-get install apache2</p>
<p>sudo apt-get install php5</p>
<p>sudo apt-get install libapache2-mod-php5</p>
<p>sudo /etc/init.d/apache2 restart</p>
<p>Note that if apache is already installed you can omit the first line. Your web files will now be found in /var/www/</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/" title="mac os">mac os</a></li><li><a href="http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/" title="windows 7">windows 7</a></li><li><a href="http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/" title="mac os x desktop">mac os x desktop</a></li><li><a href="http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/" title="install red5 on linux">install red5 on linux</a></li><li><a href="http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/" title="how to install json">how to install json</a></li><li><a href="http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/" title="mac os 10 5">mac os 10 5</a></li><li><a href="http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/" title="install red5 linux">install red5 linux</a></li><li><a href="http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/" title="ioncube wamp">ioncube wamp</a></li><li><a href="http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/" title="install php5 in ubuntu">install php5 in ubuntu</a></li><li><a href="http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/" title="zar 6 6">zar 6 6</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pankajdangi.com/2011/10/how-to-install-php5-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to reset MySql root password</title>
		<link>http://www.pankajdangi.com/2011/07/how-to-reset-mysql-root-passwor/</link>
		<comments>http://www.pankajdangi.com/2011/07/how-to-reset-mysql-root-passwor/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 10:39:26 +0000</pubDate>
		<dc:creator>Pankaj</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.pankajdangi.com/?p=592</guid>
		<description><![CDATA[Recover MySQL root Password Step # 1 : Stop mysql service # /etc/init.d/mysql stop Step # 2: Start to MySQL server w/o password: # mysqld_safe &#8211;skip-grant-tables &#038; Step # 3: Connect to mysql server using mysql client: # mysql -u root Step # 4: Setup new MySQL root user password mysql> use mysql; mysql> update [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Recover MySQL root Password</strong></p>
<p><B>Step # 1 : Stop mysql service</B><br />
# /etc/init.d/mysql stop  </p>
<p><B>Step # 2: Start to MySQL server w/o password:</B></p>
<p># mysqld_safe &#8211;skip-grant-tables &#038;</p>
<p><B>Step # 3: Connect to mysql server using mysql client:</B></p>
<p># mysql -u root</p>
<p><B>Step # 4: Setup new MySQL root user password</B></p>
<p>mysql> use mysql;<br />
mysql> update user set password=PASSWORD(&#8220;NEW-ROOT-PASSWORD&#8221;) where User=&#8217;root&#8217;;<br />
mysql> flush privileges;<br />
mysql> quit</p>
<p><B>Step # 5: Stop MySQL Server:</B></p>
<p># /etc/init.d/mysql stop</p>
<p><B>Step # 6: Start MySQL server and test it </B></p>
<p># /etc/init.d/mysql start<br />
# mysql -u root -p</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pankajdangi.com/2011/07/how-to-reset-mysql-root-passwor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Red5 on Centos</title>
		<link>http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/</link>
		<comments>http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 11:59:20 +0000</pubDate>
		<dc:creator>Pankaj</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.pankajdangi.com/?p=588</guid>
		<description><![CDATA[How to install RED5 server on Centos 5.3. This how to can be used to install RED5 server on Centos 4 and Fedora. 1) Download and Install Java RED5 server depends on Java. CentOS 5.3 comes with OpenJDK 1.6 and install it using yum. yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel 2) Download and Install Ant (Apache [...]]]></description>
			<content:encoded><![CDATA[<p>How to install <strong>RED5 server on Centos 5.3</strong>. This how to can be used to install RED5 server on Centos 4 and Fedora. </p>
<p><B>1) Download and Install Java<br />
</B>RED5 server depends on Java. CentOS 5.3 comes with OpenJDK 1.6 and install it using yum.</p>
<p>yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel</p>
<p><B>2) Download and Install Ant (Apache Project)</B><br />
Ant will need to compile RED5 server code. Download and install it in /usr/local directory.</p>
<p>cd /usr/src<br />
wget http://mirrors.kahuki.com/apache/ant/binaries/apache-ant-1.8.1-bin.tar.bz2<br />
tar jxvf apache-ant-1.8.1-bin.tar.bz2<br />
mv apache-ant-1.8.1 /usr/local/ant</p>
<p><B>3) Export Variables for Ant and Java</B><br />
export ANT_HOME=/usr/local/ant<br />
export JAVA_HOME=/usr/lib/jvm/java<br />
export PATH=$PATH:/usr/local/ant/bin<br />
export CLASSPATH=.:$JAVA_HOME/lib/classes.zip</p>
<p>Also export these variables in /etc/bashrc to become available for every user login or for any terminal opens.</p>
<p>echo ‘export ANT_HOME=/usr/local/ant’ >> /etc/bashrc<br />
echo ‘export JAVA_HOME=/usr/lib/jvm/java’ >> /etc/bashrc<br />
echo ‘export PATH=$PATH:/usr/local/ant/bin’ >> /etc/bashrc<br />
echo ‘export CLASSPATH=.:$JAVA_HOME/lib/classes.zip’ >> /etc/bashrc</p>
<p><B>4) Download and Install RED5 Server<br />
Download from google code using svn.</B></p>
<p>cd /usr/src<br />
svn checkout http://red5.googlecode.com/svn/java/server/trunk/ red5<br />
mv red5 /usr/local/<br />
cd /usr/local/red5<br />
ant prepare<br />
ant dist</p>
<p><B>BUILD SUCCESSFUL</B></p>
<p>that’s mean its install and now copy the conf directory from dist/ and test the red5 installation.</p>
<p>cp -r dist/conf .<br />
./red5.sh</p>
<p>Want to create a script to stop and start red5 please visit this page. <a rel="nofollow" HREF="http://pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/">Red5 Start n Stop Script</A></p>
<p><strong>Any Question:<br />
Feel free to ask: pankajdangi@gmail.com</strong></p>
<h4>Incoming search terms:</h4><ul><li><a href="http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/" title="install red5 centos">install red5 centos</a></li><li><a href="http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/" title="install red5 on centos">install red5 on centos</a></li><li><a href="http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/" title="java-1 6 0-openjdk-devel java_home">java-1 6 0-openjdk-devel java_home</a></li><li><a href="http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/" title="centos red5">centos red5</a></li><li><a href="http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/" title="red5 centos">red5 centos</a></li><li><a href="http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/" title="how to install red5 on centos">how to install red5 on centos</a></li><li><a href="http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/" title="red5 on centos">red5 on centos</a></li><li><a href="http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/" title="install red5 centos 6">install red5 centos 6</a></li><li><a href="http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/" title="centos 6 install red5">centos 6 install red5</a></li><li><a href="http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/" title="centos instal red5 1">centos instal red5 1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pankajdangi.com/2011/06/how-to-install-red5-on-centos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to protect Linux server from Syn and DoS attack</title>
		<link>http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/</link>
		<comments>http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/#comments</comments>
		<pubDate>Wed, 25 May 2011 11:46:43 +0000</pubDate>
		<dc:creator>Pankaj</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://pankajdangi.com/?p=574</guid>
		<description><![CDATA[The SYN (TCP connection request) attack is a common denial of service (DoS) technique. A SYN flood is a form of denial-of-service attack in which an attacker sends a succession of SYN requests to a target’s system When a client attempts to start a TCP connection to a server, the client and server exchange a series of [...]]]></description>
			<content:encoded><![CDATA[<p>The SYN (TCP connection request) attack is a common denial of service (DoS) technique.</p>
<p>A <strong>SYN flood</strong> is a form of denial-of-service attack in which an attacker sends a succession of <code>SYN</code> requests to a target’s system</p>
<p>When a client attempts to start a TCP connection to a server, the client and server exchange a series of messages which normally runs like this:</p>
<ol>
<li>The client requests a connection by sending a <code>SYN</code> (<em>synchronize</em>) message to the server.</li>
<li>The server <em>acknowledges</em> this request by sending <code>SYN-ACK</code> back to the client.</li>
<li>The client responds with an <code>ACK</code>, and the connection is established.</li>
</ol>
<p><strong>How to check the SYN attack on  the server.</strong></p>
<p>A quick and useful command for checking if a server is under ddos:<br />
netstat -anp |grep ‘tcp|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n</p>
<p>That will list the IPs taking the most amounts of connections to a server.  Single Ip with many connections mean Dos attack.</p>
<p>Another very important thing to look at is how many active connections your server is currently processing.</p>
<p><strong>netstat -n | grep :80 |wc -l</strong></p>
<p><strong>netstat -n | grep :80 | grep SYN |wc -l</strong></p>
<p>The first command will show the number of active connections that are  open to your server. Many of the attacks typically seen work by starting a connection to the server and then not sending any reply making the server wait for it to time out.</p>
<p>The number of active connections from the first command is going to vary widely but if you are much above 500 you are probably having problems. If the second command is over 100 you are having trouble with a syn attack.</p>
<p><strong>Solution:</strong></p>
<p>First go with</p>
<p><strong>echo 1 &gt; /proc/sys/net/ipv4/tcp_syncookies</strong></p>
<p>and then</p>
<p>Try with all these IPtables rule , there may other attacks too.</p>
<p><strong><code>iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP<br />
iptables -A INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP<br />
iptables -A INPUT -p tcp --tcp-flags SYN,RST SYN,RST -j DROP<br />
iptables -A INPUT -p tcp --tcp-flags FIN,RST FIN,RST -j DROP<br />
iptables -A INPUT -p tcp --tcp-flags ACK,FIN FIN -j DROP<br />
iptables -A INPUT -p tcp --tcp-flags ACK,PSH PSH -j DROP<br />
iptables -A INPUT -p tcp --tcp-flags ACK,URG URG -j DROP</code></strong></p>
<p>Restart the Iptable service:</p>
<p>service iptables save<br />
service iptables restart</p>
<p>&nbsp;</p>
<p>Cheerrs <img src='http://www.pankajdangi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Need Any Help: <strong>pankaj.dangi@gmail.com</strong></p>
<h4>Incoming search terms:</h4><ul><li><a href="http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/" title="how to protect linux">how to protect linux</a></li><li><a href="http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/" title="protect linux server">protect linux server</a></li><li><a href="http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/" title="linux ddos syn">linux ddos syn</a></li><li><a href="http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/" title="how to protect linux server from udp flood">how to protect linux server from udp flood</a></li><li><a href="http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/" title="ddos TCP linux">ddos TCP linux</a></li><li><a href="http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/" title="linux dos ddos syn">linux dos ddos syn</a></li><li><a href="http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/" title="check syn connections linux">check syn connections linux</a></li><li><a href="http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/" title="netstat -nalp | grep :80 | grep syn">netstat -nalp | grep :80 | grep syn</a></li><li><a href="http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/" title="linux udp flood protection">linux udp flood protection</a></li><li><a href="http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/" title="protect ddos linux">protect ddos linux</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pankajdangi.com/2011/05/how-to-protect-linux-server-from-syn-and-dos-attack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Steps to install Online Radio with SHOUTcast &amp; SAM</title>
		<link>http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/</link>
		<comments>http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 12:30:38 +0000</pubDate>
		<dc:creator>Pankaj</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://pankajdangi.com/?p=538</guid>
		<description><![CDATA[Steps to configure Online Radio Station with SHOUTcast and SAM. Requirement: Dedicated Windows Server or Linux Server. SHOUTcast SHOUTcast DSP plugin SAM Broadcaster (optional) Winamp Download SHOUTCast Download SHOUTcast DSP Plugin Winamp (free version from www.winamp.com/media-player/en) Installation: Install the ShOUTcast-Dnas .exe to windows and then extract the folder sc_serv2 beta.zip to C:/programfiles/SHOUTcast/ Open command prompt: [...]]]></description>
			<content:encoded><![CDATA[<p>Steps to configure Online Radio Station with SHOUTcast and SAM.</p>
<p><strong>Requirement:</strong><br />
<strong>Dedicated Windows Server or Linux Server.<br />
SHOUTcast<br />
SHOUTcast DSP plugin<br />
SAM Broadcaster (optional)<br />
Winamp</strong></p>
<p>Download <a rel="nofollow" href="http://download.shoutcast.com/beta/sc_serv2_beta_02232010.zip"> SHOUTCast </a><br />
Download  <a rel="nofollow" href="http://yp.shoutcast.com/downloads/sc1-9-8/shoutcast-dnas-1-9-8-windows.exe">SHOUTcast DSP Plugin</a><br />
Winamp (free version from www.winamp.com/media-player/en)</p>
<p><strong>Installation:</strong></p>
<p>Install the ShOUTcast-Dnas .exe to windows and then extract the folder sc_serv2 beta.zip to<br />
C:/programfiles/SHOUTcast/</p>
<p>Open command prompt:<br />
 cd:/Program FilesSHOUTcast</p>
<p>Before executing final command, edit sc_serv.ini according to your configuration like port no, password and no. of connections.</p>
<p>You can make multiple copy of sc_serv.ini for multiple play-stations.</p>
<p>Now run the command.<br />
C:Program FilesSHOUTcast>sc_serv.exe sc_serv.ini</p>
<p><img src="http://pankajdangi.com/images/radio.png" alt="radio" width="700px"/></p>
<p>Check your SHOUTcast server.</p>
<p><strong>http://localhost:8000</strong></p>
<p><img src="http://pankajdangi.com/images/radio1.png" alt="radio" width="700px"/></p>
<p>How to broadcast?.<br />
You can choose any options, like winamp or SAM Broadcaster( As SAM is Licensed Version</p>
<p>SAM Broadcaster (you can use trial version <a rel="nofollow" href="http://www.spacialaudio.com/?page=sam-broadcaster-download"> SAM Broadcaster </a>)</p>
<p>You just need to add port no. and password of SHOUTcast server.</p>
<p>I am sharing screen-shots, which shows how to stream your server.</p>
<p><img src="http://pankajdangi.com/images/radio2.png" alt="radio" width="700px"/></p>
<p><img src="http://pankajdangi.com/images/radio3.png" alt="radio" width="700px" /></p>
<p><img src="http://pankajdangi.com/images/radio4.png" alt="radio" width="700px" /></p>
<p><img src="http://pankajdangi.com/images/radio5.png" alt="radio" width="700px" /></p>
<p><strong>Cheerrrss <img src='http://www.pankajdangi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Any Question or Query:<br />
<!--Feel free to contact me on: pankaj.dangi@gmail.com</strong>&#8211;><br />
<!--WP_PAYPAL_DONATION_--></p>
<h4>Incoming search terms:</h4><ul><li><a href="http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/" title="SAM Broadcaster">SAM Broadcaster</a></li><li><a href="http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/" title="shoutcast server config ini multi">shoutcast server config ini multi</a></li><li><a href="http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/" title="radio station">radio station</a></li><li><a href="http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/" title="install online radio station">install online radio station</a></li><li><a href="http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/" title="shoutcast server">shoutcast server</a></li><li><a href="http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/" title="setup radio station using sam broadcaster">setup radio station using sam broadcaster</a></li><li><a href="http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/" title="sam broadcaster установка">sam broadcaster установка</a></li><li><a href="http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/" title="sam broadcaster shoutcast dnas">sam broadcaster shoutcast dnas</a></li><li><a href="http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/" title="dsp plugin for sam broadcaster">dsp plugin for sam broadcaster</a></li><li><a href="http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/" title="setting shoutcast sc_serv to run with sam broadcaster">setting shoutcast sc_serv to run with sam broadcaster</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pankajdangi.com/2010/11/steps-to-install-online-radio-with-shoutcast-sam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install FFMPEG on Linux Server</title>
		<link>http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/</link>
		<comments>http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 12:59:31 +0000</pubDate>
		<dc:creator>Pankaj</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://pankajdangi.com/?p=530</guid>
		<description><![CDATA[PREREQUISITE to install FFMPEG yum -y install php-devel php-gd php-mbstring gcc gcc-c++ libtool svn git yasm gsm-devel libogg-devel libvorbis-devel libtheora-devel; mkdir /ffmpeg-conf; ln -s /etc/init.d/httpd /ffmpeg-config/httpd; ln -s /etc/httpd/conf/httpd.conf /ffmpeg-config/httpd.conf; ln -s /var/log/httpd/ /ffmpeg-config/logs; ln -s /usr/lib/php/modules/ /ffmpeg-config/php5-extensions; ln -s /etc/httpd/conf.d/php.conf /ffmpeg-config/php.conf; ln -s /etc/httpd/conf.d/ /ffmpeg-config/apache-conf; ln -s /etc/php.ini /ffmpeg-config/php.ini; ln -s /etc/php.d/ /ffmpeg-config/php-ini; ln [...]]]></description>
			<content:encoded><![CDATA[<p>PREREQUISITE to install FFMPEG</p>
<p><strong>yum -y install php-devel php-gd php-mbstring gcc gcc-c++ libtool svn git yasm gsm-devel libogg-devel libvorbis-devel libtheora-devel;</strong></p>
<p>mkdir /ffmpeg-conf;<br />
ln -s /etc/init.d/httpd /ffmpeg-config/httpd;<br />
ln -s /etc/httpd/conf/httpd.conf /ffmpeg-config/httpd.conf;<br />
ln -s /var/log/httpd/ /ffmpeg-config/logs;<br />
ln -s /usr/lib/php/modules/ /ffmpeg-config/php5-extensions;<br />
ln -s /etc/httpd/conf.d/php.conf /ffmpeg-config/php.conf;<br />
ln -s /etc/httpd/conf.d/ /ffmpeg-config/apache-conf;<br />
ln -s /etc/php.ini /ffmpeg-config/php.ini;<br />
ln -s /etc/php.d/ /ffmpeg-config/php-ini;<br />
ln -s /var/www/html/ /ffmpeg-config/public-html;<br />
/ffmpeg-config/httpd restart;</p>
<ul>
<li><strong>Installing FFMEG</strong></li>
</ul>
<p>Download FFMPEG source. Export latest version of ffmpeg from subversion.</p>
<p>Create a folder<br />
mkdir /usr/local/download</p>
<p><strong>svn export svn://svn.mplayerhq.hu/ffmpeg/trunk /usr/local/download/ffmpeg-trunk-source; </strong><br />
cd /usr/local/download/ffmpeg-trunk-source;</p>
<p>Now we will download, configure and make all extensions in download folder.</p>
<p><strong>1. Install <a rel="nofollow" href="http://www.videolan.org/developers/x264.html"></a> x264.</strong> Export the latest x264 from Git.</p>
<p>cd /usr/local/download<br />
<strong>git clone git://git.videolan.org/x264.git</strong><br />
cd x264<br />
./configure &#8211;prefix=/usr &#8211;enable-shared &#8211;enable-pthread<br />
make<br />
make install<br />
cd ..</p>
<p><strong>2. Install liba52. Download the latest version.</strong></p>
<p><strong>wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz</strong><br />
tar -zxvf a52dec-0.7.4.tar.gz<br />
cd a52dec-0.7.4<br />
./configure &#8211;prefix=/usr &#8211;enable-double<br />
make<br />
make install<br />
cd ..</p>
<p><strong>3. Install FAAC.</strong></p>
<p><strong>wget http://downloads.sourceforge.net/faac/faac-1.26.tar.gz</strong><br />
tar -zxvf faac-1.26.tar.gz<br />
cd faac<br />
autoreconf -vif<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd ..</p>
<p><strong>4. Install FAAD.</strong></p>
<p><strong>wget http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz</strong><br />
tar -zxvf faad2-2.6.1.tar.gz<br />
cd faad2<br />
autoreconf -vif<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd ..</p>
<p><strong>5. Install LAME</strong></p>
<p><strong>wget http://downloads.sourceforge.net/lame/lame-3.98b8.tar.gz</strong><br />
tar -zxvf lame-3.98b8.tar.gz<br />
cd lame-3.98b8<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd ..</p>
<p><strong>6.Install libmpeg2</strong></p>
<p><strong>wget http://libmpeg2.sourceforge.net/files/mpeg2dec-0.4.1.tar.gz</strong><br />
tar -zxvf mpeg2dec-0.4.1.tar.gz<br />
cd mpeg2dec-0.4.1<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd ..</p>
<p><strong>7. Install Xvid.</strong></p>
<p><strong>wget http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.gz</strong><br />
tar -zxvf xvidcore-1.1.3.tar.gz<br />
cd xvidcore-1.1.3/build/generic<br />
./configure &#8211;prefix=/usr<br />
make;<br />
make install<br />
cd ../../../</p>
<p><strong>8. Install AMR/3GPP</strong></p>
<p><strong>wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.1.tar.bz2</strong><br />
tar -jxvf amrnb-7.0.0.1.tar.bz2<br />
cd amrnb-7.0.0.1<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd ..</p>
<p>Now its time to compile FFMPEG.</p>
<p>cd /usr/local/download/ffmpeg-trunk-source</p>
<p><strong>./configure &#8211;prefix=/usr &#8211;enable-static &#8211;enable-shared &#8211;enable-gpl &#8211;enable-nonfree &#8211;enable-postproc &#8211;enable-avfilter &#8211;enable-avfilter-lavf &#8211;enable-liba52 &#8211;enable-liba52bin &#8211;enable-libopencore-amrwb &#8211;enable-libopencore-amrnb &#8211;enable-libfaac &#8211;enable-libfaad &#8211;enable-libfaadbin &#8211;enable-libgsm &#8211;enable-libmp3lame &#8211;enable-libtheora &#8211;enable-libvorbis &#8211;enable-libx264 &#8211;enable-libxvid</strong></p>
<p>make<br />
make install</p>
<p><strong>Now download the latlest FFMPEG-PHP package from</strong></p>
<p><strong>svn co https://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php ffmpeg-php</strong><br />
cd ffmpeg-php<br />
phpize<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd..</p>
<p><strong>Add FFMPEG-PHP to the PHP configuration</strong></p>
<p>add extension=ffmpeg.so to /ffmpeg-config/php-ini/ffmpeg.ini</p>
<p><strong>Restart Apache.</strong><br />
/ffmpeg-config/httpd restart</p>
<p><strong>Cheers!<br />
Any Help Feel Free to Ask:<br />
pankaj.dangi@gmail.com</strong><em></p>
<h4>Incoming search terms:</h4><ul><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/" title="how to install ffmpeg on linux server">how to install ffmpeg on linux server</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/" title="how to install ffmpeg on linux">how to install ffmpeg on linux</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/" title="install ffmpeg in linux server">install ffmpeg in linux server</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/" title="install ffmpeg linux">install ffmpeg linux</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/" title="how to compile ffmpeg on linux">how to compile ffmpeg on linux</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/" title="install ffmpeg on linux server">install ffmpeg on linux server</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/" title="install ffmpeg on linux">install ffmpeg on linux</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/" title="install ffmpeg in linux">install ffmpeg in linux</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/" title="how to install FFmpeg in linux">how to install FFmpeg in linux</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/" title="linux install ffmpeg">linux install ffmpeg</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to install JSON for php5</title>
		<link>http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/</link>
		<comments>http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 05:51:04 +0000</pubDate>
		<dc:creator>Pankaj</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://pankajdangi.com/?p=526</guid>
		<description><![CDATA[Hey Folks, Few days back, I was stuck with json problem to my VPS server. ['Exception' with message 'Facebook needs the JSON PHP extension.] After a long research I had found solutions for it, Have a look. Install json – Command to run at server: pecl install json This was as easy as running pecl [...]]]></description>
			<content:encoded><![CDATA[<p>Hey Folks,</p>
<p>Few days back, I was stuck with json problem to my VPS server. <strong>['Exception' with message 'Facebook needs the JSON PHP extension.]</strong><br />
After a long research I had found solutions for it, <strong>Have a look.</strong></p>
<p><strong>Install json</strong> – Command to run at server: <strong>pecl install json</strong></p>
<p>This was as easy as running pecl install json and watching the compiler do its thing. When it’s done you should have a json.so file in your PHP modules directory. <strong>(Check  /usr/lib/php/modules/.)</strong></p>
<p>add<strong> json.ini file to /etc/php.d/</strong> – Simply add <strong>extension=json.so</strong> to this file and that will enable the <strong>extension.</strong></p>
<p><strong>Restart Apache – /etc/init.d/httpd restart</strong><br />
Cheeerrrrsss <img src='http://www.pankajdangi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h4>Incoming search terms:</h4><ul><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/" title="install json">install json</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/" title="how can install json">how can install json</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/" title="how to install json in php5">how to install json in php5</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/" title="how to install json php extension windows">how to install json php extension windows</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/" title="how to installa json">how to installa json</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/" title="install json php in window">install json php in window</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/" title="install json vps">install json vps</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/" title="json howto install">json howto install</a></li><li><a href="http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/" title="\facebook needs the json php extension">\facebook needs the json php extension</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pankajdangi.com/2010/10/how-to-install-json-for-php5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to auto start red5 in linux server</title>
		<link>http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/</link>
		<comments>http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 10:51:34 +0000</pubDate>
		<dc:creator>Pankaj</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://pankajdangi.com/?p=502</guid>
		<description><![CDATA[Hello Folks, How to auto start red5 when server boots or script to start, stop, restart the red5 server. [Script to run at the time of start, stop , restart] #! /bin/sh # # /etc/init.d/red5 # # Check for missing file export ANT_HOME=/opt/ant export JAVA_HOME=/usr/java/ export PATH=.:/opt/ant/bin export CLASSPATH=.:/usr/java/default/lib/classes.zip export RED5_HOME=/opt/red5/ RED5_DIR=/opt/red5/ #test -x $RED5_DIR/red5.sh [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Folks,</p>
<p>How to auto start red5 when server boots or script to start, stop, restart the red5 server.</p>
<p><strong>[Script to run at the time of start, stop , restart]</strong><br />
<code>#! /bin/sh<br />
#<br />
# /etc/init.d/red5<br />
#<br />
# Check for missing file<br />
export ANT_HOME=/opt/ant<br />
export JAVA_HOME=/usr/java/<br />
export PATH=.:/opt/ant/bin<br />
export CLASSPATH=.:/usr/java/default/lib/classes.zip<br />
export RED5_HOME=/opt/red5/<br />
RED5_DIR=/opt/red5/<br />
#test -x $RED5_DIR/red5.sh || exit 5</p>
<p>case "$1" in<br />
    start)<br />
        echo -n "Starting red5"</p>
<p>        $RED5_DIR/red5.sh &#038;<br />
         ;;<br />
    stop)<br />
        echo -n "Shutting down red5"<br />
        echo -n " "<br />
         $RED5_DIR/red5-shutdown.sh &#038;</p>
<p>        ;;<br />
    restart)<br />
        ## Stop the service and regardless of whether it was<br />
        ## running or not, start it again.<br />
        $0 stop<br />
        $0 start<br />
        ;;<br />
esac<br />
</code></p>
<p>Move the file red5.sh to the path: /etc/init.d/<br />
Execute the command at Terminal as super user:<strong> chkconfig &#8211;add red5</strong></p>
<p>If it doesn&#8217;t work, please make sure that the path of command chkconfig is correct.<br />
Check the installation of<strong> chkconfig: rpm –qa|grep chkconfig</strong><br />
Chkconfig file path: whereis chkconfig</p>
<p><strong>chkconfig: /sbin/chkconfig /usr/share/man/man8/chkconfig.8.gz</strong></p>
<p>As the above shows, the path of command chkconfig is /sbin/chkconfig, so we change the command: <strong>/sbin/chkconfig &#8211;add red5</strong><br />
Using the following command can make red5 start the service: <strong>/etc/init.d/red5 start</strong></p>
<h4>Incoming search terms:</h4><ul><li><a href="http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/" title="red5 autostart">red5 autostart</a></li><li><a href="http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/" title="start red5 linux">start red5 linux</a></li><li><a href="http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/" title="how to start red5 server">how to start red5 server</a></li><li><a href="http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/" title="red5 linux autostart">red5 linux autostart</a></li><li><a href="http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/" title="start red5">start red5</a></li><li><a href="http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/" title="red5 script in linux">red5 script in linux</a></li><li><a href="http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/" title="red5 start file">red5 start file</a></li><li><a href="http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/" title="ubuntu script to start red5 as service">ubuntu script to start red5 as service</a></li><li><a href="http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/" title="red5 linux auto start">red5 linux auto start</a></li><li><a href="http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/" title="red5 auto start">red5 auto start</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pankajdangi.com/2010/09/how-to-auto-start-red5-in-linux-server/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Samba! Sharing is not working in 9.10</title>
		<link>http://www.pankajdangi.com/2010/08/samba-sharing-is-not-working-in-9-10/</link>
		<comments>http://www.pankajdangi.com/2010/08/samba-sharing-is-not-working-in-9-10/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 10:07:59 +0000</pubDate>
		<dc:creator>Pankaj</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://pankajdangi.com/?p=489</guid>
		<description><![CDATA[Hello All, Found a common problem with Ubuntu 9.10 Failed to execute child process &#8220;testparm&#8221; (No such file or directory). Solution: sudo apt-get upgrade samba-common-bin Cheerss]]></description>
			<content:encoded><![CDATA[<p>Hello All,</p>
<p>Found a common problem with Ubuntu 9.10</p>
<p><strong>Failed to execute child process &#8220;testparm&#8221; (No such file or directory).</strong></p>
<p>Solution:</p>
<pre dir="ltr"><strong>sudo apt-get upgrade samba-common-bin

Cheerss <img src='http://www.pankajdangi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.pankajdangi.com/2010/08/samba-sharing-is-not-working-in-9-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to backup the remote files in Linux with cronjob</title>
		<link>http://www.pankajdangi.com/2010/08/how-to-backup-the-remote-files-in-linux-with-cronjob/</link>
		<comments>http://www.pankajdangi.com/2010/08/how-to-backup-the-remote-files-in-linux-with-cronjob/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 08:09:27 +0000</pubDate>
		<dc:creator>Pankaj</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://pankajdangi.com/?p=482</guid>
		<description><![CDATA[How backup files from remote Linux server We want to backup files from remote server called srv.pankajdangi.com and directory called /home/pankaj to local directory called /var/www/backup, type the command as follows on local system: $ rsync -avz -e ssh pankaj@srv.pankajdangi.com:/home/pankaj/ /var/www/backup You need to supply password for pankaj user. Done. Automatic backup using a shell [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How backup files from remote Linux server</strong></p>
<p>We want to backup files from remote server called srv.pankajdangi.com and directory called /home/pankaj to local directory called /var/www/backup, type the command as follows on local system:</p>
<p>$ rsync -avz -e ssh pankaj@srv.pankajdangi.com:/home/pankaj/ /var/www/backup</p>
<p>You need to supply password for pankaj user.<br />
<strong>Done.</strong></p>
<p><strong>Automatic backup using a shell script</strong></p>
<p>SSH always prompts for a password. To automate process via a shell script you need to remove password using SSH key.<br />
Run command at local system.</p>
<p>$ ssh-keygen -t dsa<br />
When asked for to enter passphrase, just press [ENTER] key twice. Now copy public key to remote server:<br />
$ scp ~/.ssh/id_dsa.pub pankaj@srv.pankaj.com:.ssh/authorized_keys<br />
Now you can login without a password.</p>
<p><strong>Now create a simple shell script as follows:</strong><br />
$ vi /var/www/backup.sh<br />
Append code:<br />
#!/bin/bash<br />
rsync -avz -e ssh pankaj@srv.pankajdangi.com:/home/pankaj/ /var/www/backup</p>
<p><strong>Setup executable permission using chmod command:</strong><br />
$ chmod +x backup.sh</p>
<p><strong>Use cron to command to backup remote server:</strong><br />
$ crontab -e<br />
Make a backup everyday:<br />
0 5 * * * /path/to/backup.sh [It will run everyday at 5]</p>
<p><strong>Done</strong><br />
<strong>Cheers<br />
</strong></p>
<h4>Incoming search terms:</h4><ul><li><a href="http://www.pankajdangi.com/2010/08/how-to-backup-the-remote-files-in-linux-with-cronjob/" title="/var/www/backup sh">/var/www/backup sh</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.pankajdangi.com/2010/08/how-to-backup-the-remote-files-in-linux-with-cronjob/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

