<?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>Nazly's BLOG &#187; GNU/Linux</title>
	<atom:link href="http://www.nazly.net/category/technology/gnu-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nazly.net</link>
	<description>Personal Weblog of Nazly Ahmed : Web Developer. PHP Addict. Wordpress Hacker. FOSS Enthusiast. (Micro)Blogger. Cricket Fanatic. Husband. Dad.</description>
	<lastBuildDate>Sat, 19 Jun 2010 07:26:55 +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>Batch resize/rotate photos in Nautilus</title>
		<link>http://www.nazly.net/batch-resizerotate-photos-in-nautilus/</link>
		<comments>http://www.nazly.net/batch-resizerotate-photos-in-nautilus/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 18:05:08 +0000</pubDate>
		<dc:creator>Nazly</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[filemanager]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nautilus]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[rotate]]></category>

		<guid isPermaLink="false">http://www.nazly.net/?p=855</guid>
		<description><![CDATA[It came as quite a surprise when I figured out that Nautilus, the file manager for the GNOME desktop actually had an extension to resize/rotate photos. I don&#8217;t do much post editing after taking photos. If any editing is required, I would normally edit it using an image editor depending on the requirement. But in [...]]]></description>
			<content:encoded><![CDATA[<p>It came as quite a surprise when I figured out that Nautilus, the file manager for the GNOME desktop actually had an extension to resize/rotate photos. I don&#8217;t do much post editing after taking photos. If any editing is required, I would normally edit it using an image editor depending on the requirement. But in most cases it doesn&#8217;t require me to resize the photos since I upload the originals to my <a href="http://flickr.com/photos/nazly" target="_blank">Flickr gallery</a>. But I wanted to upload some photos I took today to Facebook. I didn&#8217;t want to upload the originals since it had a higher resolution and the file sizes were bigger. I wanted to resize all the photos in a batch. I had a PHP script that uses GD library for this particular task which I wrote long time back. I have also used Image Magick which works like magic for operations like this. My task was simple and all it required was to resize all the photos in one go and the <strong>Nautilus Image Converter</strong> just did that with ease.</p>
<p>Installation is quite simple in Ubuntu 9.10</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> nautilus-image-converter</pre></div></div>

<p>This will install the Image Converter extension to the Nautilus file manager. You will need restart GNOME in order for the changes to apply. If you are using a different distro, I&#8217;m sure you will be able to do a Google Search to find out how to install it.</p>
<p>After the installation its all a matter of browsing the folder where you have the photos through Nautilus.</p>
<ul>
<li>Select the photo(s) you want to resize.</li>
<li>Right-click on the photos you selected. You will see the options to &#8220;Resize Images&#8221; and &#8220;Rotate Images&#8221;.</li>
<li>Upon clicking them you will get options on how you would want to perform the operations.</li>
</ul>
<p>Its one of those coolest apps I came across which does the simple things in a simple way. Love it..!!!</p>
<p><a href="http://www.nazly.net/wp-content/uploads/2010/04/Screenshot.jpg"><img class="alignnone size-medium wp-image-864" title="Nautilus Image Converter" src="http://www.nazly.net/wp-content/uploads/2010/04/Screenshot-300x215.jpg" alt="Nautilus Image Converter" width="300" height="215" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nazly.net/batch-resizerotate-photos-in-nautilus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CHMOD recursively</title>
		<link>http://www.nazly.net/chmod-recursively/</link>
		<comments>http://www.nazly.net/chmod-recursively/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 03:04:58 +0000</pubDate>
		<dc:creator>Nazly</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://blog.nazly.net/chmod-recursively/</guid>
		<description><![CDATA[Time to time I come across this problem when I have to move large portions of directories and files from one location to another. Mostly after extracting from tar archives. The directory/file permissions are often messed up depending on the source I copied them or based on the way I copied/archived them. So I used [...]]]></description>
			<content:encoded><![CDATA[<p>Time to time I come across this problem when I have to move large portions of directories and files from one location to another. Mostly after extracting from tar archives. The directory/file permissions are often messed up depending on the source I copied them or based on the way I copied/archived them. So I used to use this technique to CHMOD directories and files recursively. Today when I was using this I thought of blogging it for my own future reference. If there is a better way feel free to comment.</p>
<p><b>CHMOD directories only</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> d <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p><b>CHMOD files only</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">644</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nazly.net/chmod-recursively/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>My new ASUS X51R laptop and Ubuntu 8.04</title>
		<link>http://www.nazly.net/my-new-asus-x51r-laptop-and-ubuntu-8-04/</link>
		<comments>http://www.nazly.net/my-new-asus-x51r-laptop-and-ubuntu-8-04/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 04:31:19 +0000</pubDate>
		<dc:creator>Nazly</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[x51r]]></category>

		<guid isPermaLink="false">http://blog.nazly.net/my-new-asus-x51r-laptop-and-ubuntu-8-04/</guid>
		<description><![CDATA[After giving up my IBM Thinkpad laptop sometime back, I got used to working on Desktops for a while. But it didn&#039;t help me a great deal in organizing things when shifting my work from home to office and vice versa. So again I started hunting for a laptop that will fulfill all my needs. [...]]]></description>
			<content:encoded><![CDATA[<p>After giving up my IBM Thinkpad laptop sometime back, I got used to working on Desktops for a while. But it didn&#039;t help me a great deal in organizing things when shifting my work from home to office and vice versa. So again I started hunting for a laptop that will fulfill all my needs. Finally I settled with an ASUS X51R notebook that comes with a Dual Core 2Ghz processor, 1GB RAM, 256MB ATI VGA Card, 120GB Hard disk, DVD Writer, Wireless etc.. It turned out to be good deal at the end so I went for it.</p>
<p><img src="http://www.nazly.net/imgs/x51r.jpg" alt="http://www.nazly.net/imgs/x51r.jpg" border="0" /></p>
<p>I loaded my OS of choice Ubuntu 8.04 Hardy Heron on this and everything went very smoothly except that I couldn&#039;t get the wireless working. By running <i>lspci</i> the wireless card was shown as Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter which is an Atheros AR5007EG wireless card. The proprietary driver for Atheros was installed by Hardy but when I ran <i>iwconfig</i> this is what I got.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">lo        no wireless extensions.
&nbsp;
eth0      no wireless extensions.</pre></div></div>

<p>Few google searches resulted me about <a href="http://madwifi.org" target="_blank">madwifi</a>. <i>Madwifi is a team of volunteer developers working on Linux kernel drivers for Wireless LAN devices with Atheros chipsets.</i> I got madwifi installed and got my wireless card working. Here is how I did it.</p>
<p>First I disabled both proprietary drivers in System -&gt; Administration -&gt; Hardware drivers.</p>
<p>Then in the command prompt I did the following</p>
<p><b>Get this version of madwifi</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-c</span> <span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz&quot;</span> <span style="color: #007800;">target</span>=<span style="color: #ff0000;">&quot;_blank&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>http:<span style="color: #000000; font-weight: bold;">//</span>snapshots.madwifi.org<span style="color: #000000; font-weight: bold;">/</span>special<span style="color: #000000; font-weight: bold;">/</span>madwifi-ng-r2756+ar5007.tar.gz<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p><b>Untar the file</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xvf madwifi-ng-r2756+ar5007.tar.gz</pre></div></div>

<p><b>Move inside the directory</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> madwifi-ng-r2756+ar5007</pre></div></div>

<p><b>You might need build-essential if you haven&#039;t compiled anything before</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential</pre></div></div>

<p><b>Building madwifi and installing the modules</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe ath_pci
<span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe wlan_scan_sta</pre></div></div>

<p><b>Loading module at boot</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>modules</pre></div></div>

<p>Enter the line below in the last line of the file and save.<br />
<br /><b>ath_pci</b></p>
<p>Thats it. I restarted the machine and ran <i>iwconfig</i> again to check</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">lo        no wireless extensions.
&nbsp;
eth0      no wireless extensions.
&nbsp;
wifi0     no wireless extensions.
&nbsp;
ath0      IEEE 802.11g  ESSID:<span style="color: #ff0000;">&quot;&quot;</span>  Nickname:<span style="color: #ff0000;">&quot;&quot;</span>
          Mode:Managed  Frequency:<span style="color: #000000;">2.437</span> GHz  Access Point: Not-Associated   
          Bit Rate:<span style="color: #000000;">0</span> kb<span style="color: #000000; font-weight: bold;">/</span>s   Tx-Power:<span style="color: #000000;">17</span> dBm   <span style="color: #007800;">Sensitivity</span>=<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span>  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link <span style="color: #007800;">Quality</span>=<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">70</span>  Signal <span style="color: #007800;">level</span>=<span style="color: #000000;">0</span> dBm  Noise <span style="color: #007800;">level</span>=<span style="color: #000000;">0</span> dBm
          Rx invalid nwid:<span style="color: #000000;">0</span>  Rx invalid crypt:<span style="color: #000000;">0</span>  Rx invalid frag:<span style="color: #000000;">0</span>
          Tx excessive retries:<span style="color: #000000;">0</span>  Invalid misc:<span style="color: #000000;">0</span>   Missed beacon:<span style="color: #000000;">0</span></pre></div></div>

<p>As you can see its now showing that the wireless card is working properly. Thanks to <a href="http://madwifi.org" target="_blank">madwifi</a>.</p>
<p>When it came to my graphic card I had to use the ATI propriety driver to make full use of it. Since Hardy comes with compiz out of the box I managed to get the 3D desktop working without much hassle. </p>
<p>To get compiz working in Hardy there are two things to be done.<br />
<br />1. Goto System -&gt; Preferences &#8211; Appearance and click Visual Effects tab. Then tick Extra to get the effects working.<br />
<br />2. Install the Compiz Settings Manager.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> compizconfig-settings-manager</pre></div></div>

<p>After installing you can goto System -&gt; Preferences &#8211; Advanced Desktop Effects Settings to add/configure/remove effects related to compiz.</p>
<p>I also enabled Emerald themes to get out of the standard Gnome look. Here is how got emerald working. </p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> emerald</pre></div></div>

<p>Now if you goto System -&gt; Preferences &#8211; Emerald Theme Manager you can configure an Emerald theme of your choice. By default it doesn&#039;t come with any themes so you need to download themes from <a href="http://gnome-look.org/index.php?xcontentmode=103" target="_blank">Gnome-Look</a>.<br />
<br />However you need to tell compiz to use Emerald as its Window Decorator. To do that goto System -&gt; Preferences &#8211; Advanced Desktop Effects Settings and under Effects category click on the Window Decoration icon which will take you to its settings. In the &#039;Command&#039; field delete whatever is in there and add this value to that field</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">emerald --replace.</pre></div></div>

<p>Have fun..</p>
<p>I found a nice Emerald theme which kinda reflects the one used by Matt Farrell in the movie Die Hard 4.0. Here are few screeshots of my desktop. </p>
<p><b>3D desktop with compiz on Hardy</b><br />
<br /><a href="http://www.flickr.com/photos/nazly/2577565443/" title="Desktop 3D Cube by Nazly, on Flickr"><img src="http://farm4.static.flickr.com/3048/2577565443_cf19239eae.jpg" width="500" height="313" alt="Desktop 3D Cube" border="0" /></a></p>
<p><b>Desktop with new look theme</b><br />
<br /><a href="http://www.flickr.com/photos/nazly/2577569685/" title="New notebook new theme by Nazly, on Flickr"><img src="http://farm4.static.flickr.com/3157/2577569685_44a971118f.jpg" width="500" height="313" alt="New notebook new theme" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nazly.net/my-new-asus-x51r-laptop-and-ubuntu-8-04/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>UNIX Cheat Sheet</title>
		<link>http://www.nazly.net/unix-cheat-sheet/</link>
		<comments>http://www.nazly.net/unix-cheat-sheet/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 03:58:58 +0000</pubDate>
		<dc:creator>Nazly</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://blog.nazly.net/unix-cheat-sheet/</guid>
		<description><![CDATA[Here is a comprehensive document that has a collection of Unix/Linux/BSD commands and tasks which can be very useful in our day to day work.
UNIX Toolbox
This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a comprehensive document that has a collection of Unix/Linux/BSD commands and tasks which can be very useful in our day to day work.</p>
<p><a href="http://cb.vu/unixtoolbox.xhtml" target="_blank">UNIX Toolbox</a></p>
<p><i>This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nazly.net/unix-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing FFMPEG and FFMPEG-PHP on CentOS</title>
		<link>http://www.nazly.net/installing-ffmpeg-and-ffmpeg-php-on-centos/</link>
		<comments>http://www.nazly.net/installing-ffmpeg-and-ffmpeg-php-on-centos/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 04:01:15 +0000</pubDate>
		<dc:creator>Nazly</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[ffmpeg-php]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://blog.nazly.net/installing-ffmpeg-and-ffmpeg-php-on-centos/</guid>
		<description><![CDATA[Last few weeks couple of my colleagues were working on a website that required converting videos to FLV format which is much similar to what youtube does. Inorder to do this they were using ffmpeg which does all the video conversion. He also used ffmpeg-php which is an extension for PHP that allows to retrieve [...]]]></description>
			<content:encoded><![CDATA[<p>Last few weeks couple of my colleagues were working on a website that required converting videos to FLV format which is much similar to what youtube does. Inorder to do this they were using ffmpeg which does all the video conversion. He also used ffmpeg-php which is an extension for PHP that allows to retrieve information regarding a video file. So I had to get a local development environment working for this particular project. I had an Ubuntu 7.04 box and found <a href="http://linux.justinhartman.com/FFmpeg,_FFmpeg-PHP,_Lame,_Libogg,_Libvorbis,_FLVtool2,_Mplayer,_Mencoder,_AMR_Installation" target="_blank">this tutorial</a> for installing ffmpeg and ffmpeg-php. I was successfully able to get it working and my colleagues built the site and it was working very smoothly.</p>
<p>Now when we got to the stage of launching the site, I had to repeat all the installation on a live server as they don&#039;t come with ffmpeg or ffmpeg-php pre installed. Hosting Companies seem to charge big bucks to get these installed in their servers. So we went for a Virtual Dedicated Server which had root access. It was a Cent OS 4 box and this is how I was able to get ffmpeg and ffmpeg-php installed on it.</p>
<p><b>Switch to working directory</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src</pre></div></div>

<p><b>Download the source files needed</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2&quot;</span> <span style="color: #007800;">target</span>=<span style="color: #ff0000;">&quot;_blank&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>http:<span style="color: #000000; font-weight: bold;">//</span>www3.mplayerhq.hu<span style="color: #000000; font-weight: bold;">/</span>MPlayer<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>codecs<span style="color: #000000; font-weight: bold;">/</span>essential-20061022.tar.bz2<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz&quot;</span> <span style="color: #007800;">target</span>=<span style="color: #ff0000;">&quot;_blank&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>http:<span style="color: #000000; font-weight: bold;">//</span>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">9225</span><span style="color: #000000; font-weight: bold;">/</span>flvtool2_1.0.5_rc6.tgz<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz&quot;</span> <span style="color: #007800;">target</span>=<span style="color: #ff0000;">&quot;_blank&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>http:<span style="color: #000000; font-weight: bold;">//</span>easynews.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>sourceforge<span style="color: #000000; font-weight: bold;">/</span>lame<span style="color: #000000; font-weight: bold;">/</span>lame-3.97.tar.gz<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2&quot;</span> <span style="color: #007800;">target</span>=<span style="color: #ff0000;">&quot;_blank&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>http:<span style="color: #000000; font-weight: bold;">//</span>superb-west.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>sourceforge<span style="color: #000000; font-weight: bold;">/</span>ffmpeg-php<span style="color: #000000; font-weight: bold;">/</span>ffmpeg-php-0.5.0.tbz2<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz&quot;</span> <span style="color: #007800;">target</span>=<span style="color: #ff0000;">&quot;_blank&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>http:<span style="color: #000000; font-weight: bold;">//</span>downloads.xiph.org<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>ogg<span style="color: #000000; font-weight: bold;">/</span>libogg-1.1.3.tar.gz<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz&quot;</span> <span style="color: #007800;">target</span>=<span style="color: #ff0000;">&quot;_blank&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>http:<span style="color: #000000; font-weight: bold;">//</span>downloads.xiph.org<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>vorbis<span style="color: #000000; font-weight: bold;">/</span>libvorbis-1.1.2.tar.gz<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p><b>Extract the Source files</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bunzip2</span> essential-20061022.tar.bz2; <span style="color: #c20cb9; font-weight: bold;">tar</span> xvf essential-20061022.tar
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf flvtool2_1.0.5_rc6.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf lame-3.97.tar.gz
<span style="color: #c20cb9; font-weight: bold;">bunzip2</span> ffmpeg-php-0.5.0.tbz2; <span style="color: #c20cb9; font-weight: bold;">tar</span> xvf ffmpeg-php-0.5.0.tar
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf libogg-1.1.3.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf libvorbis-1.1.2.tar.gz</pre></div></div>

<p><b>Create a directory for codecs &amp; import them</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>codecs<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> essential-<span style="color: #000000;">20061022</span><span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>codecs<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">755</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>codecs<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p><b>Install SVN/Ruby</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> subversion
yum <span style="color: #c20cb9; font-weight: bold;">install</span> ruby
yum <span style="color: #c20cb9; font-weight: bold;">install</span> ncurses-devel</pre></div></div>

<p><b>Get the latest FFMPEG/MPlayer from the subversion</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> checkout <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>svn.mplayerhq.hu<span style="color: #000000; font-weight: bold;">/</span>ffmpeg<span style="color: #000000; font-weight: bold;">/</span>trunk <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> checkout <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>svn.mplayerhq.hu<span style="color: #000000; font-weight: bold;">/</span>mplayer<span style="color: #000000; font-weight: bold;">/</span>trunk <span style="color: #c20cb9; font-weight: bold;">mplayer</span></pre></div></div>

<p><b>Fix few Lib issues for next steps</b><br />
<br />Add this line in /etc/ld.so.conf<br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib</pre></div></div>

<p>then run<br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ldconfig <span style="color: #660033;">-v</span></pre></div></div>

<p><b>Compile LAME</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>lame-<span style="color: #000000;">3.97</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><b>Compile libOGG</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>libogg-1.1.3
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><b>Compile libVorbis</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>libvorbis-1.1.2
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><b>Compile flvtool2</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>flvtool2_1.0.5_rc6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><b>Compile MPlayer</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">mplayer</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><b>Compile FFMPEG</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-libmp3lame</span> <span style="color: #660033;">--enable-libogg</span> <span style="color: #660033;">--enable-libvorbis</span> <span style="color: #660033;">--disable-mmx</span> <span style="color: #660033;">--enable-shared</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'#define HAVE_LRINTF 1'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config.h
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><b>Finalize the codec setups</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libavformat.so.50 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libavformat.so.50
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libavcodec.so.51 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libavcodec.so.51
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libavutil.so.49 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libavutil.so.49
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libmp3lame.so.0 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libmp3lame.so.0
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libavformat.so.51 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libavformat.so.51</pre></div></div>

<p><b>Few tasks before compiling FFMPEG-PHP</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">automake</span>
yum <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">autoconf</span>
yum <span style="color: #c20cb9; font-weight: bold;">install</span> libtool</pre></div></div>

<p><b>Compile FFMPEG-PHP</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>ffmpeg-php-0.5.0
phpize
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><b>Add FFMPEG-PHP as an extension of PHP</b><br />
<br />Add this line to your php.ini file (Check the correct path of php.ini)<br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">extension</span>=ffmpeg.so</pre></div></div>

<p><b>Restart Apache to load FFMPEG-PHP</b><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">service httpd restart</pre></div></div>

<p><b>Check if FFMPEG-PHP is loaded correctly</b><br />
<br />Create a file called phpinfo.php in your webroot and add the following code<br />
</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">phpinfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Run this page using your browser and if you see a section on ffmpeg then everything is installed and working.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nazly.net/installing-ffmpeg-and-ffmpeg-php-on-centos/feed/</wfw:commentRss>
		<slash:comments>54</slash:comments>
		</item>
		<item>
		<title>babytux digest</title>
		<link>http://www.nazly.net/babytux-digest/</link>
		<comments>http://www.nazly.net/babytux-digest/#comments</comments>
		<pubDate>Thu, 06 Jul 2006 11:16:36 +0000</pubDate>
		<dc:creator>Nazly</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[babytux]]></category>
		<category><![CDATA[bud]]></category>
		<category><![CDATA[digest]]></category>
		<category><![CDATA[geekaholic]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.nazly.net/babytux-digest/</guid>
		<description><![CDATA[The pilot issue of the babytux digest was launched yesterday. It features some great articles by local and international FOSS community. Hats off to the team. Expecting more in the future.. 
]]></description>
			<content:encoded><![CDATA[<p>The pilot issue of the <a href="http://digest.babytux.org/" target="_blank">babytux digest</a> was launched yesterday. It features some great articles by local and international FOSS community. Hats off to the team. Expecting more in the future.. <img src="http://www.nazly.net//smiles/icon_wink.gif" alt="[Wink]" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nazly.net/babytux-digest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
