maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] modRana: a flexible GPS navigation system (https://talk.maemo.org/showthread.php?t=58861)

zvogt 2010-07-25 03:13

Re: [Announce] modRana: a flexible GPS navigation system
 
chown'ing the files and directories under /opt/modrana worked for me as well.

bunanson 2010-07-25 04:39

Re: [Announce] modRana: a flexible GPS navigation system
 
Absolutely fantastic!!! Thank you!

Installation is a breeze, dl from 1st post, installed without a glitch! no dependence problems.
Run right out of box, no crashes.
Interface is very intuitive, if nothing else, the userface should be a model for a lot of other apps.

Thanks for the good app, early congratulation that this is going to be a hit!

bun

Wikiwide 2010-07-25 04:44

Re: [Announce] modRana: a flexible GPS navigation system
 
Yes, chmod for /opt/modrana is a good solution! Now it remembers the options! And it doesn't have apparent problems with logging!

I'll try to do a field test soon.

To MartinK:

get file
postinst
in debian directory
and add line like
chmod -R 0777 /opt/modrana
or something similar

It might resolve many issues.

kureyon 2010-07-25 05:08

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Wikiwide (Post 763801)
chmod -R 0777 /opt/modrana

I would rather the ownership of directories issue be fixed instead of grant full rwx to all users.

MartinK 2010-07-25 09:47

Re: [Announce] modRana: a flexible GPS navigation system
 
Good job finding the permission issues, thanks!

Quote:

Originally Posted by kureyon (Post 763828)
I would rather the ownership of directories issue be fixed instead of grant full rwx to all users.

I for now added
Code:

chmod -R a+rw /opt/modrana
to the postinst script. I know this is not ideal, but I dont have a real N900 (well, yet :) ) so I cant just look what the default username/uid is :)

So, I would like to ask:
  • Whats the default username/uid ?
  • Is it always the same ?
  • Can it possibly be changed by the user ?
  • Is there some other way how to consistently set folder ownership ?
Then I can replace it by something like this:
Code:

chown -R default_user /opt/modrana
chmod -R o-rw /opt/modrana
chmod -R ug+rw /opt/modrana

I replaced the package with a new one with modified postinst, name/URL are the same.

白い熊 2010-07-25 09:56

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 763958)
Whats the default username/uid ?

user:users
Quote:

Is it always the same ?
Yes.
Quote:

Can it possibly be changed by the user ?
No, all default N900 services and apps run as user:users

How about integrating turn-by-turn navigation, ala navit? This would beat the crap out of any commercial nav...

MartinK 2010-07-25 10:35

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by 白い熊 (Post 763966)
user:users

Yes.

No, all default N900 services and apps run as user:users

Thanks a lot! I'll change the postinst script right away. :) EDIT: done, package reuploaded
Quote:

Originally Posted by 白い熊 (Post 763966)
How about integrating turn-by-turn navigation, ala navit? This would beat the crap out of any commercial nav...

Well, routing results returned by Google already contain driving directions, for example:
Code:

Turn <b>left</b> at <b>London Rd/<wbr/>A40</b> <div class="">Continue to follow A40</div>

At junction <b>8</b>, exit toward <b>Thame/<wbr/>Milton Common</b>

For now, the direction messages are only signalized by yellow points when the route is drawn and their number is shown in "route info".

So, basically I just have to show these messages near corresponding trackpoints and we have a nice turn-by-turn navigation. :) With espeak, it should be possible to read them aloud too.

白い熊 2010-07-25 10:41

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 764000)
So, basically I just have to show these messages near corresponding trackpoints and we have a nice turn-by-turn navigation. :) With espeak, it should be possible to read them aloud too.

Oh, wow, so that should be easy to integrate, if they're in this format, having espeak just read them out loud at approapriate points in time, and we're there...

This is great...

kureyon 2010-07-26 07:51

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 763958)
[*]Is there some other way how to consistently set folder ownership ?

Ideally everything should be

- owned by root
- not writeable by any user other than root (except for config files/user generated files etc)

For modRana 0.12 (the version I've installed) the following should tighten up and set the correct permissions:

make everything owned by root
chown -R root:root /opt/modrana/

allow user to create new files in /opt/modrana/data/
chmod o+w /opt/modrana/data/

allow user to create new files in /opt/modrana/tracklogs/
chmod o+w /opt/modrana/tracklogs/

repeat the chmod for any other directories in which user needs to create files

kureyon 2010-07-26 08:06

Re: [Announce] modRana: a flexible GPS navigation system
 
One thing that modRana desperately needs is an option to keep the screen on!


All times are GMT. The time now is 22:58.

vBulletin® Version 3.8.8