maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Noor (Quran app) working on the N900 (https://talk.maemo.org/showthread.php?t=44293)

MohammadAG 2010-04-20 18:20

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by Ali bhai (Post 619778)
how do I uninstall the noor app as well as the translation package? When I go to uninstall the english translation, I get an error reading :"unable to uninstall 'noor english quran translation' "

Then if i try to uninstall the noor application it says: "unable to uninstall 'noor'. some application packages are needed by other applications."

Im not able to update them either, so i was trying to uninstall and reinstall the newer versions.

When you reinstall a version it removes it and installs the new one, but it seems HAM isn't doing what dpkg does.
Try doing the above command (noor has no problems btw, you can keep it).
Be sure to update your repositories (title bar > refresh) before doing this since the old package caused the problem.

MohammadAG 2010-04-20 19:40

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by luckylefty (Post 619785)
Ok I got the noor english translator install but I don't know how to get into the home/user/.noor to change it to the language. The instruction is very vague.

I'm still working on that, easiest method is to install leafpad from the repos and type leafpad /home/user/.noor then change the en to the language you want.

luckylefty 2010-04-20 20:33

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by MohammadAG (Post 619914)
I'm still working on that, easiest method is to install leafpad from the repos and type leafpad /home/user/.noor then change the en to the language you want.

OK I installed leafpad and went into xterminal and type root. then leafpad /home/user/.noor. it pulled up leafpad and the lang = en which is what I want bout when I open noor it still doesnt show the english translation like how you got it on the first page. Guess my question is how do I make it show the English translation?

zaedej 2010-04-20 20:37

Re: Noor (Quran app) working on the N900
 
after dl rootsh i typed it in xterminal and thats the error i get.

~ $ apt-get install noor-yusufali-english
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
~ $

zaedej 2010-04-20 20:51

Re: Noor (Quran app) working on the N900
 
rootsh is not working and not even in app manager. whats going on guys?

MohammadAG 2010-04-20 20:53

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by zaedej (Post 619993)
after dl rootsh i typed it in xterminal and thats the error i get.

~ $ apt-get install noor-yusufali-english
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
~ $

Type root then do the above command, close the app manager before doing them.

Quote:

Originally Posted by luckylefty (Post 619986)
OK I installed leafpad and went into xterminal and type root. then leafpad /home/user/.noor. it pulled up leafpad and the lang = en which is what I want bout when I open noor it still doesnt show the english translation like how you got it on the first page. Guess my question is how do I make it show the English translation?

lang = en is for the UI, if you want English translations download the package in extras-devel.
http://maemo.org/packages/view/noor-yusufali-english

zaedej 2010-04-20 20:58

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by MohammadAG (Post 619386)
Can you please download install rootsh from the repos, then open terminal, type root, and
Code:

dpkg -r noor-yusufali-english
then post what the error says?
Alternatively you can copy it from the Hildon Application Manager log (hit title bar then click Log)

Edit: Actually I think I found the problem, it seems that you installed noor then the translations package without opening noor, so there wasn't a config file to backup. Postinst script is hard coded to backup and create a new config file, and since there isn't one it fails, fixing asap.

Edit 2: FIXED, backup file name changed to allow more translation packages.
Noor updated to 0.6-2
English translation updated to 0.1-3



BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ dpkg -r noor-yusufali-english
dpkg: requested operation requires superuser privilege
~ $ dpkg -r noor-yusufali-english
dpkg: requested operation requires superuser privilege
~ $

this is what i get buddy.

MohammadAG 2010-04-20 20:59

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by zaedej (Post 620042)
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ dpkg -r noor-yusufali-english
dpkg: requested operation requires superuser privilege
~ $ dpkg -r noor-yusufali-english
dpkg: requested operation requires superuser privilege
~ $

this is what i get buddy.

Seriously why aren't you reading my above posts, carefully!
Type root, then enter, then apt-get install noor-yusufali-english

zaedej 2010-04-20 21:27

Re: Noor (Quran app) working on the N900
 
this is what i get. im sorry mohammadag, im new with this.

Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900-02-8:~# dpkg -r noor-yusufali-english
dpkg: error processing noor-yusufali-english (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
noor-yusufali-english
Nokia-N900-02-8:~#

zaedej 2010-04-20 21:34

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by MohammadAG (Post 620047)
Seriously why aren't you reading my above posts, carefully!
Type root, then enter, then apt-get install noor-yusufali-english

i did what u said and this is what i get bro.

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900-02-8:~# apt-get install noor-yusufali-english
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package noor-yusufali-english needs to be reinstalled, but I can't find an archive for it.
Nokia-N900-02-8:~#

MohammadAG 2010-04-20 21:36

Re: Noor (Quran app) working on the N900
 
Is devel enabled?
Did you refresh your repos?
If all this fails vlick on the deb in my link above

zaedej 2010-04-20 22:06

Re: Noor (Quran app) working on the N900
 
Dev is enabled and i updated the app manager over 3 times but it shows the update for the translation but when I try to download it, it says "unable to update translation...."

And what do you mean by 'vlick'?

zaedej 2010-04-20 22:13

Re: Noor (Quran app) working on the N900
 
can you just tell me how do i uninstall the app. I tried to uninstall the english translation first then uninstall the app but it says "Unable to uninstall"
:S

I am all confused now.

MohammadAG 2010-04-21 04:23

Re: Noor (Quran app) working on the N900
 
http://repository.maemo.org/extras-d..._0.1-3_all.deb

Click was what I meant not vlick.
The postrm and postinst scripts were hardcoded in the old version. Download the file above and try installing it using app manager, if that doesn't work save it into Nokia N900 and type (after typing root)
Code:

dpkg -i /home/user/MyDocs/noor-yusufali-english_0.1-3_all.deb

zaedej 2010-04-21 04:39

Re: Noor (Quran app) working on the N900
 
after saving the doc in n900 in doc folder, i did the above in xterminal and this is what it shows.

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900-02-8:~# dpkg -i /home/user/MyDocs/noor-yusufali-english_0.1-3_all.deb
dpkg: error processing /home/user/MyDocs/noor-yusufali-english_0.1-3_all.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/home/user/MyDocs/noor-yusufali-english_0.1-3_all.deb
Nokia-N900-02-8:~#

zaedej 2010-04-21 04:44

Re: Noor (Quran app) working on the N900
 
I tried to do it through app manager too, but didn't work.

MohammadAG 2010-04-21 08:40

Re: Noor (Quran app) working on the N900
 
I said Nokia N900 no Documents

zaedej 2010-04-21 13:36

Re: Noor (Quran app) working on the N900
 
i mean, i saved it in n900 in doc folder.

MohammadAG 2010-04-21 15:51

Re: Noor (Quran app) working on the N900
 
Save it in the root of Nokia N900, not in any of the folders :\

zaedej 2010-04-21 16:00

Re: Noor (Quran app) working on the N900
 
Sorry Boss!!

HtheB 2010-04-21 16:00

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by zaedej (Post 621020)
i mean, i saved it in n900 in doc folder.

Try this please:
go to x terminal and type:

root

---PRESS ENTER---

dpkg -i /home/user/MyDocs/.documents/noor-yusufali-english_0.1-3_all.deb

---PRESS ENTER---

That should work now :)

zaedej 2010-04-21 16:12

Re: Noor (Quran app) working on the N900
 
AMAZING dude!! Yeeeap it worked, and now I can delete the .deb file which is in Document folder right? Or do I still need to keep it?

Thank you very much..:o

HtheB 2010-04-21 16:18

Re: Noor (Quran app) working on the N900
 
yes, you can delete it
no need to keep the installation file on your phone :)

