<?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>Adtools &#187; adtools</title>
	<atom:link href="http://blog.adtools.co.uk/tag/adtools/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adtools.co.uk</link>
	<description>Advertising Operations &#38; Technology</description>
	<lastBuildDate>Fri, 25 Nov 2011 13:21:30 +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>Installing SWFTools on Dreamhost accounts</title>
		<link>http://blog.adtools.co.uk/installing-swftools-on-dreamhost-accounts/12/</link>
		<comments>http://blog.adtools.co.uk/installing-swftools-on-dreamhost-accounts/12/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 15:49:54 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AdOps]]></category>
		<category><![CDATA[adtools]]></category>
		<category><![CDATA[decompilation]]></category>
		<category><![CDATA[decompiler]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[swftools]]></category>

		<guid isPermaLink="false">http://blog.adtools.co.uk/?p=12</guid>
		<description><![CDATA[I&#8217;ve been with Dreamhost for a fair few years now. They provide good value feature-rich hosting on (usually) solid servers. One of the reasons I was attracted to them was they gave you SSH access which back in 2001/2 was hard to come by. Since then I&#8217;ve built Adtools up as a solid reliable platform [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been with Dreamhost for a fair few years now. They provide good value feature-rich hosting on (usually) solid servers. One of the reasons I was attracted to them was they gave you SSH access which back in 2001/2 was hard to come by. Since then I&#8217;ve built Adtools up as a solid reliable platform for the <a href="http://www.telegraph.co.uk">Telegraph</a>&#8216;s Advertising Operations Department with lots of tools which I will be detailing and explaining through this blog over the coming months.</p>
<p>Recently I&#8217;ve been looking at ways we can programmatically analyse ad file types and then test them against agreed standards. This will be for GIFs, JPG, PNG and more importantly SWFs. However, SWF decompilation can be a tricky beast and I plan on delving into the more in-depth in a related article but for the meantime here are a few tools that can accomplish it that we use ourselves. So lets begin:</p>
<p><strong>SWFTools: [<a href="http://www.swftools.org/">http://www.swftools.org/</a>]</strong><br />
SWFTools is a set of command-line utilities for interacting with Flash files on the server. They provide the ability to create and decompile flash units and as they are on the command line means that web-services are able to interact with them, meaning you can build your own web-tools or incorporate them into back-systems you may have built in-house. I&#8217;m not going to delve into how to use this tool here just yet but I will go about showing you how, given shell access to your hosting account you should be able to install these tools locally.</p>
<p>The quick answer to getting this up on your account is to amend the <strong>./configure</strong> line to include a <strong>&#8211;prefix=/home/UASERNAMEHERE/swtoolsinstalldir</strong> I&#8217;ll cover this in full below.</p>
<p>The <a href="http://wiki.swftools.org/index.php/FAQ">SWFTools FAQ</a> details standard installation as:<br />
<code><strong><br />
tar -zvxf swftools-0.x.x.tar<br />
cd swftools-0.x.x<br />
./configure<br />
make<br />
make install<br />
</strong></code><br />
This would fail on Dreamhost accounts as the <code>make install</code> requires <strong>root</strong> access which you&#8217;re not going to get top be honest. But never fear, this is easily circumvented without putting security at risk. The key here is to not try and install this on a machine-wide basis, that is create your own instance this program locally to your account.</p>
<ul>
<li> Create a directory called swftools in your home directory</li>
<li> chdir into this directory and download the required tar.gz [At time of writing this was <a href="http://www.swftools.org/swftools-2009-08-24-2042.tar.gz">http://www.swftools.org/swftools-2009-08-24-2042.tar.gz</a>]</li>
<li> untar/unzip this to that dir</li>
<li> chdir to the the folder this has created</li>
<li> run the nromal installation script but change the ./configure line to &#8220;<strong>./configure &#8211;prefix=/home/USERNAMEHERE/swftools/</strong>&#8221; where USERNAMEHERE is replaced by your username</li>
<li> complete the rest of script as detailed in the FAQ</li>
<li> after this is installed change up a directory and remove the source files and directories</li>
</ul>
<p>I&#8217;ve written this out a single list of commands here, remember to change the <strong>USERNAMEHERE</strong> to your account username.<br />
<code><strong><br />
cd ~/<br />
mkdir swftools<br />
cd swftools<br />
wget http://www.swftools.org/swftools-2009-08-24-2042.tar.gz<br />
tar -zxvf swftools-2009-08-24-2042.tar.gz<br />
cd swftools-2009-08-24-2042<br />
./configure --prefix=/home/USERNAME/swftools<br />
make<br />
make install<br />
cd ..<br />
rm -rf swftools-*<br />
</strong></code><br />
And that should be that <img src='http://blog.adtools.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  To verify your installation do the following:<br />
<code><br />
<strong>~/swftools/bin/swfdump -V</strong><br />
</code><br />
You should get back a response along the lines of<br />
<code><br />
<strong>swfdump - part of swftools 2009-08-24-2042</strong><br />
</code><br />
If that&#8217;s there then Bob is your proverbial uncle and you&#8217;ve successfully managed to install SWFTools, well done.</p>
<p><strong>NOTES:</strong><br />
When I configured my SWFTools I got one error:<br />
<code><br />
<strong>checking for missing libraries...  ungif gif_lib.h<br />
***************************************************<br />
* The following headers/libraries are missing:  ungif gif_lib.h<br />
* Disabling gif2swf tool...<br />
***************************************************</strong><br />
</code><br />
Which means I don&#8217;t have access to the gif2swf feature, but that was not needed for my purposes. When I work out how to fix this I&#8217;ll post this fix back here as well. Have fun and please post back your successes and any interesting tolls you&#8217;ve created from it&#8230; happy coding.<br />
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ --></p>
<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing_top"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fblog.adtools.co.uk%2Finstalling-swftools-on-dreamhost-accounts%2F12%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing_top"><a href="http://twitter.com/share?url=http%3A%2F%2Fblog.adtools.co.uk%2Finstalling-swftools-on-dreamhost-accounts%2F12%2F&amp;text=Installing+SWFTools+on+Dreamhost+accounts&amp;via=adops" target="_blank" class="mr_social_sharing_popup_link"><img src="http://blog.adtools.co.uk/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing_top"><g:plusone size="medium" count="false" href="http://blog.adtools.co.uk/installing-swftools-on-dreamhost-accounts/12/"></g:plusone></span><span class="mr_social_sharing_top"><script type="IN/Share" data-url="http://blog.adtools.co.uk/installing-swftools-on-dreamhost-accounts/12/"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.adtools.co.uk/installing-swftools-on-dreamhost-accounts/12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

