<?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>noCreativity.com &#187; Linux</title>
	<atom:link href="http://nocreativity.com/blog/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://nocreativity.com</link>
	<description>The life and discoveries of a new media artist</description>
	<lastBuildDate>Sat, 07 Jan 2012 17:03:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to install RED5 on CentOS 5 &#8211; The complete guide</title>
		<link>http://nocreativity.com/blog/how-to-install-red5-on-centos-5-the-complete-guide</link>
		<comments>http://nocreativity.com/blog/how-to-install-red5-on-centos-5-the-complete-guide#comments</comments>
		<pubDate>Mon, 25 Jul 2011 09:41:09 +0000</pubDate>
		<dc:creator>Ronny</dc:creator>
				<category><![CDATA[Red5]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://nocreativity.com/blog/?p=1319</guid>
		<description><![CDATA[About 18 months ago I got my first VPS and figured out how to install RED5, the free open-source alternative to Adobe&#8217;s Flash Media Server. It&#8217;s a great alternative and the price (0.00 $) is just right. A few weeks ago I decided to upgrade my VPS plan at Vexxhost to a cloud server which meant [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-1325 aligncenter" title="020209-1820-red5theinst1" src="http://nocreativity.com/blog-engine/wp-content/uploads/2011/07/020209-1820-red5theinst1.png" alt="" width="429" height="173" /></p>
<p>About 18 months ago I got my first VPS and figured out how to install <a href="http://www.red5.org/" target="_blank" target="_blank">RED5</a>, the free open-source alternative to <a href="http://www.adobe.com/products/flashmediaserver/" target="_blank" target="_blank">Adobe&#8217;s Flash Media Server</a>. It&#8217;s a great alternative and the price (0.00 $) is just right. A few weeks ago I decided to upgrade my VPS plan at <a href="http://vexxhost.com/" target="_blank" target="_blank">Vexxhost</a> to a <a href="http://vexxhost.com/cloud_hosting" target="_blank" target="_blank">cloud server</a> which meant I had to install everything all over again. Including RED5. I then decided to write a tutorial that includes all the steps needed to get RED5 up and running on your CentOS server.</p>
<p>It takes about 20-40 minutes depending on how much of a brainless copy-paster you are. And on that last note I&#8217;d like to add that I take no responsibility if anything goes wrong. These steps are the ones I followed and worked great for me. If for some obscure reason you do something that might mess up your server, I&#8217;m not going to take the heat for that. <img src='http://nocreativity.com/blog-engine/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
So, how about it? Let&#8217;s get started, shall we?</p>
<h2>Requirements</h2>
<ol>
<li>SSH access to your VPS</li>
<li>The root login to your server</li>
<li>Basic knowledge of Java servers, SVN, etc</li>
<li>A clue: If you don&#8217;t have a clue what you&#8217;re about to do here, it means you don&#8217;t need to do this and thus don&#8217;t need this tutorial.</li>
</ol>
<h2>Let&#8217;s go</h2>
<div>Connect to your server over SSH. Make sure you are logged in as root. Everything from here on is assumed to be done over SSH with root privileges.<span id="more-1319"></span></div>
<h2>Prepare your server</h2>
<h3>JAVA</h3>
<p>Red5 is a JAVA server. So you&#8217;ll need to have JAVA installed and running on your server. Check if you have JAVA installed by just using the following command:</p>
<p><code>java</code></p>
<p>If your server responds with information about the java command, you have java installed. Check to see if you have a valid version of JAVA running by using the following command:</p>
<p><code>java -version</code></p>
<p>The first line of the response should be something like &#8220;<em>java version &#8220;1.6.0_20</em>&#8220;. The really important bit here is 1.6.  If that is the case, you can skip this step. If it&#8217;s not, you&#8217;ll need to update Java. I can&#8217;t tell you how to do that. You&#8217;ll have to Google that. If you got a response similar to &#8216;<em>command not found</em>&#8216;, you&#8217;ll need to install JAVA.<br />
Installing JAVA on CentOS can be done using Yum. Like this:</p>
<p><code>yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel</code></p>
<p>Just sit back and watch the lines of text scroll by. This could take a while.<br />
When the scrolling ends: tap yourself on the back. You just installed JAVA on your server. One step closer to success.</p>
<p>RED5 will run on JAVA. We will download the sources later on and then build the RED5 application ourselves. We will build the source using ANT.</p>
<h3>ANT</h3>
<p>First we need to check if  you have ANT installed. You can check this out by typing:</p>
<p><code>ant --help</code></p>
<p>If you get a manual page, you&#8217;re in the green. You can skip this step. If you don&#8217;t, you&#8217;ll have to install ANT. First off let&#8217;s change to another directory.</p>
<p><code>cd /usr/src</code></p>
<p>We need to download the latest ANT version. You can find the most recent versions <a href="http://opensource.become.com/apache/ant/binaries/" target="_blank" target="_blank">here</a>. The one provided in the following step is the most current one at the time of writing. Copy the url and enter it in the following command. This will download the file to your server in the directory /usr/src/.</p>
<p><code>wget http://opensource.become.com/apache/ant/binaries/apache-ant-1.8.2-bin.tar.gz</code></p>
<p>This is some kind of strange zip format. We need to uncompress this. (Remember to update the filename in the next step to the one you just downloaded in the previous step)</p>
<p><code>tar zxvf apache-ant-1.8.2-bin.tar.gz</code></p>
<p>So now we have all these files in the uncompressed folder, we need to move it to a save place&#8230; (Again keep in mind to change the foldername to your version of ANT you just downloaded, 2 steps ago)</p>
<p><code>mv apache-ant-1.8.2/ /usr/local/ant</code></p>
<p>So now we have JAVA installed, and ANT is in place. We need to make sure there are some environment variables set. These are global variables with paths to different binaries or applications. ANT and JAVA will need those. Copy and paste the following commands, one by one, BUT MAKE SURE the quotes are valid charachters. I noticed that copy/pasting from websites might mess this up. I suggest you take the time and replace them by hand before actually executing these commands.<br />
<code>export ANT_HOME=/usr/local/ant<br />
export JAVA_HOME=/usr/lib/jvm/java<br />
export PATH=$PATH:/usr/local/ant/bin<br />
export CLASSPATH=.:$JAVA_HOME/lib/classes.zip<br />
echo 'export ANT_HOME=/usr/local/ant' &gt;&gt; /etc/bashrc<br />
echo 'export JAVA_HOME=/usr/lib/jvm/java' &gt;&gt; /etc/bashrc<br />
echo 'export PATH=$PATH:/usr/local/ant/bin' &gt;&gt; /etc/bashrc<br />
echo 'export CLASSPATH=.:$JAVA_HOME/lib/classes.zip' &gt;&gt; /etc/bashrc</code></p>
<p>All set? Good!<br />
Okay, now ANT and JAVA should know enough about each other to get started. So now we essentially have everything to build the actual RED5 server except for the RED5 source. We will fetch the latest release from the SVN repository at Google Code. For that we will need SVN.</p>
<h3>SVN</h3>
<p>Let&#8217;s see if we have SVN installed:</p>
<p><code>svn --help</code></p>
<p>If you get the man pages, you&#8217;re free to skip this step. If you don&#8217;t: Let&#8217;s make it happen!</p>
<p><code>yum install subversion</code></p>
<p>If the SVN installation works right away: You&#8217;re done here. Skip to the next part. You might get an error like &#8220;<em>Error: Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion</em>&#8220;. That means you&#8217;re missing an RPM. Sucks, right? Let&#8217;s take care of this&#8230;</p>
<p>If your server is a 32bit machine, do the following:</p>
<p><code>wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/7/Everything/i386/os/Fedora/perl-URI-1.35-3.noarch.rpm</code></p>
<p>If you&#8217;re on a 64bit machine:</p>
<p><code>wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/7/Everything/x86_64/os/Fedora/perl-URI-1.35-3.noarch.rpm</code></p>
<p>Okay, so now you got that new RPM file. You&#8217;ll need to add this to the internal list of RPMs (I don&#8217;t even know what it&#8217;s called). That&#8217;ll take care of the error message mentioned above.</p>
<p><code>rpm -i perl-URI-1.35-3.noarch.rpm</code></p>
<p>You might get a warning after inserting this command. Don&#8217;t worry, I&#8217;ve seen it too and yet the world didn&#8217;t implode. So ignore that <img src='http://nocreativity.com/blog-engine/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Try installing subversion again using the following command:</p>
<p><code>yum install subversion</code></p>
<p>It will ask you if it&#8217;s okay to download all this stuff. Of course it is. Type &#8216;y&#8217; and hit enter to watch the server work away. You should end up with a &#8216;<em>Complete!</em>&#8216; message in the end. If you see the &#8216;<em>Complete!</em>&#8216; message: It&#8217;s okay to feel happy about yourself. You have now subversion running on your server. Or at least a client (from what I got). Getting closer!</p>
<h2>Actually installing the RED5 server</h2>
<h3>Source</h3>
<p>It&#8217;s finally time to get down to business: RED5. This is why we&#8217;re here!<br />
Let&#8217;s make sure we&#8217;re in the right folder:</p>
<p><code>cd /usr/src</code></p>
<p>Let&#8217;s get the RED5 source:</p>
<p><code>svn checkout http://red5.googlecode.com/svn/java/server/trunk/ red5</code></p>
<p>This will fetch the complete Red5 source and save it in a new folder called, red5 (so in <code>/usr/src/red5</code>)<br />
Now that we have the source, let&#8217;s move it to /usr/local/ using</p>
<p><code>mv red5 /usr/local/</code></p>
<p>Now let&#8217;s dive into the red5 source folder</p>
<p><code>cd /usr/local/red5</code></p>
<p>This is the folder where all the source files reside. From here on, we prepare and build the red5 source&#8230; This should be interesting. Run these commands one at a time:</p>
<p><code>ant prepare<br />
ant dist</code></p>
<p>There&#8217;s a (I think the scientific term is) <em>crapload</em> of text going to scroll across the terminal window. Don&#8217;t freak out&#8230; Just enjoy the show. This is where you call your friends and make them watch the screen as the mass of text freakishly scrolls over your screen. This makes you look very smart. It also makes you look nerdy, but that&#8217;s okay. You kind of are&#8230; You _ARE_ in fact building a RED5 server&#8230; Ohwell&#8230; Being a nerd is cool. We can do mighty cool stuff. Let&#8217;s wait for the build to complete. After a few minutes you should end up with the last line in your terminal window looking like this:</p>
<p><code>BUILD SUCCESSFUL</code></p>
<p>That&#8217;s good news! This means that you now have a working RED5 build!<br />
Let&#8217;s copy the conf directory from the dist folder to the current directory. (Don&#8217;t ask me why&#8230; Turns out this is important)</p>
<p><code>cp -r dist/conf .</code></p>
<p>Okay, so right now we have a build of the RED5 server. As far as servers go: This one should be ready to rock. Let&#8217;s check this out!</p>
<p><code> ./red5.sh</code></p>
<p>You should get lots of more text scrolling across the screen (again, looks so harcore!). What this does is, it runs the RED5 server. If you wanna make sure your server is actually running, you should be able to see the webroot of Red5 when hitting your server at port 5080 (yourserver.com:5080)(watch the firewall <img src='http://nocreativity.com/blog-engine/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Add ports 5080 and 1935 to the whitelist)<br />
Note that the server is currently only running as long as you keep that terminal window open. Once you close it RED5 stops running. Let&#8217;s make sure RED5 can run on its own from now on. Hit <em>CTRL+C</em> to stop the process. (if you visit yourserver.com:5080 again, it should tell you the browser can&#8217;t open the page at that address)</p>
<h3>Service</h3>
<p>We will create a little service script for RED5. Let&#8217;s start here:</p>
<p><code>vi /etc/init.d/red5</code></p>
<p>You&#8217;ll be dropped into vi, a basic UNIX text editor.<br />
Here we will write down the init script that will give us a simple API to start, stop, restart the server and get the status of the server.</p>
<p>Enter the following script into vi. Note: Copy pasting might be buggy, so first copy/paste this script into a local texteditor and make sure all quotes are normal quotes. I ran into this problem. For easy measure: You can download the script <a href="http://nocreativity.com/blog-engine/wp-content/uploads/2011/07/red5.txt" target="_blank">here</a>. This version is copy/past-safe <img src='http://nocreativity.com/blog-engine/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><code>#!/bin/bash<br />
# For RedHat and cousins:<br />
# chkconfig: 2345 85 85<br />
# description: Red5 flash streaming server<br />
# processname: red5<br />
# Created By: Sohail Riaz (sohaileo@gmail.com)</code></p>
<p>PROG=red5<br />
RED5_HOME=/usr/local/red5<br />
DAEMON=$RED5_HOME/$PROG.sh<br />
PIDFILE=/var/run/$PROG.pid</p>
<p># Source function library<br />
. /etc/rc.d/init.d/functions</p>
<p>[ -r /etc/sysconfig/red5 ] &amp;&amp; . /etc/sysconfig/red5</p>
<p>RETVAL=0</p>
<p>case &#8220;$1&#8243; in<br />
start)<br />
echo -n $&#8221;Starting $PROG: &#8221;<br />
cd $RED5_HOME<br />
$DAEMON &gt;/dev/null 2&gt;/dev/null &amp;<br />
RETVAL=$?<br />
if [ $RETVAL -eq 0 ]; then<br />
echo $! &gt; $PIDFILE<br />
touch /var/lock/subsys/$PROG<br />
fi<br />
[ $RETVAL -eq 0 ] &amp;&amp; success $&#8221;$PROG startup&#8221; || failure $&#8221;$PROG startup&#8221;<br />
echo<br />
;;<br />
stop)<br />
echo -n $&#8221;Shutting down $PROG: &#8221;<br />
killproc -p $PIDFILE<br />
RETVAL=$?<br />
echo<br />
[ $RETVAL -eq 0 ] &amp;&amp; rm -f /var/lock/subsys/$PROG<br />
;;<br />
restart)<br />
$0 stop<br />
$0 start<br />
;;<br />
status)<br />
status $PROG -p $PIDFILE<br />
RETVAL=$?<br />
;;<br />
*)<br />
echo $&#8221;Usage: $0 {start|stop|restart|status}&#8221;<br />
RETVAL=1<br />
esac</p>
<p>exit $RETVAL</p>
<p>Once you&#8217;ve pasted the text, hit ESC. Then type the following to save and quit vi:</p>
<p><code>:wq</code></p>
<p>On the bottom of the screen the &#8216;<em>:wq</em>&#8216; should appear (in a status bar style fashion)<br />
Hit enter. Vi should close and the terminal window should look like before. To make sure you saved the init script correctly, just do this once again:</p>
<p><code>vi /etc/init.d/red5</code></p>
<p>You should now see the script you pasted earlier. If you don&#8217;t, you haven&#8217;t saved the script before properly. Go back a few steps and try again. If the script got saved, just enter the following to close vi again:</p>
<p><code>:q</code></p>
<p>Since this is unix land, we need to make sure this init script has permissions to actually be executed. Let&#8217;s do this! Do it using chmod, like this:</p>
<p><code>chmod +x /etc/init.d/red5</code></p>
<p>Now we should be able to start red5 by using this script. Give this a shot</p>
<p><code>/etc/init.d/red5 start</code></p>
<p>If your server responds by writing <code>starting Red5: [ OK ]</code>, you&#8217;re golden. Let&#8217;s check the status!</p>
<p><code>/etc/init.d/red5 status</code></p>
<p>You should see something like</p>
<p><code>red5 (pid 11232) is running...</code></p>
<p>This means that the RED5 server is running on its own. We could close this terminal window and the RED5 server would stay up and running. That&#8217;s looking mighty good, right!?<br />
However, whenever we reboot the VPS, the RED5 server won&#8217;t start by itself&#8230;yet. You know where I&#8217;m going with this, right?<br />
In order for RED5 to start when the server boots, we need to do some chkconfig magic. First we need to add the RED5 service to chkconfig:</p>
<p><code>chkconfig --add red5</code></p>
<p>Now we need to tell chkconfig that red5 should start asap when booting:</p>
<p><code>chkconfig red5 on</code></p>
<p>That should do it&#8230; Red5 is installed, you have a simple way of restarting the RED5 service and it starts as soon as possible whenever the server starts. I&#8217;d say that&#8217;s all we need. Let&#8217;s have a little applause for yourself. You did it! You have RED5 running on your server! Now go and have fun with it <img src='http://nocreativity.com/blog-engine/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h2>Thank you</h2>
<p>I think I (= we) should thank a lot of people and communities for what has just been done. All of these apps, binaries, sources and files have been shared for your freedom of using, experimenting and building apps with it. You didn&#8217;t have to pay anything for it. You just had to figure out how to use it. A little bit of gratitude is well in order.</p>
<p>At the same time I want to give credit to all of the people who published tutorials and manuals on their own site about how to install RED5 and other apps needed for this to work. Listed below are all the sources I referenced in order to compile this complete guide to RED5-awesomeness.</p>
<ul>
<li><a href="http://blog.umbralechoes.com/2010/09/13/how-to-install-red5-0-9-1-on-centos-5/" target="_blank" target="_blank">http://blog.umbralechoes.com/2010/09/13/how-to-install-red5-0-9-1-on-centos-5/</a></li>
<li><a href="http://opensource.become.com/apache/ant/binaries/ " target="_blank" target="_blank">http://opensource.become.com/apache/ant/binaries/ </a></li>
<li><a href="http://linuxwindowsmaster.com/how-to-install-subversion-client-on-linux-server/ " target="_blank" target="_blank">http://linuxwindowsmaster.com/how-to-install-subversion-client-on-linux-server/ </a></li>
<li><a href="http://code.google.com/p/red5/source/checkout " target="_blank" target="_blank">http://code.google.com/p/red5/source/checkout </a></li>
<li><a href="http://www.sohailriaz.com/how-to-install-red5-server-on-centos-53/ " target="_blank" target="_blank">http://www.sohailriaz.com/how-to-install-red5-server-on-centos-53/ </a></li>
<li><a href="http://www.cs.colostate.edu/helpdocs/vi.html " target="_blank" target="_blank">http://www.cs.colostate.edu/helpdocs/vi.html </a></li>
<li><a href="http://linuxcommand.org/man_pages/chkconfig8.html" target="_blank" target="_blank">http://linuxcommand.org/man_pages/chkconfig8.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://nocreativity.com/blog/how-to-install-red5-on-centos-5-the-complete-guide/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Adobe AIR voor Linux</title>
		<link>http://nocreativity.com/blog/adobe-air-voor-linux</link>
		<comments>http://nocreativity.com/blog/adobe-air-voor-linux#comments</comments>
		<pubDate>Mon, 31 Mar 2008 13:38:42 +0000</pubDate>
		<dc:creator>Ronny</dc:creator>
				<category><![CDATA[Open-source]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://nocreativity.com/blog/adobe-air-voor-linux</guid>
		<description><![CDATA[Een paar weken geleden heb ik gepost over de officiële release van Adobe AIR, de cross-platform runtime van Adobe die het mogelijk maakt voor developers om met hun bestaande kennis en kunnen programma&#8217;s voor de desktop te maken, zonder zich daarbij tot een platform te moeten beperken.  Toen ik dat artikel schreef was Adobe AIR [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://nocreativity.com/blog-engine/wp-content/uploads/2008/02/air_icon_special.jpg" align="left" height="106" width="106" /> Een paar weken geleden heb ik gepost over de officiële release van Adobe AIR, de cross-platform runtime van Adobe die het mogelijk maakt voor developers om met hun bestaande kennis en kunnen programma&#8217;s voor de desktop te maken, zonder zich daarbij tot een platform te moeten beperken.  Toen ik dat artikel schreef was Adobe AIR nog niet inzetbaar op het Linux platform. Sinds vandaag is dat anders!</p>
<p><a href="http://www.webkitchen.be" target="_blank" target="_blank">Serge Jespers</a> <a href="http://www.webkitchen.be/2008/03/31/air-alpha-version-now-available-for-linux/" target="_blank" target="_blank">berichtte</a> vandaag dat de eerste <a href="http://www.adobe.com/go/airlinux" target="_blank" target="_blank">alpha versie van de runtime voor Linux </a>beschikbaar is. Op deze manier wordt het bekende open-source platform weer toegankelijker! Verder is er vandaag ook een update beschikbaar geworden voor de <a href="http://www.adobe.com/go/flexbuilder_linux" target="_blank" target="_blank">Flex Builder voor Linux</a>. Deze zou AIR support moeten geven zodat developers ook op Linux aan de slag kunnen gaan!</p>
<p>En om het plaatje af te maken, <a href="http://linux-foundation.org/weblogs/press/2008/03/30/adobe-joins-linux-foundation-with-focus-on-linux-for-web-20-applications/" target="_blank" target="_blank">maakt Adobe bekend dat ze zich bij de Linux Foundation aansluiten</a>.</p>
<p>Dit lijkt mij heel goed en fijn nieuws!</p>
]]></content:encoded>
			<wfw:commentRss>http://nocreativity.com/blog/adobe-air-voor-linux/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

