reading quran on the iphone
a long time ago, when i got my iphone, i realized that it would be nice to be able to read the quran on my phone. what i wanted was a way to read the arabic text on the phone (page by page, not ayah by ayah). anyhow, i’ll outline the solutions i’ve found here along with my preferred solution and how to set it up.
options
- quran applications in the app store – there are a few in the app store, but only one version of iQuran is free. it shows you the text (ayah by ayah, however), has translations, and audio.
- images – copy a set of 604 images to your iphone, with each image representing one page of the Quran. then, when you want to read Quran, you load up the photo viewer and read the pages there. you can find these images in many places. here is one example. this is the best solution for reading the Quran in Arabic if you don’t want to jailbreak your phone.
- pdfs – in my opinion, the best way to read quran on the iphone (if you have a good pdf viewer). you don’t have to hassle with syncing images, nor do you have to deal with 604 files on your phone that you must go through in order to read Quran. also, pdfs tend to be of higher quality than images. this is the solution i recommend if you have or are willing to jailbreak your phone.
since the first solution is straight forward and instructions for the second solution are available on the link above, i will here outline instructions on how to use pdfs.
first, i need to point something out – you technically don’t need to jailbreak your phone to view the quran pdfs on it – you could download one of the apps in the appstore that views pdfs and use it. however, i’ve tried several of the free ones, and was never satisfied with the speed and performance of any of them. the best pdf viewer i found for the iphone is safari itself. so in order to be able to access these pdfs without a connection, you need to have a webserver running on your phone… and that is why you need to jailbreak your phone
preview
here are three screenshots of how it looks like:
menu
quran text
quran text (wide).
instructions
- jailbreak your phone. on an older iphone, this is easy (install the newest firmware via itunes, then install and run quickpwn). for the 3g iphone, carefully read the instructions on quickpwn‘s website, especially if you want your phone to be unlocked and/or are already using it unlocked.
- once the phone is jail broken, run cydia. install openssh. then install lighttpd.
- when you’re on a wifi network, go to your phone’s settings (from the main screen), click on wifi, and choose the network that you are currently connected to by pressing the blue arrow – note down the value of the ip address
- ssh into your iphone as root – in linux or osx, just open a terminal and run “ssh root@[your phone's ip address]“. on windows, you can do this by downloading putty. the default password is alpine. keep this terminal open for the next step (recommendation – once you’re in, change your password. type passwd and choose something else besides the default. this is for security purposes).
- now you can set up lighttpd. download com.http.lighttpd.plist and scp it to /Library/LaunchDaemons (using mac/linux, just do scp com.http.lighttpd.plist root@[iphone's ip]:/Library/LaunchDaemons). on windows, download winscp, log in (user name root, password is ‘alpine’ unless you’ve changed it in the above step), navigate to /Library/LaunchDaemons, and copy the file over). this file is what will set up lighttpd to start every time the phone is started, and to read the lighttpd.conf from the path below.
- download lighttpd.conf and scp it to /etc. this is the configuration file for the webserver.
- download the pdfs and web files. unzip them (you’ll get a web directory), and scp this directory to /var/root/Media (so that the files will be in /var/root/Media/web/*). note that if you change this path, you have to edit lighttpd.conf to reflect wherever you put this.
- finally, in the terminal you opened in the earlier step, type the following command (this command is what ultimately makes lighttpd start everytime the phone is started):
launchctl load -w /Library/LaunchDaemons/com.http.lighttpd.plist.
and that’s it… you should be good to go! open up safari and navigate to http://localhost/index.html and enjoy!
known issues
- when transferring data to and from the phone (via ssh or scp), you want to make sure that you’re on wireless. you may also want to make sure the iphone doesn’t “sleep” so that the connection doesn’t drop.
- sometimes, when you choose a particular file to read, you get a “cannot connect to server” error – it usually disappears and loads the page before you have a chance to click “ok.”
- if you turn the iphone off while reading a pdf (or go to the main screen, etc), when you come back to safari, sometimes, the page may appear malformed and not allow you to read. to solve this problem, hit back to go to the index and choose a juz’ to reload it.
suggestions/additions/comments are welcome and appreciated.
update – i’ve been using batoul apps’ quranreader at the recommendation of a friend. it’s $1 in the app store, but well worth it.
Salam mashAllah nice work. Just an opinion. If you synch the photos of the Quran sorted by Surah i.e if they are arranged in folders with respect to Surah, then they should show up in surah groups which is easier then parsing through 604 pages. If anyone wants email me on usman@ymail.com or the author of this blog so we can provide you with it.
wallah u alam!
jazakAllah khair bro.
Salaam aleykum brother,
I was reading the post up there, but I have to admit you got me lost! Way too advanced for me. I have a question,please: Every time I try to download the Quran (on my Ipod, Zen Vision or Iphone) I can never get it to be in order, i.e from Surah 1 to 114. It easy does it alphabetically, or it just jumbles the whole thing up. ANy advice?
Salaam.
wa3laikum alsalam -
are you talking about mp3s? if so, are the mp3s correctly tagged (do they have the sura number set as the track number?) — you can find this out by looking at the mp3 on your computer (usually, in itunes, for example, you can right click and choose “get info” and it will tell you what the file is tagged with).
i am guessing that if the track number is properly set for each file, the suras will be in the right order. in worse case, you can rename the files to be 001 – Fatiha, 002 – Baqarah, …, 114 – An-Nas, and this will cause them to be alphabetized.
wsalams.
sorry might be missing something here
were can i download the actually Quran.pdf file from?
i want it to look like the quran text link provided
Jazak
the link is in step #7 above.
jazakAllah khair,
walsalam 3alaikum.
the best Quran app is the called Al Mus ‘haf which is availabe in the appstore.
Regards
agreed that iphoneislam’s al-Mus7af app is awesome as well. i find myself using the batoul quran reader more (because i am used to it now), but had i used al-Mus7af first, it would have been more than good enough for me.