MohammadAG 2010-04-21 16:21

Re: Noor (Quran app) working on the N900
 
http://maemo.org/packages/package_in...el/noor/0.6-2/
New version promoted a few days ago, please, test it and vote up if you have no problems so that it goes to extras :)
Translation package also promoted and should be -testing soon.

zaedej 2010-04-21 16:25

Re: Noor (Quran app) working on the N900
 
I really liked the app, guys.

Thanks to MohammadAG and HtheB.
Sorry, Moh, I am fresh with N900.

MohammadAG 2010-04-21 16:26

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by zaedej (Post 621222)
I really liked the app, guys.

Thanks to MohammadAG and HtheB.
Sorry, Moh, I am fresh with N900.

No worries mate, and you're welcome :)

MohammadAG 2010-04-21 17:03

Re: Noor (Quran app) working on the N900
 
http://maemo.org/packages/package_in...english/0.1-3/
English translation package now in -testing, vote for it to make it reach devel.

MohammadAG 2010-04-22 02:00

Re: Noor (Quran app) working on the N900
 
New versions for both noor and the translation file in -devel.
Changes are a bit more than usual:
  • About section changed.
  • Correct version now shows in about section
  • Button added to open browser pointing to this thread.
  • Changed version of Quran text used, since the older one had square boxes because of pauses.
  • Updated Quran text to v1.0.2
    - An extra sukun above noon at the beginning of sura Al-Ghalam (68:1) is removed in the simple text.
  • Updated Quran fonts used, since the configuration file has to updated, I had to reset it, translation should be unaffected.

