<?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>Alex Sleat &#187; pyrobot install</title>
	<atom:link href="https://alexsleat.co.uk/tag/pyrobot-install/feed/" rel="self" type="application/rss+xml" />
	<link>https://alexsleat.co.uk</link>
	<description>/home/alex</description>
	<lastBuildDate>Wed, 20 Jun 2012 17:33:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How To: Install Pyrobot in Ubuntu</title>
		<link>https://alexsleat.co.uk/2010/11/30/how-to-install-pyrobot-in-ubuntu/</link>
		<comments>https://alexsleat.co.uk/2010/11/30/how-to-install-pyrobot-in-ubuntu/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 14:30:53 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[10.10]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[maverick]]></category>
		<category><![CDATA[Maverick Meerkat]]></category>
		<category><![CDATA[pyrobot install]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">https://alexsleat.co.uk/?p=8122</guid>
		<description><![CDATA[<br/><p>A quick guide for getting pyrobot running in Ubuntu, I&#8217;ve managed to get it running on 32bit and 64bit Ubuntu (10.10) so follow the guide accordingly to whichever architecture you&#8217;re using (64bit is about half way down the post).</p> 32-bit <p>1. Download this file, or copy the below into a file and save it [...]]]></description>
			<content:encoded><![CDATA[<br/><p>A quick guide for getting pyrobot running in Ubuntu, I&#8217;ve managed to get it running on 32bit and 64bit Ubuntu (10.10) so follow the guide accordingly to whichever architecture you&#8217;re using (64bit is about half way down the post).</p>
<h2><span style="text-decoration: underline;">32-bit</span></h2>
<p><strong>1. </strong>Download <a href="http://dl.dropbox.com/u/307455/pyroinstall.sh">this file</a>, or copy the below into a file and save it as <em>pyroinstall.sh </em>to your home dir.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#!/bin/sh</span></p>
<p><span class="re2">currentdir=</span>$<span class="br0">&#40;</span><span class="kw3">pwd</span><span class="br0">&#41;</span></p>
<p><span class="kw2">sudo</span> apt-get <span class="kw2">install</span> build-essential python2<span class="nu0">.6</span> python2<span class="nu0">.6</span>-dev python-tk python-numeric libjpeg62-dev libncurses5-dev swig</p>
<p><span class="kw2">wget</span> http://pyrorobotics.org/download/pyrobot-latest.tgz</p>
<p><span class="kw2">tar</span> -zxvf pyrobot-latest.tgz</p>
<p><span class="kw3">cd</span> pyrobot</p>
<p>python configure.py</p>
<p><span class="kw2">make</span></p>
<p><span class="kw2">sed</span> -ie <span class="st0">&#8216;s/-e #!/#!/g&#8217;</span> <span class="re1">$currentdir</span>/pyrobot/bin/pyrobot<br />
<span class="kw2">sed</span> -ie <span class="st0">&#8216;s/-e # /# /g&#8217;</span> <span class="re1">$currentdir</span>/pyrobot/system/version.py</p>
<p><span class="kw3">echo</span> <span class="st0">&#8216;export PATH=${PATH}:&#8217;</span><span class="re1">$currentdir</span><span class="st0">&#8216;/pyrobot/bin&#8217;</span> &gt;&gt; <span class="re1">$currentdir</span>/.bashrc</div>
<p><em>Note: The &#8216; in the code highlighter I have above won&#8217;t work in terminal, there isn&#8217;t much I can do about it so you&#8217;ll have to re-write it. Also if you&#8217;re doing this manually change the &#8220;$currentdir&#8221; to &#8220;~&#8221; if you are doing it in your home directory.</em></p>
<p><strong>2.</strong> Make sure this file is in your home directory (e.g /home/alex/pyroinstall.sh) and make it executable:</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">chmod</span> +x pyroinstall.<span class="kw2">sh</span></div>
<p><strong>3.</strong> Run the usual way (as super user because it has to install stuff etc):</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">sudo</span> ./pyroinstall.<span class="kw2">sh</span></div>
<p><strong>4.</strong> It&#8217;ll ask you some questions, below are the answers I used &#8211; you can use other configurations if you know what you need. I also put the full output in pastebin &#8217;cause it was bunging up the guide - <a href="http://pastebin.com/Kc5jyhja">http://pastebin.com/Kc5jyhja</a></p>
<div class="dean_ch" style="white-space: wrap;"><span class="nu0">1</span>. &nbsp; &nbsp; &nbsp;<span class="nu0">2.6</span><br />
<span class="nu0">2</span>. &nbsp; &nbsp; &nbsp;/usr/include/python2<span class="nu0">.6</span><br />
<span class="nu0">3</span>. &nbsp; &nbsp; &nbsp;/usr/bin/python2<span class="nu0">.6</span><br />
<span class="nu0">4</span>. &nbsp; &nbsp; &nbsp;/etc/X11<br />
<span class="nu0">5</span>. &nbsp; &nbsp; &nbsp;none<br />
<span class="nu0">6.01</span>&nbsp; &nbsp; n<br />
<span class="nu0">6.02</span>&nbsp; &nbsp; n<br />
<span class="nu0">6.03</span>&nbsp; &nbsp; n<br />
<span class="nu0">6.04</span>&nbsp; &nbsp; n<br />
<span class="nu0">6.05</span>&nbsp; &nbsp; n<br />
<span class="nu0">6.06</span>&nbsp; &nbsp; n<br />
<span class="nu0">6.07</span>&nbsp; &nbsp; n<br />
<span class="nu0">6.08</span>&nbsp; &nbsp; n<br />
<span class="nu0">6.09</span>&nbsp; &nbsp; n<br />
<span class="nu0">6.10</span>&nbsp; &nbsp; n<br />
<span class="nu0">6.11</span>&nbsp; &nbsp; y<br />
<span class="nu0">6.12</span>&nbsp; &nbsp; y</div>
<p><strong>5.</strong> Once it&#8217;s done reboot or run:</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw3">source</span> ~/.bashrc</div>
<p><strong>6.</strong> Allow read/write/execute permissions for the pyrobot folder:</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">sudo</span> <span class="kw2">chmod</span> -R <span class="nu0">777</span> ~/pyrobot</div>
<p>You should all be done, try typing the following to get it running!</p>
<div class="dean_ch" style="white-space: wrap;"> pyrobot</div>
<h2><span style="text-decoration: underline;">64-bit</span></h2>
<p>In order to get pyrobot running on 64bit, you basically need to add -fPIC to CFLAGS in all the relative Makefiles as explained in this mailing list post &#8211; <a href="http://www.mail-archive.com/pyro-users@pyrorobotics.org/msg00344.html">http://www.mail-archive.com/pyro-users@pyrorobotics.org/msg00344.html</a> - Lucky for you I&#8217;ve already gone through the effort of doing it and compressed it (<a href="http://dl.dropbox.com/u/307455/pyrobot-5.0.0_64bit.tar">download here</a> you won&#8217;t need to if you are going to run the script though, it&#8217;ll do it for you..).</p>
<p>This script should download the file, configure and make and output the path to the .bashrc file for you (similar to the 32bit one does) so download this file, or copy and paste the script below into a file in your home directory:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#!/bin/sh</span></p>
<p><span class="re2">currentdir=</span>$<span class="br0">&#40;</span><span class="kw3">pwd</span><span class="br0">&#41;</span></p>
<p><span class="kw2">sudo</span> apt-get <span class="kw2">install</span> build-essential python2<span class="nu0">.6</span> python2<span class="nu0">.6</span>-dev python-tk python-numeric libjpeg62-dev libncurses5-dev swig</p>
<p><span class="kw2">wget</span> http://dl.dropbox.com/u/<span class="nu0">307455</span>/pyrobot<span class="nu0">-5.0</span>.0_64bit.<span class="kw2">tar</span></p>
<p><span class="kw2">tar</span> -zxvf pyrobot<span class="nu0">-5.0</span>.0_64bit.<span class="kw2">tar</span></p>
<p><span class="kw3">cd</span> pyrobot</p>
<p>python configure.py</p>
<p><span class="kw2">make</span></p>
<p><span class="kw3">echo</span> <span class="st0">&#8216;export PATH=${PATH}:&#8217;</span><span class="re1">$currentdir</span><span class="st0">&#8216;/pyrobot/bin&#8217;</span> &gt;&gt; <span class="re1">$currentdir</span>/.bashrc</div>
<p>2. Make sure this file is in your home directory (e.g /home/alex/pyroinstall64.sh) and make it executable:</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">chmod</span> +x pyroinstall64.<span class="kw2">sh</span></div>
<p>3. Run the usual way (as super user because it has to install stuff etc):</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">sudo</span> ./pyroinstall64.<span class="kw2">sh</span></div>
<p>Steps 4. 5. and 6. are the same as above..</p>
<h2><span style="text-decoration: underline;">Change Default Editor</span></h2>
<p>If you want to change the default editor from emacs to anything else (this will change the default editor used in other terminal applications too..) use the following commands, just change gedit to whatever you&#8217;d like (vi, vim, kedit etc):</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw3">echo</span> <span class="st0">&quot;export EDITOR=/usr/bin/gedit&quot;</span> &gt;&gt; ~/.bashrc<br />
<span class="kw3">source</span> ~/.bashrc</div>
<p>Any problems leave a comment and I&#8217;ll try and help as best as I can..</p>
]]></content:encoded>
			<wfw:commentRss>https://alexsleat.co.uk/2010/11/30/how-to-install-pyrobot-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
