<?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>Ersin Acar &#187; Linux</title>
	<atom:link href="http://ersinacar.com/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://ersinacar.com</link>
	<description>PHP and Web Technologies Freak</description>
	<lastBuildDate>Fri, 06 Jan 2012 14:19:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to change SSH welcome message on linux</title>
		<link>http://ersinacar.com/how-to-change-ssh-welcome-message-on-linux_164.html</link>
		<comments>http://ersinacar.com/how-to-change-ssh-welcome-message-on-linux_164.html#comments</comments>
		<pubDate>Wed, 08 Jul 2009 17:00:57 +0000</pubDate>
		<dc:creator>Ersin Acar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[kenny]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=164</guid>
		<description><![CDATA[Every time I connect to my home server through my ssh client, I receive the same message and I’m getting bored of seeing it, so I decided to change the message to something else. Here’s the message that I get every time: Last login: Wed Jul 8 16:35:28 2009 from 192.168.2.3 Linux localhost 2.6.20-15-server #2 [...]]]></description>
			<content:encoded><![CDATA[<p>Every time I connect to my home server through my ssh client, I receive the same message and I’m getting bored of seeing it, so I decided to change the message to something else.</p>
<p>Here’s the message that I get every time:<br />
<span id="more-164"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Last <span style="color: #c20cb9; font-weight: bold;">login</span>: Wed Jul  <span style="color: #000000;">8</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">35</span>:<span style="color: #000000;">28</span> <span style="color: #000000;">2009</span> from 192.168.2.3
Linux localhost 2.6.20-<span style="color: #000000;">15</span>-server <span style="color: #666666; font-style: italic;">#2 SMP Sun Apr 15 07:41:34 UTC 2007 i686</span>
&nbsp;
The programs included with the Ubuntu system are <span style="color: #c20cb9; font-weight: bold;">free</span> software;
the exact distribution terms <span style="color: #000000; font-weight: bold;">for</span> each program are described <span style="color: #000000; font-weight: bold;">in</span> the
individual files <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/*/</span>copyright.
&nbsp;
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
root<span style="color: #000000; font-weight: bold;">@</span>localhost:~<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>Changing this message requires editing two different files. The first three sections can be modified by editing the following file:</p>

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

<p>This file contains the linux build number as well as the Ubuntu warranty message. I don’t find this particularly useful, so I removed all of it and replaced it with my own message.</p>
<p>To disable the last login message (which I don’t recommend doing), you will need to edit the following file in sudo mode:</p>

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

<p>Find this line in the file and change the yes to no as shown:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">    PrintLastLog no</pre></div></div>

<p>Now when you login, you’ll get a blank prompt, although I wouldn’t necessarily recommend it because it’s useful to see the last login to the system for security reasons. This is my prompt now:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Last <span style="color: #c20cb9; font-weight: bold;">login</span>: Wed Jul  <span style="color: #000000;">8</span> <span style="color: #000000;">17</span>:05:<span style="color: #000000;">12</span> <span style="color: #000000;">2009</span> from 192.168.2.3
OMG<span style="color: #000000; font-weight: bold;">!!</span> You killed kenny<span style="color: #000000; font-weight: bold;">!</span> You BASTARD<span style="color: #000000; font-weight: bold;">!</span>
&nbsp;
             _..-<span style="color: #ff0000;">&quot;&quot;</span><span style="color: #ff0000;">&quot;&quot;</span>-.._
           .<span style="color: #ff0000;">'            '</span>.
          <span style="color: #000000; font-weight: bold;">/</span>     _...._     \
         <span style="color: #000000; font-weight: bold;">/</span>  ,=<span style="color: #ff0000;">&quot;;_.''._;&quot;</span>=,  \
        ;  <span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #000000; font-weight: bold;">`</span>\<span style="color: #000000; font-weight: bold;">/`</span>  \  \  ;
        <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #ff0000;">'/\'</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>
        <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  \..<span style="color: #ff0000;">'  '</span>..<span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>
         ;  \  \      <span style="color: #000000; font-weight: bold;">/</span> .<span style="color: #ff0000;">'  ;
          \  '</span>._-.__.-_.<span style="color: #ff0000;">'  /
          /'</span>.   <span style="color: #000000; font-weight: bold;">``|</span>\<span style="color: #000000; font-weight: bold;">``</span>   .<span style="color: #ff0000;">'\
         /   `'</span>-..<span style="color: #000000; font-weight: bold;">/</span>.<span style="color: #7a0874; font-weight: bold;">&#41;</span>.-<span style="color: #ff0000;">'`   \
        |_                  _|
       (  \                /  )
        '</span>-<span style="color: #000000; font-weight: bold;">/</span>                \-<span style="color: #ff0000;">'
          |________________|
          (________.________)
&nbsp;
root@localhost:~#</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/how-to-change-ssh-welcome-message-on-linux_164.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Compaq ML and DL series CompaqSmartArray driver problem</title>
		<link>http://ersinacar.com/compaq-ml-and-dl-series-compaqsmartarray-driver-problem_157.html</link>
		<comments>http://ersinacar.com/compaq-ml-and-dl-series-compaqsmartarray-driver-problem_157.html#comments</comments>
		<pubDate>Fri, 03 Jul 2009 15:50:23 +0000</pubDate>
		<dc:creator>Ersin Acar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[compaq]]></category>
		<category><![CDATA[dl]]></category>
		<category><![CDATA[ml]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[smartarray]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=157</guid>
		<description><![CDATA[If you have problem with installation on compaq DL or ML servers (i have a ML370) with CompaqSmartArray Raid card, You can&#8217;t install ubuntu with normal way; you must use highway Ok here we go; 1st of all you need to make a custom CD ( You can use this one too http://skydisc.de/downloads/ubuntufeistysmartarray.iso) To create [...]]]></description>
			<content:encoded><![CDATA[<p>If you have problem with installation on compaq DL or ML servers (i have a ML370) with CompaqSmartArray Raid card, You can&#8217;t install ubuntu with normal way; you must use highway <img src='http://ersinacar.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Ok here we go;<br />
<span id="more-157"></span><br />
1st of all you need to make a custom CD ( You can use this one too <a href="http://skydisc.de/downloads/ubuntufeistysmartarray.iso">http://skydisc.de/downloads/ubuntufeistysmartarray.iso</a>)</p>
<p>To create the custom CD…..</p>
<p>Mount the install…</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>scd0 <span style="color: #000000; font-weight: bold;">/</span>cdrom</pre></div></div>

<p>Copy the CD.</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: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image
<span style="color: #c20cb9; font-weight: bold;">cp</span> –r <span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/</span>.disk <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image</pre></div></div>

<p>Extract the initrd.gz from the cd image</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> extract
<span style="color: #7a0874; font-weight: bold;">cd</span> extract
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">zcat</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image<span style="color: #000000; font-weight: bold;">/</span>install<span style="color: #000000; font-weight: bold;">/</span>initrd.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cpio</span> <span style="color: #660033;">-i</span></pre></div></div>

<p>Delete the modules in sym53c8xx_2 directory</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> –rf .<span style="color: #000000; font-weight: bold;">/</span>extract<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/</span>2.6.20-<span style="color: #000000;">15</span>-generic<span style="color: #000000; font-weight: bold;">/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>drivers<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>sym53c8xx_2</pre></div></div>

<p>Repack the modified files.</p>
<p>Cd back to to your extract directory</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: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cpio</span> <span style="color: #660033;">-o</span> <span style="color: #660033;">--format</span>=<span style="color: #ff0000;">'newc'</span> <span style="color: #000000; font-weight: bold;">|</span>   <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-9</span> <span style="color: #000000; font-weight: bold;">&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>initrd.gz.new</pre></div></div>

<p>Put the new file into our CD replacing the old one.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> ~<span style="color: #000000; font-weight: bold;">/</span>initrd.gz.new <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image<span style="color: #000000; font-weight: bold;">/</span>install<span style="color: #000000; font-weight: bold;">/</span>initrd.gz</pre></div></div>

<p>Now create the iso image.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #007800;">IMAGE</span>=custom.iso
<span style="color: #007800;">BUILD</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
mkisofs <span style="color: #660033;">-r</span> <span style="color: #660033;">-V</span> <span style="color: #ff0000;">&quot;Custom Ubuntu Install CD&quot;</span> \
            <span style="color: #660033;">-cache-inodes</span> \
            <span style="color: #660033;">-J</span> <span style="color: #660033;">-l</span> <span style="color: #660033;">-b</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin \
            <span style="color: #660033;">-c</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat <span style="color: #660033;">-no-emul-boot</span> \
            <span style="color: #660033;">-boot-load-size</span> <span style="color: #000000;">4</span> <span style="color: #660033;">-boot-info-table</span> \
            <span style="color: #660033;">-o</span> <span style="color: #007800;">$IMAGE</span> <span style="color: #007800;">$BUILD</span></pre></div></div>

<p>Burn the image to CD and you should be able to install to your Compaq Smart Array controller.</p>
<p><strong>Installation</strong></p>
<p>1. Boot the install CD. At the splash screen hit [esc] to get the boot: prompt and enter: <strong>expert</strong> as the only option.</p>
<p>2. Do all the steps up to &#038; including &#8220;<strong>Install the Base System</strong>&#8221;</p>
<p>3. After installing the Base System, hit <strong>Alt-F2</strong> and enter the console.</p>
<p>4. type: </p>
<p>echo &#8220;cpqarray&#8221; >>/target/etc/mkinitramfs/modules<br />
*it can be<br />
echo &#8220;cpqarray&#8221; >>/target/misc/mkinitramfs/modules<br />
or<br />
echo &#8220;cpqarray&#8221; >>/target/etc/modules<br />
(You must find it out it can be diffrent by versions)<br />
- check to see which one your system is trying to use.</p>
<p>5. Exit the console. Press <strong>Alt+F1</strong> to return to the install.</p>
<p>6. Continue the installation steps as normal.</p>
<p><strong>Networking and Upgrade version after installation</strong><br />
You can check <a href="https://help.ubuntu.com/9.04/serverguide/C/network-configuration.html">this</a> page for network stuff<br />
you must check <a href="https://help.ubuntu.com/community/GutsyUpgrades">this</a> page for upgrading</p>
<p><strong>Don&#8217;t forget</strong><br />
Your old version&#8217;s /etc/apt/sources.list is wrong you must change it like this</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">deb http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty-updates main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty-security main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty-backports main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty-backports main<span style="color: #000000; font-weight: bold;">/</span>debian-installer
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty-backports main restricted universe multiverse</pre></div></div>

<p>P.S. there is a bug about update-manager if you get an error until updating version you must<br />
change this file <strong>/var/lib/update-manager/meta-release</strong></p>
<p>herefore (on Feisty), edit /var/lib/update-manager/meta-relase and just replace all occurences of:</p>
<p>http://archive.ubuntu.com/ubuntu/dists/gutsy/</p>
<p>with</p>
<p>http://old-releases.ubuntu.com/ubuntu/dists/gutsy/</p>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/compaq-ml-and-dl-series-compaqsmartarray-driver-problem_157.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to add or attach new storage device to linux</title>
		<link>http://ersinacar.com/how-to-add-or-attach-new-storage-device-to-linux_130.html</link>
		<comments>http://ersinacar.com/how-to-add-or-attach-new-storage-device-to-linux_130.html#comments</comments>
		<pubDate>Sun, 24 May 2009 07:38:15 +0000</pubDate>
		<dc:creator>Ersin Acar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[sda]]></category>
		<category><![CDATA[sdb]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=130</guid>
		<description><![CDATA[I am going to divide each part as follows 1. Plan the layout of the filesystem with the new drive 2. Partition the new hard drive 3. Format the new partitions 4. Test the new space 5. Copy data from old to new partition (optional) 6. Edit /etc/fstab 7. Reboot 8. Remove old data (optional) [...]]]></description>
			<content:encoded><![CDATA[<p> I am going to divide each part as follows</p>
<p>1. Plan the layout of the filesystem with the new drive<br />
2. Partition the new hard drive<br />
3. Format the new partitions<br />
4. Test the new space<br />
5. Copy data from old to new partition (optional)<br />
6. Edit /etc/fstab<br />
7. Reboot<br />
8. Remove old data (optional)</p>
<p>Here is the details about each one.<br />
<span id="more-130"></span><br />
1. Plan the new filesystem. Where would you like to use the new space? Do</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #000000; font-weight: bold;">&lt;/</span>pre
&nbsp;
to print a summary of free<span style="color: #000000; font-weight: bold;">/</span>used space on each of the existing mounted partitions. Do
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>pre <span style="color: #007800;">lang</span>=<span style="color: #ff0000;">&quot;bash&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">du</span></pre></div></div>

<p>on selected directories to find their size.</p>
<p>For example, I would consider using new hard drive space in one of the following mount points:</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><span style="color: #7a0874; font-weight: bold;">local</span>
<span style="color: #000000; font-weight: bold;">/</span>home
<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>downloads
<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>mp3s
<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>dos_data</pre></div></div>

<p>Here is Details.</p>
<p>/usr/local is suposed to survive any upgrade of Linux. It is nice to have it on a separate partition because I can even reformat other partitions without affecting my local contents stored in /usr/local. I surely want it of the type &#8220;ext2&#8243; or perhaps &#8220;reiserfs&#8221;.</p>
<p>/home contains user data. Surely, it is the data that deserves the most care. It is obviously supposed to survive any upgrade of Linux. Wow, obviously I want it on a separate partition. The type is normally &#8220;ext2&#8243; or &#8220;raiserfs&#8221;.</p>
<p>/usr/local/mp3s is a non-standard Linux directory. I may keep my MP3 (music) files there. Those tend to be large.</p>
<p>/usr/local/dos_data. Another non-standard directory. If I dual boot, I would consider making an extra partion of the type &#8220;DOS FAT32&#8243; or similar so as to share files between MS Windows and Linux transparently (both ways). I would configure all the Windows-based programs to use this &#8220;drive&#8221; as the default location for all user-generated files. I could even have &#8220;mp3s&#8221;, &#8220;cds&#8221; and other such directories in this location. The serious drawback of this approach&#8211;MS Windows may insist on messing up with this partion on re-install.</p>
<p>2. Partition the new hard drive. For example, if my new harddrive is the slave on the second IDE interface (perhaps the &#8220;fourth&#8221; IDE drive), I could use:</p>

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

<p>or the more old-fashioned (and standard) tool:</p>

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

<p>If your drive is not &#8220;hdd&#8221; adjust the above command as needed.</p>
<p>hda &#8212; first ide master (whole disk)<br />
hdb &#8212; first ide slave<br />
hdc &#8212; second ide master<br />
hdd &#8212; second ide slave<br />
sda &#8212; first scsi (whole disk)<br />
sdb &#8212; second scsi (whole disk)<br />
&#8230;<br />
sdp &#8212; sixteenth scsi (whole disk)</p>
<p>For other disks, consult /usr/src/Linux/Documentation/devices.txt.</p>
<p>Most of the time,  Linux partitions to be of the type ext2 (&#8220;Linux&#8221;).</p>
<p>Partitioning can be tricky&#8211;if you never have done it, read man fdisk and man cfdisk. It is very easy to delete a partition with all your data. Make sure you know which disk you are working with!</p>
<p>fdisk or cfdisk does not make any changes to the hard drive until I write the new partition layout. So if I make a bad mistake, I can always quit without writing. I write the layout to the drive only when I am completely done.</p>
<p>3. Format each partition. For example, to format the first partition, while checking for bad blocks (-c), I would do:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mkfs <span style="color: #660033;">-c</span> <span style="color: #660033;">-t</span> ext2 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hdd1</pre></div></div>

<p>4. Test the new partitions around. Mount the new partitions manually (the mount directory must exist and be empty). Copy a bunch of files to each partition. View/edit a couple of random files. Delete them all.</p>
<p>5. Copy data. Optional&#8211;only if you would like to move data from an old partition to a new partition. Go to the single-user mode (init 1). Mount the new partition manually. Copy the data from the old partition to the new partition. Careful with the old data, you probably don&#8217;t want to lose it if you made a mistake, so I wouldn&#8217;t delete it yet&#8211;I rename the top level directory appropriately. E.g.,</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-R</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> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>hdd1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">mv</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> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local.old.backup_of_2005-04-<span style="color: #000000;">21</span></pre></div></div>

<p>6. Edit the file /etc/fstab. Modify it to reflect your new filesystem layout. Perhaps, insert the mountpoint for the new partition(s) or modify any old mountpoints as needed. For example, if moving /usr/local to its own partition, I would need to add to add a line like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hdd1 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span> ext2 defaults <span style="color: #000000;">1</span> <span style="color: #000000;">2</span></pre></div></div>

<p>7. Reboot and test. The alternative to reboot is to unmount old and mount new mount points. For example:</p>

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

<p>but hard reboot may be a more rigorous test of the new layout.</p>
<p>8. Remove old data. After a few days, when I have the confidence everything is really working fine</p>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/how-to-add-or-attach-new-storage-device-to-linux_130.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVtool2, Mplayer, Mencoder, AMR Installation</title>
		<link>http://ersinacar.com/debian-ffmpeg-ffmpeg-php-lame-libogg-libvorbis-flvtool2-mplayer-mencoder-amr-installation_97.html</link>
		<comments>http://ersinacar.com/debian-ffmpeg-ffmpeg-php-lame-libogg-libvorbis-flvtool2-mplayer-mencoder-amr-installation_97.html#comments</comments>
		<pubDate>Sat, 09 May 2009 21:50:12 +0000</pubDate>
		<dc:creator>Ersin Acar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[AMR]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[FFmpeg]]></category>
		<category><![CDATA[FFmpeg-PHP]]></category>
		<category><![CDATA[FLVtool2]]></category>
		<category><![CDATA[Lame]]></category>
		<category><![CDATA[Libogg]]></category>
		<category><![CDATA[Libvorbis]]></category>
		<category><![CDATA[Mencoder]]></category>
		<category><![CDATA[Mplayer]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=97</guid>
		<description><![CDATA[Introduction The following HOWTO will show you exactly how to install the following packages on a Debian Etch or Ubuntu 7.06 system: FFmpeg FFmpeg-PHP Mplayer + Mencoder flv2tool LAME MP3 Encoder AMR (for 3gp file conversions) Libogg Libvorbis Do some prep-work apt-get update apt-get upgrade apt-get install libjpeg-progs libjpeg62 libjpeg62-dev libsdl1.2-dev php5-dev build-essential unzip Download [...]]]></description>
			<content:encoded><![CDATA[<h2><span class="mw-headline"> Introduction </span></h2>
<p>The following HOWTO will show you exactly how to install the following packages on a Debian Etch or Ubuntu 7.06 system:</p>
<ul>
<li> FFmpeg</li>
<li> FFmpeg-PHP</li>
<li> Mplayer + Mencoder</li>
<li> flv2tool</li>
<li> LAME MP3 Encoder</li>
<li> AMR (for 3gp file conversions)</li>
<li> Libogg</li>
<li> Libvorbis</li>
</ul>
<p><span id="more-97"></span> <a name="Do_some_prep-work"></a></p>
<h2><span class="mw-headline"> Do some prep-work </span></h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libjpeg-progs libjpeg62 libjpeg62-dev libsdl1.2-dev php5-dev build-essential <span style="color: #c20cb9; font-weight: bold;">unzip</span></pre></div></div>

<p><a name="Download_all_the_files_needed"></a></p>
<h2><span class="mw-headline"> Download all the files needed </span></h2>

<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: #c20cb9; font-weight: bold;">wget</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-<span style="color: #000000;">20071007</span>.tar.bz2<span style="color: #000000; font-weight: bold;">&lt;/</span>span<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">wget</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;">17497</span><span style="color: #000000; font-weight: bold;">/</span>flvtool2-1.0.6.tgz
<span style="color: #c20cb9; font-weight: bold;">wget</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-<span style="color: #000000;">3.97</span>.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</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: #c20cb9; font-weight: bold;">wget</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: #c20cb9; font-weight: bold;">wget</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.2.0.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.penguin.cz<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>users<span style="color: #000000; font-weight: bold;">/</span>utx<span style="color: #000000; font-weight: bold;">/</span>amr<span style="color: #000000; font-weight: bold;">/</span>amrnb-7.0.0.2.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.penguin.cz<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>users<span style="color: #000000; font-weight: bold;">/</span>utx<span style="color: #000000; font-weight: bold;">/</span>amr<span style="color: #000000; font-weight: bold;">/</span>amrwb-7.0.0.3.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">wget</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>theora<span style="color: #000000; font-weight: bold;">/</span>libtheora-1.0beta3.tar.gz</pre></div></div>

<p><a name="Extract_all_the_files"></a></p>
<h2><span class="mw-headline"> Extract all the files </span></h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf lame-<span style="color: #000000;">3.97</span>.tar.gz
<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.2.0.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf flvtool2-1.0.6.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> jxvf essential-<span style="color: #000000;">20071007</span>.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> jxvf ffmpeg-php-0.5.0.tbz2
<span style="color: #c20cb9; font-weight: bold;">bzip2</span> <span style="color: #660033;">-cd</span> amrnb-7.0.0.2.tar.bz2 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvf -
<span style="color: #c20cb9; font-weight: bold;">bzip2</span> <span style="color: #660033;">-cd</span> amrwb-7.0.0.3.tar.bz2 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvf -
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf libtheora-1.0beta3.tar.gz</pre></div></div>

<p>We need a codec directory</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></pre></div></div>

<p><a name="Install_Ruby_on_Rails.2C_subversion_.26_ncurses"></a></p>
<h2><span class="mw-headline"> Install Ruby on Rails, subversion &#038; ncurses </span></h2>
<pre>apt-get install subversion ruby libcurses-ruby</pre>
<p><a name="Run_some_SVN_queries"></a></p>
<h2><span class="mw-headline"> Run some SVN queries </span></h2>

<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>
<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: #c20cb9; font-weight: bold;">svn</span> update</pre></div></div>

<p><a name="Copy_Codecs_for_mplayer"></a></p>
<h2><span class="mw-headline"> Copy Codecs for mplayer </span></h2>

<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: #c20cb9; font-weight: bold;">mv</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>essential-<span style="color: #000000;">20071007</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>We also need to secure the tmp directory</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>src<span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">777</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>tmp
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">TMPDIR</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>tmp</pre></div></div>

<p><a name="Install_lame"></a></p>
<h2><span class="mw-headline"> Install lame </span></h2>

<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: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><a name="Install_libogg"></a></p>
<h2><span class="mw-headline"> Install libogg </span></h2>

<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: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><a name="Install_libvorbis"></a></p>
<h2><span class="mw-headline"> Install libvorbis </span></h2>

<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.2.0
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><a name="Install_flvtool2"></a></p>
<h2><span class="mw-headline"> Install flvtool2 </span></h2>

<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.6<span style="color: #000000; font-weight: bold;">/</span>
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><a name="Install_mplayer_.26_mencoder"></a></p>
<h2><span class="mw-headline"> Install mplayer &#038; mencoder </span></h2>

<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: #660033;">--enable-jpeg</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><a name="Install_AMR_.28for_3gp_conversion.29"></a></p>
<h2><span class="mw-headline"> Install AMR (for 3gp conversion) </span></h2>

<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>amrnb-7.0.0.2
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>


<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>amrwb-7.0.0.3
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><a name="Install_libtheora_.28for_ogg_video_encoding.29"></a></p>
<h2><span class="mw-headline"> Install libtheora (for ogg video encoding) </span></h2>

<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>libtheora-1.0beta3
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><a name="Install_ffmpeg"></a></p>
<h2><span class="mw-headline"> Install ffmpeg </span></h2>
<p>Debian Etch and Ubuntu 8.04 users please use the following configure command:</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<span style="color: #000000; font-weight: bold;">/</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-libmp3lame</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: #660033;">--enable-libamr-nb</span> <span style="color: #660033;">--enable-libamr-wb</span> <span style="color: #660033;">--enable-nonfree</span> <span style="color: #660033;">--enable-libtheora</span></pre></div></div>

<p>Ubuntu 7.06 users please use the following configure command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<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: #660033;">--enable-libamr-nb</span> <span style="color: #660033;">--enable-libtheora</span></pre></div></div>

<p>Now run these commands:</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;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<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>libavdevice.so.52 <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>libavdevice.so.52
<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.52 <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.52
<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.52 <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.52
<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
<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>libamrnb.so.3 <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>libamrnb.so.3
<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>libamrwb.so.3 <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>libamrwb.so.3</pre></div></div>

<p><a name="Install_ffmpeg-php"></a></p>
<h2><span class="mw-headline"> Install ffmpeg-php </span></h2>

<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<span style="color: #000000; font-weight: bold;">/</span>
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>You now need to add the new ffmpeg-php module to the php.ini file</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>php.ini
<span style="color: #007800;">extension</span>=ffmpeg.so <span style="color: #7a0874; font-weight: bold;">&#40;</span>add this line to the end of the <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p><a name="Restart_.26_done"></a></p>
<h2><span class="mw-headline"> Restart &#038; done </span></h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/debian-ffmpeg-ffmpeg-php-lame-libogg-libvorbis-flvtool2-mplayer-mencoder-amr-installation_97.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to change language of Debian</title>
		<link>http://ersinacar.com/how-to-change-language-of-debian_95.html</link>
		<comments>http://ersinacar.com/how-to-change-language-of-debian_95.html#comments</comments>
		<pubDate>Thu, 07 May 2009 20:25:49 +0000</pubDate>
		<dc:creator>Ersin Acar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[language]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=95</guid>
		<description><![CDATA[Hi, İf you want to change debian&#8217;s system language you must follow these steps; sudo apt-get update sudo apt-get install debconf sudo dpkg-reconfigure locales Or you could add something like the following lines to /etc/environment LANG=&#8221;en_US.UTF-8&#8243; LANGUAGE=&#8221;en_US:en&#8221; If you want different locales for different users, you can add that to their .bashrc files Here&#8217;s some [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
İf you want to change debian&#8217;s system language you must follow these steps;</p>
<p>sudo apt-get update<br />
sudo apt-get install debconf<br />
sudo dpkg-reconfigure locales</p>
<p>Or you could add something like the following lines to /etc/environment</p>
<p>LANG=&#8221;en_US.UTF-8&#8243;<br />
LANGUAGE=&#8221;en_US:en&#8221;</p>
<p>If you want different locales for different users, you can add that to their<br />
.bashrc files</p>
<p>Here&#8217;s some links that touch on what you&#8217;re looking for:</p>
<p>http://gallery.menalto.com/wiki/Debian_locale_HowTo</p>
<p>http://melkor.dnp.fmph.uniba.sk/~garabik/debian-utf8/howto.html</p>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/how-to-change-language-of-debian_95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