If you have any problems updating please post here :)

zaedej 2010-04-22 03:24

Re: Noor (Quran app) working on the N900
 
Currently the translation version I have installed is 0.1-3.So, when I refresh the app manager and look for updates, it shows an update for "Noor English Quran translation 0.1-4"

Problem: It doesn't update, it says unable to update.

FYI: I have 'Noor Quran Viewer 0.8-1' installed already.

What am I doing wrong here? I really want to understand this and stop bothering you guys. I feel bad, trust me.

Sorry!

MohammadAG 2010-04-22 12:43

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by zaedej (Post 621907)
Currently the translation version I have installed is 0.1-3.So, when I refresh the app manager and look for updates, it shows an update for "Noor English Quran translation 0.1-4"

Problem: It doesn't update, it says unable to update.

FYI: I have 'Noor Quran Viewer 0.8-1' installed already.

What am I doing wrong here? I really want to understand this and stop bothering you guys. I feel bad, trust me.

Sorry!

What do the logs say after the install fails?

zaedej 2010-04-22 14:24

Re: Noor (Quran app) working on the N900
 
Quote:

Originally Posted by MohammadAG (Post 622437)
What do the logs say after the install fails?


IM PASTING ALL HERE.BTW WHAT HAPPENS IF I DELETE THESE LOGS.?


---------------
hildon-application-manager 2.2.52.2
apt-worker: Ignoring version from wrong domain: xserver-xomap 2:1.6.99.1-0osso20090208.104+0m5
apt-worker: /var/lib/apt/lists/repository.maemo.org_extras-devel_dists_fremantle_free_binary-armel_Packages
apt-worker: Ignoring version from wrong domain: xulrunner 1.9.2.1+rc2
apt-worker: /var/lib/apt/lists/moff.mozilla.com_maemo_multi_dists_chinook_release _binary-armel_Packages
apt-worker: Ignoring version from wrong domain: fennec 1.0.1
apt-worker: /var/lib/apt/lists/moff.mozilla.com_maemo_multi_dists_chinook_release _binary-armel_Packages
W: GPG error: http://moff.mozilla.com chinook Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 667387BFFF445C24
apt-worker: Ignoring version from wrong domain: xserver-xomap 2:1.6.99.1-0osso20090208.104+0m5
apt-worker: /var/lib/apt/lists/repository.maemo.org_extras-devel_dists_fremantle_free_binary-armel_Packages
apt-worker: Ignoring version from wrong domain: xulrunner 1.9.2.1+rc2
apt-worker: /var/lib/apt/lists/moff.mozilla.com_maemo_multi_dists_chinook_release _binary-armel_Packages
apt-worker: Ignoring version from wrong domain: fennec 1.0.1
apt-worker: /var/lib/apt/lists/moff.mozilla.com_maemo_multi_dists_chinook_release _binary-armel_Packages
-----
Upgrading noor-yusufali-english 0.1-3 to 0.1-4
apt-worker: free space (/) = 39219200
apt-worker: free space (/home/user/MyDocs/.apt-archive-cache/) = 28869132288
required disk space: 324258
apt-worker: free space (/) = 39219200
(Reading database ... 32605 files and directories currently installed.)
Preparing to replace noor-yusufali-english 0.1-3 (using .../noor-yusufali-english_0.1-4_all.deb) ...
Unpacking replacement noor-yusufali-english ...
Failed to open connection to "session" message bus: (null)
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Failed to open connection to "session" message bus: (null)
dpkg: error processing /home/user/MyDocs/.apt-archive-cache/noor-yusufali-english_0.1-4_all.deb (--unpack):
subprocess new post-removal script returned error exit status 1
Failed to open connection to "session" message bus: (null)
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
/home/user/MyDocs/.apt-archive-cache/noor-yusufali-english_0.1-4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-worker: Ignoring version from wrong domain: xserver-xomap 2:1.6.99.1-0osso20090208.104+0m5
apt-worker: /var/lib/apt/lists/repository.maemo.org_extras-devel_dists_fremantle_free_binary-armel_Packages
apt-worker: Ignoring version from wrong domain: xulrunner 1.9.2.1+rc2
apt-worker: /var/lib/apt/lists/moff.mozilla.com_maemo_multi_dists_chinook_release _binary-armel_Packages
apt-worker: Ignoring version from wrong domain: fennec 1.0.1
apt-worker: /var/lib/apt/lists/moff.mozilla.com_maemo_multi_dists_chinook_release _binary-armel_Packagesn
---------------------------

