<?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>geek.phatus.com &#187; iPhone</title>
	<atom:link href="http://geek.phatus.com/category/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://geek.phatus.com</link>
	<description></description>
	<lastBuildDate>Thu, 11 Mar 2010 07:25:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>View PDF files on the iPhone without installing a reader</title>
		<link>http://geek.phatus.com/2010/01/view-pdf-files-on-the-iphone-without-downloading-a-reader/</link>
		<comments>http://geek.phatus.com/2010/01/view-pdf-files-on-the-iphone-without-downloading-a-reader/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 06:31:00 +0000</pubDate>
		<dc:creator>Pyro222</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://geek.phatus.com/?p=1145</guid>
		<description><![CDATA[Recently, I&#8217;ve built the necessity to read and study more text on the go. Until I can afford a kindle or perhaps a decent laptop, I thought I might give the iPhone a shot as a viable e-book reader. Sounded simple enough so I transfered my documents over to my phone only to quickly realize, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://geek.phatus.com/2010/01/view-pdf-files-on-the-iphone-without-downloading-a-reader"><img style="float:right" src="http://www.phatus.com/geekimages/iphonepdf2.png"/></a>Recently, I&#8217;ve built the necessity to read and study more text on the go. Until I can afford a kindle or perhaps a decent laptop, I thought I might give the iPhone a shot as a viable e-book reader. Sounded simple enough so I transfered my documents over to my phone only to quickly realize, I had no pdf viewer. Or so I thought. Now I&#8217;m not much for the app store and I couldn&#8217;t seem to find a decent free app in the trusted repositories from cydia so I did some research and found that safari can actually read pdf documents. However, the problem with this method was that everyone seemed to suggest that one should email the document to themselves and open it from the web with safari. Quite inefficient and will only work if you have some form of Internet access. If you currently have a jailbroken iPhone, There is a much simpler way to access your pdf files in safari and should work with or without Internet access. Read on for a simple solution.</p>
<h2>The rundown</h2>
<p>In searching for a solution, I realized I could simply serve the files to myself through http. There are a server packages in the repositories however I remembered recently coming across a killer one line command from <a href="http://www.commandlinefu.com/commands/view/71/serve-current-directory-tree-at-httphostname8000">commandlinefu.com</a> that serves up the current working directory on port 8000 using python.<br />
In order to proceed you will need to have a jailbroken iPhone with python installed on it.</p>
<h2>Step-By-Step</h2>
<ol>
<li>To serve the files you will have to have first uploaded your pdf documents somewhere on your iphone.
<li>Next either open up your terminal app on the phone or ssh to it and cd to the parent directory containing the documents.
<li>Now simply type in &#8220;<a href="http://www.commandlinefu.com/commands/view/71/serve-current-directory-tree-at-httphostname8000">python -m SimpleHTTPServer</a>&#8221; to begin serving the current directory on port 8000. I believe you may also specify a port number at the end of the command. (you may need to be root to do this)
<li>Now open up safari and in the address bar type in &#8220;localhost:8000&#8243; and you will now see a directory listing of your documents folder in which you can now browse and open as you wish.<br />
<img src="http://www.phatus.com/geekimages/iphonepdf1.png"/></p>
<li>Don&#8217;t forget when you are finished to return to your terminal or ssh session and terminate the process.
</ol>
<h2>Sources</h2>
<p><a href="http://www.commandlinefu.com/commands/view/71/serve-current-directory-tree-at-httphostname8000">CommandlineFU.com</a></p>
]]></content:encoded>
		<p><a href="http://geek.phatus.com/?p=1145">View PDF files on the iPhone without installing a reader</a> - <a href="http://geek.phatus.com/">geek.phatus.com</a> </p>
			<wfw:commentRss>http://geek.phatus.com/2010/01/view-pdf-files-on-the-iphone-without-downloading-a-reader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
