<?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; SSH</title>
	<atom:link href="http://www.iphonepassion.com/tag/ssh/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>
		<item>
		<title>How to fix Safari cookies logout bug on iPhone firmware 1.1.4</title>
		<link>http://www.iphonepassion.com/2008/04/07/how-to-fix-safari-cookies-logout-bug-on-iphone-firmware-114/</link>
		<comments>http://www.iphonepassion.com/2008/04/07/how-to-fix-safari-cookies-logout-bug-on-iphone-firmware-114/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 05:37:09 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[1.1.4]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[logout]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.iphonepassion.com/2008/04/07/how-to-fix-safari-cookies-logout-bug-on-iphone-firmware-114/</guid>
		<description><![CDATA[Remember I promised I&#8217;d introduce u to the many uses of having SSH and BSD installed on your iPhone. Here&#8217;s the first of a bunch of tips and hacks that will make your iPhone experience a lot less frustrating.
The bug:
On 1.1.4 firmware(and possibly 1.1.3), for some iPhone setups, after you log into a website from [...]]]></description>
			<content:encoded><![CDATA[<p>Remember I promised I&#8217;d introduce u to the many uses of having SSH and BSD installed on your iPhone. Here&#8217;s the first of a bunch of tips and hacks that will make your iPhone experience a lot less frustrating.</p>
<p><strong>The bug:</strong></p>
<p>On 1.1.4 firmware(and possibly 1.1.3), for some iPhone setups, after you log into a website from Safari, when you get back after having closed Safari, it&#8217;ll keep ask you to login.</p>
<p><span id="more-70"></span></p>
<p>This gets quickly extremely frustrating, and, as you suspect, it&#8217;s a bug.  </p>
<p>The solution:</p>
<p><strong>Step 1.</strong> Use Terminal.app or putty to SSH onto your iPhone. Read more about how <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">to do this over here</a> (remember, the iPhone root password is usually &#8220;<strong>alpine</strong>&#8221; ).</p>
<p><strong>Step 2.</strong> On your iPhone, run the following commands:</p>
<p><code><br />
chmod 777 /var/mobile/Library/Cookies/<br />
chmod 666 /var/mobile/Library/Cookies/*<br />
</code></p>
<p>Voila, it should work now. </p>
<p><strong>As an alternative to Step 2</strong> <a href="http://www.ben.geek.nz/iphone-google-reader-gmail-facebook-cookie-fix/" title="Ben.geek.nz &raquo; iPhone Google Reader/Gmail/Facebook Cookie Fix">some people have</a> reported that the following is cleaner and more effective(I didn&#8217;t test it, the first method works out for me):</p>
<p><code>chown -R mobile /var/mobile/</code></p>
<p>PS &#8211; here&#8217;s a video of doing this. I must mention that the <strong>chown -R</strong> version that u see right above is superior to changing manually the 2 files in the video.<br />
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/DUoJG7wTKJU&#038;rel=0&#038;color1=0x5d1719&#038;color2=0xcd311b&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/DUoJG7wTKJU&#038;rel=0&#038;color1=0x5d1719&#038;color2=0xcd311b&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.iphonepassion.com/2008/04/07/how-to-fix-safari-cookies-logout-bug-on-iphone-firmware-114/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Jailbroken iPhone Tutorial &#8211; Step 2 &#8211; Installing BSD subsystem and SSH</title>
		<link>http://www.iphonepassion.com/2008/03/27/jailbroken-iphone-tutorial-step-2-installing-bsd-subsystem-and-ssh/</link>
		<comments>http://www.iphonepassion.com/2008/03/27/jailbroken-iphone-tutorial-step-2-installing-bsd-subsystem-and-ssh/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 14:41:57 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[BSD Subsystem]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.iphonepassion.com/2008/03/27/jailbroken-iphone-tutorial-step-2-installing-bsd-subsystem-and-ssh/</guid>
		<description><![CDATA[
The second thing you do after jailbreaking the iPhone and importing the SIM contacts is, without a single doubt, installing one of the hundreds cool iPhone apps available on various Installer sources. In most cases, you&#8217;ll get away with only this. However, occasionally, some of the coolest apps will require a bit of advanced iPhone [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm3.static.flickr.com/2088/1555967295_8b7b37ac64_m.jpg" width="300" align="right"/><br />
The second thing you do after jailbreaking the iPhone and importing the SIM contacts is, without a single doubt, installing one of the hundreds cool iPhone apps available on various Installer sources. In most cases, you&#8217;ll get away with only this. However, occasionally, some of the coolest apps will require a bit of advanced iPhone usage, and that&#8217;s what we&#8217;re gonna cover here. </p>
<p>You might have already heard some rumors about this, anyways here it is: the iPhone is a real computer, running a tiny stripped down version of Mac OSX, similar in many ways to what you have on your MacBook. In order to unleash its full potential, we&#8217;ll have to &#8220;unstrip&#8221; it a little bit by installing some of the tools found on Unix .</p>
<p><span id="more-68"></span></p>
<p><strong>BSD Subsystem</strong> can be found in the &#8220;System&#8221; menu of Installer.app, and will install some essential utilities that you&#8217;ll further need. Plus, many iPhone apps need it in order to work. Installing it is as easy as installing any of the Installer.app packages(that is, 4 clicks away). If you like screenshots, take a look at <a href="http://www.iclarified.com/entry/index.php?enid=687" title="iClarified - iPhone - How to Install BSD Subsystem on Your iPhone">iClarified over here</a>. I&#8217;m pretty sure that you&#8217;ll need to restart the iPhone after you have installed this.</p>
<p>To reboot the iPhone, after you exit Installer.app, keep the button on top pressed for about 5 seconds, until it shows you a &#8220;Slide to Power Off&#8221; question. Slide, to power it off, then press the same button again to restart the iPhone. </p>
<p>Second on our list is the OpenSSH server. It needs BSD Subsystem, and it gives you console Terminal access to the iPhone from your computer. Yes, you heard me well &#8211; once you got OpenSSH installed(also found in Installer&#8217;s &#8220;System&#8221; menu), you&#8217;ll be able to access the iPhone in a Unix console, as if it were an ordinary computer. </p>
<p>But first, I think you&#8217;ll need to restart the iPhone again(just like 2 paragraphs above).</p>
<p>So.. you rebooted the iPhone once again. We can give it a try now. First, make sure the iPhone and the computer are in the same wireless network. Next, on the iPhone, go into Settings app, the Wi-Fi menu, click on the arrow right to the active wireless connection, and you should be presented to a details page. What we&#8217;re interested in is the IP Address.</p>
<p>If you&#8217;re on a Mac, you open up Terminal; type ssh followed by the iPhone&#8217;s IP address and  <strong>-l root</strong>, such as:</p>
<p><code>ssh 192.168.1.100 -l root</code>  (it&#8217;s just a sample address).<br />
If the connection can be made, and if the iPhone has BSD Subsystem and OpenSSH installed and ready, then you&#8217;ll be asked for a password &#8211; the one that should work is <strong>alpine</strong> &#8211; if it doesn&#8217;t, you&#8217;re on your own, keep on googling for &#8220;iPhone ssh root password&#8221;.</p>
<p>If on Windows, you can access ssh using the great <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" title="PuTTY: a free telnet/ssh client">free utility putty</a>. Similar with above, you enter the iPhone&#8217;s IP address, &#8220;root&#8221; as the username and &#8220;alpine&#8221; as the password.</p>
<p>Well.. that&#8217;s about it. If it works, congrats! The world of iPhone hacking is wide open for you.</p>
<p>Using SSH and BDS Subsystem, we&#8217;ll soon teach you how to install Wikipedia on the iPhone, how to hack Tap Tap Revolution to make it work, or how to fix your iPhone Mail after it stopped working following an iPhone restore.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iphonepassion.com/2008/03/27/jailbroken-iphone-tutorial-step-2-installing-bsd-subsystem-and-ssh/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