MohammadAG 2010-04-22 16:01

Re: Noor (Quran app) working on the N900
 
Seems to be an issue with the yellow bar notification (dbus isn't being handled properly by app manager - same issue happens if sudo is used).
Temporarily removing notifications during install, since, as suggested by someone, the user doesn't need to know what happens unless an error occurs (although I oppose this :P)

Uploading new package.

BTW, I never saw this error since I don't use the Application Manager.

Edit: going back to notifications, but using run-standalone.sh

Edit2: Those logs get reset at each application manager restart, so you can delete them.

zaedej 2010-04-22 17:02

Re: Noor (Quran app) working on the N900
 
So, what should be done?

MohammadAG 2010-04-22 17:18

Re: Noor (Quran app) working on the N900
 
Aaaand... update! :)
Hopefully there will be no more issues.

zaedej 2010-04-22 19:42

Re: Noor (Quran app) working on the N900
 
PLZ no more command line this time lol.;)

MohammadAG 2010-04-22 19:48

Re: Noor (Quran app) working on the N900
 
Well hopefully it will install, please report back.
I will most probably go back to editing using the command line, but it should only require four presses and an enter key :)
Thinking about using sed to change the UI language, since it's the easiest method till I learn more about Python

zaedej 2010-04-22 21:18

Re: Noor (Quran app) working on the N900
 
Works perfect man!! Thanks!

MohammadAG 2010-04-22 21:21

Re: Noor (Quran app) working on the N900
 
Wohoooo! I guess I can promote it again since the old one had the App Manager issues :)

Edit: btw you're on NU right?

Ali bhai 2010-04-22 22:15

Re: Noor (Quran app) working on the N900
 
I like the changes to the font, and now that the translation is showing up its even better! Thanks alot, May God bless you for setting this up :)........................... if you really really get bored one day maybe we can have a spoken recitation? also im still hoping someone can make an azan app, the symbian one was great, im keeping my e71 with me just for that app.

MohammadAG 2010-04-22 22:32

Re: Noor (Quran app) working on the N900
 
Recitation is already implemented, not sure how to actually make into a package, it might be a bit hard to get this working side by side with the translations since they edit the whole .noor file.

Currently working on using Terminal (not a lot so won't be confusing) to change the language of the UI.
Code:

#!/bin/sh
CURRENT=run-standalone.sh cat /home/user/.noor | grep lang | grep -v \# | tail -c 3
echo "Supported languages:
 en (English - default)
 ar (Arabic)
 fa (Farsi)
 ml (Malayalam)
 ps (Pushto)
 tr (Turkish)
 nl (Dutch - Thanks to HtheB!)"
echo "Type the two letters of the language you want for the UI:"
read input_variable
sed -i s/lang\ \=\ $CURRENT/lang\ \=\ $input_variable/g /home/user/.noor

It isn't working well since it doesn't actually substitute the variables, instead it tries to changes lang = $CURRENT as it is, not as lang = en.
Will see how this goes.

Edit: One more thing, I didn't actually make noor, it's a PyGTK app made for linux, I just ported it, and qwerty12 helped loads with hildonization.

Looking up docs on how to change the Quran view to use kinetic scrolling (as in pygtkeditor and leafpad)


All times are GMT. The time now is 21:44.

vBulletin® Version 3.8.8