<?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>iPhone Passion &#187; Wikipedia</title>
	<atom:link href="http://www.iphonepassion.com/tag/wikipedia/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iphonepassion.com</link>
	<description>The unofficial iPhone news blog</description>
	<lastBuildDate>Thu, 04 Feb 2010 13:42:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>World&#8217;s knowledge at your fingertips &#8211; Wikipedia for offline use on your iPhone/iPod Touch</title>
		<link>http://www.iphonepassion.com/2008/04/10/worlds-knowledge-at-your-fingertips-wikipedia-for-offline-use-on-your-iphoneipod-touch/</link>
		<comments>http://www.iphonepassion.com/2008/04/10/worlds-knowledge-at-your-fingertips-wikipedia-for-offline-use-on-your-iphoneipod-touch/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 09:27:10 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[offline]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[step by step]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Wikipedia]]></category>

		<guid isPermaLink="false">http://www.iphonepassion.com/2008/04/10/worlds-knowledge-at-your-fingertips-wikipedia-for-offline-use-on-your-iphoneipod-touch/</guid>
		<description><![CDATA[

The title is right: you can install Wikipedia on your iPhone. Most articles on Wikipedia are there, in only 2GB of disk space. Sure, there are no pictures(nor other multimedia items), and the navigation is crappy, but after all&#8230; it&#8217;s Wikipedia on your iPhone, to read and to love whenever you&#8217;re offline.
In the author&#8217;s words:
What
An [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://upload.wikimedia.org/wikipedia/meta/2/2a/Nohat-logo-nowords-bgwhite-200px.jpg" height="200" align="right"/><br />
<img src="http://collison.ie/wikipedia-iphone/screenshots/2.png" height="200"/></p>
<p>The title is right: you can install Wikipedia on your iPhone. Most articles on Wikipedia are there, in only 2GB of disk space. Sure, there are no pictures(nor other multimedia items), and the navigation is crappy, but after all&#8230; it&#8217;s Wikipedia on your iPhone, to read and to love whenever you&#8217;re offline.<br />
In the author&#8217;s words:</p>
<blockquote><p><strong>What</strong><br />
An offline Wikipedia reader for the iPhone or iPod Touch. I wanted to write an iPhone app over Christmas, and so hacked this together during the break.<br />
<strong>Why</strong><br />
It&#8217;s the warm fuzzy feeling of having the sum of all human knowledge in your pocket. It&#8217;s the hitchhiker&#8217;s guide to the galaxy realised. EDGE is slow; search is slow; you&#8217;re abroad, in a plane, a tunnel, or on top of a mountain. You have an iPod Touch.</p></blockquote>
<p>Here&#8217;s the noob&#8217;s step-by-step guide on how to install it on your iPhone or iPod Touch.</p>
<p><span id="more-72"></span></p>
<h3>Prerequisites</h3>
<p>1. First of all, make sure u have <a href="http://www.iphonepassion.com/2008/03/27/jailbroken-iphone-tutorial-step-2-installing-bsd-subsystem-and-ssh/" title="Jailbroken iPhone Tutorial - Step 2 - Installing BSD subsystem and SSH | iPhone Passion">BSD Subsystem and SSH</a> working on it.</p>
<h3>Download to computer</h3>
<p>2. Second: download the Wikipedia data files(2 GB worth of them). There&#8217;s a <a href="http://thepiratebay.org/tor/4009663" title="Wikipedia for the iPod Touch [EN] (download torrent) - TPB">torrent file</a> available for the data files, but I got better download speed for <a href="http://ftp.heanet.ie/pub/wikipedia-iphone/enwiki-20071018-iphone.tar">classic download (English version, 2GB)</a>. You should consider using a download manager for this, in case u get interrupted u don&#8217;t want to start the download all over again. If you&#8217;re downloading from ftp, you&#8217;ll need another 2GB extra space on your computer to unzip the archive.</p>
<p>3. Third, download Wikipedia.app &#8211; this is the executable file that you&#8217;re going to use. The latest version can be found on <a href="http://code.google.com/p/wikipedia-iphone/downloads/list" title="wikipedia-iphone - Google Code">code.google.com</a>, and so can the sources for it. Unzip the archive to obtain Wikipedia.app</p>
<h3>Copy to iPhone</h3>
<p>4. We need to copy all our files onto the iPhone/iPod Touch. The files u need to copy are:<br />
<code>Wikipedia.app and its contents</code><br />
The data files &#8211; wp folder and the files within(the one unpacked by the torrent or unzipped from ftp):<br />
<code><br />
  locate.prefixdb<br />
  processed<br />
  blocks.db<br />
  locate.db<br />
</code>  </p>
<p>If on Windows, get WinSCP, connect to the iPhone and just copy them. You&#8217;ll want:<br />
Wikipedia.app copied inside /Applications/ folder on the iPhone<br />
the wp folder and the 4 files mentioned above, copied on /var/root/.</p>
<p>Open up Terminal.app (I&#8217;m assuming u use MacOSX or Linux) you&#8217;ll achieve this using the <a href="http://en.wikipedia.org/wiki/Secure_copy" title="Secure copy - Wikipedia, the free encyclopedia">marvelous scp command</a>:</p>
<p>First of all:<br />
scp -r Wikipedia.app/ root@10.168.1.102:/Applications/</p>
<p>scp -r wp root@10.168.1.102:/var/root/</p>
<p>Obviously, you&#8217;ll need to change the IP address there with the one of your iPhone or iPod. If u don&#8217;t know what it is, read <a href="http://www.iphonepassion.com/2008/03/27/jailbroken-iphone-tutorial-step-2-installing-bsd-subsystem-and-ssh/" title="Jailbroken iPhone Tutorial - Step 2 - Installing BSD subsystem and SSH | iPhone Passion">this article again</a>.</p>
<p>Scp will ask you for the password &#8211; as I mentioned before, for BSD Subsystem 2.1 for 1.1.4, the password is &#8220;<strong>alpine</strong>&#8221; (no quotes).</p>
<p>Done? If we&#8217;re lucky, it might actually work. You&#8217;ll need to kill Springboard to see Wikipedia appear on the screen. Rebooting the iPhone is one way to do it, but even simpler we can just restart the Springboard process. </p>
<h3>Restarting Springboard</h3>
<p>5. Ssh into the iPhone from Putty or Terminal.app, still as root.<br />
run <strong>ps -A | grep Springboard</strong><br />
The first number this shows you is what we&#8217;re interested in, namely the PID of the process.<br />
run <strong>kill 575</strong> (where instead of 575 you have the PID we got previously). Looking at the iPhone you&#8217;ll see the spinning circle and Springboard restarting. </p>
<p>If you see the Wikipedia icon on the screen, give it a try. Hopefully it will work.</p>
<h3>Chmod, Chown and other tuneup</h3>
<p>If not, we have some tuning to do:<br />
Still in the ssh session, logged in as root on the iPhone/iPod, you&#8217;ll have to make sure the correct access rights and ownership is assigned to the files we&#8217;re interested in:<br />
What works for me is:</p>
<p><code><br />
# ls -la /Applications/ | grep Wikipedia<br />
drwxr-xr-x     2 root    admin   204 Apr 10 11:33 Wikipedia.app<br />
</code></p>
<p><code><br />
  # ls -la /Applications/Wikipedia.app<br />
  total 360<br />
  drwxr-xr-x    2 root  admin    204 Apr 10 11:33 .<br />
  drwxrwxr-x   51 root  admin   1734 Apr 10 11:33 ..<br />
  -rw-r--r--    1 root  admin  71168 Apr 10 11:33 Default.png<br />
  -rw-r--r--    1 root  admin    613 Apr 10 11:33 Info.plist<br />
  -rwxr-xr-x    1 root  admin  96624 Apr 10 11:33 Wikipedia<br />
  -rw-r--r--    1 root  admin   7563 Apr 10 11:33 icon.png<br />
</code></p>
<p>If you don&#8217;t have something similar, you could also try something like<br />
<code>chmod -R 777 /Applications/Wikipedia.app</code><br />
and<br />
<code>chown root -R /Applications/Wikipedia.app</code><br />
which will grant all rights to all files inside the Wikipedia.app folder, and will change the user name to root.</p>
<p>Also, now for the data files:<br />
<code><br />
# ls -la /var/root<br />
total 0<br />
drwxrwxrwx    6 root    wheel  204 Apr 10 11:32 .<br />
drwxr-xr-x   16 root    wheel  612 Mar 30 14:23 ..<br />
drwxr-xr-x    2 mobile  wheel   68 Mar 30 23:38 Downloads<br />
drwxrwxrwx    6 mobile  wheel  204 Mar 30 15:15 Library<br />
drwx------    5 mobile  wheel  170 Apr 10 09:10 Media<br />
drwxr-xr-x    2 root    wheel  204 Apr 10 11:32 wp<br />
</code><br />
you should see wp over there, with at least r and x as access rights everywhere.<br />
Same as before, just to make sure we could run<br />
<code>chmod -R 777 /var/root/wp</code><br />
and<br />
<code>chown root -R /var/root/wp</code></p>
<p>Well.. that was about it. If the last part about access rights was confusing for you, you&#8217;ll just need to <strong>remember to copy-paste and run the 4 commands</strong> I mentioned:<br />
<code><br />
chmod -R 777 /Applications/Wikipedia.app<br />
chown root -R /Applications/Wikipedia.app<br />
chmod -R 777 /var/root/wp<br />
chown root -R /var/root/wp<br />
</code></p>
<h3>Congrats!</h3>
<p>More reading material on installing Wikipedia, over at the author&#8217;s page <a href="http://collison.ie/wikipedia-iphone/" title="patrick collison - an offline Wikipedia reader for the iPhone/iPod Touch">over here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iphonepassion.com/2008/04/10/worlds-knowledge-at-your-fingertips-wikipedia-for-offline-use-on-your-iphoneipod-touch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
