![]() |
date-time-syncronizer
2 Attachment(s)
Hi, i made a simple script that uses openntpd and syncs time and date in one click. It tests the active connection using WGET and then syncs time and date in your phone. Some dbus messages will inform you about the process during the sync. I made 2 debs one for the italian people, one for the english people
it depends by: wget, openntpd and rootsh first of all make sure that you have rootsh installed, you gotta run this in the xterm console Code:
apt-get update *** It's not a gui it a simple bash script with a nice icon |
Re: date-time-syncronizer
When not receiving a cellular signal, the clock can behave strangely, so it's cool that a synch tool exists.
More generally, I wish ntpd could kick in when no cell signal is available. Ideally it would be an option integrated into the phone's initial set-date-and-time dialogues... but I can't imagine anyone making that kind of effort. :) |
Re: date-time-syncronizer
yes this syncs just when you are connected to one network. Sometimes i reflash or i plug off the battery then i need to have a nice app to sync in one click my date and time. I think it's a little bit impossible to sync with no one connection.. Maybe using GPS data? I can't think how..
|
Re: date-time-syncronizer
After installing with X-terminal I got the next error:
(Reading database ... 31297 files and directories currently installed.) Preparing to replace date-time-syncronizer 1.0 (using time-sync-English.deb) ... Unpacking replacement date-time-syncronizer ... Setting up date-time-syncronizer (1.0) ... dpkg: error processing date-time-syncronizer (--install): subprocess post-installation script returned error exit status 141 Errors were encountered while processing: date-time-syncronizer Whats going wrong? |
Re: date-time-syncronizer
Quote:
Did you install dependencies? I Need to see all the output error. You pasted just some lines. Open a New Xterminal and execute all that you see here Code:
root cd /where/the/deb/is/left and you will execute Code:
dpkg -i date-time*.deb |
Re: date-time-syncronizer
My first post is the output of the commands you suppose.
Can advance clock plugin cause the error. |
Re: date-time-syncronizer
Quote:
dpkg -i i will see dpkg -i etc etc.. U posted half output code ;) i can't resolve it if you don't post what im asking for. Paste all the code from root to the end of the error output code. ;) I don't have troubles with the advanced clock plugin. |
Re: date-time-syncronizer
Excuse me, here is the full log.
~ $ root BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. Nokia-N900:~# apt-get install wget openntpd Reading package lists... Done Building dependency tree Reading state information... Done wget is already the newest version. openntpd is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up date-time-syncronizer (1.0) ... dpkg: error processing date-time-syncronizer (--configure): subprocess post-installation script returned error exit status 141 Errors were encountered while processing: date-time-syncronizer E: Sub-process /usr/bin/dpkg returned an error code (1) Nokia-N900:~# cd /home/user/ Nokia-N900:/home/user# cd /home/user/MyDocs/ Nokia-N900:/home/user/MyDocs# dpkg -i time-sync-English.deb (Reading database ... 31297 files and directories currently installed.) Preparing to replace date-time-syncronizer 1.0 (using time-sync-English.deb) ... Unpacking replacement date-time-syncronizer ... Setting up date-time-syncronizer (1.0) ... dpkg: error processing date-time-syncronizer (--install): subprocess post-installation script returned error exit status 141 Errors were encountered while processing: date-time-syncronizer Also open with the application manager gives an error. |
Re: date-time-syncronizer
Quote:
one more thing: can u see the link in the menu? if yes, can u try to run it ? try also with dpkg --configure -a |
Re: date-time-syncronizer
I tries both:
The link gives the error: Can't update 'date time synchronizer' Also when I open the .deb file he shows that the file is 0 kb This is the output of the italian: BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+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-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. Nokia-N900:~# apt-get update Hit http://repository.maemo.org fremantle-1.3 Release.gpg Ign http://repository.maemo.org fremantle-1.3/free Translation-nl Ign http://repository.maemo.org fremantle-1.3/non-free Translation-nl Hit http://repository.maemo.org fremantle Release.gpg Hit https://downloads.maemo.nokia.com ./ Release.gpg Ign http://repository.maemo.org fremantle/free Translation-nl Ign http://repository.maemo.org fremantle/non-free Translation-nl Hit http://repository.maemo.org fremantle Release.gpg Ign http://repository.maemo.org fremantle/free Translation-nl Ign http://repository.maemo.org fremantle/non-free Translation-nl Hit http://repository.maemo.org fremantle Release.gpg Ign http://repository.maemo.org fremantle/free Translation-nl Ign https://downloads.maemo.nokia.com ./ Translation-nl Ign http://repository.maemo.org fremantle/non-free Translation-nl Hit http://repository.maemo.org fremantle-1.3 Release Hit https://downloads.maemo.nokia.com ./ Release.gpg Hit http://repository.maemo.org fremantle Release Hit http://repository.maemo.org fremantle Release Hit http://repository.maemo.org fremantle Release Ign https://downloads.maemo.nokia.com ./ Translation-nl Ign http://repository.maemo.org fremantle-1.3/free Packages/DiffIndex Hit https://downloads.maemo.nokia.com ./ Release.gpg Ign http://repository.maemo.org fremantle-1.3/non-free Packages/DiffIndex Ign http://repository.maemo.org fremantle/free Packages/DiffIndex Ign http://repository.maemo.org fremantle/non-free Packages/DiffIndex Ign http://repository.maemo.org fremantle/free Packages/DiffIndex Ign http://repository.maemo.org fremantle/non-free Packages/DiffIndex Hit http://repository.maemo.org fremantle-1.3/free Packages Hit http://repository.maemo.org fremantle-1.3/non-free Packages Ign https://downloads.maemo.nokia.com ./ Translation-nl Hit http://repository.maemo.org fremantle/free Packages Hit http://repository.maemo.org fremantle/non-free Packages Hit https://downloads.maemo.nokia.com ./ Release Hit http://repository.maemo.org fremantle/free Packages Hit https://downloads.maemo.nokia.com ./ Release Hit https://downloads.maemo.nokia.com ./ Release Hit http://repository.maemo.org fremantle/non-free Packages Ign http://repository.maemo.org fremantle/free Packages/DiffIndex Ign http://repository.maemo.org fremantle/non-free Packages/DiffIndex Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex Hit http://repository.maemo.org fremantle/free Packages Hit http://repository.maemo.org fremantle/non-free Packages Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex Hit https://downloads.maemo.nokia.com ./ Packages Hit https://downloads.maemo.nokia.com ./ Packages Hit https://downloads.maemo.nokia.com ./ Packages Reading package lists... Done Nokia-N900:~# apt-get install wget openntpd Reading package lists... Done Building dependency tree Reading state information... Done wget is already the newest version. openntpd is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up date-time-syncronizer (1.0) ... dpkg: error processing date-time-syncronizer (--configure): subprocess post-installation script returned error exit status 141 Errors were encountered while processing: date-time-syncronizer E: Sub-process /usr/bin/dpkg returned an error code (1) Nokia-N900:~# cd /home/user/MyDocs Nokia-N900:/home/user/MyDocs# dpkg -i time-sync-italian.deb (Reading database ... 31297 files and directories currently installed.) Preparing to replace date-time-syncronizer 1.0 (using time-sync-italian.deb) ... Unpacking replacement date-time-syncronizer ... Setting up date-time-syncronizer (1.0) ... dpkg: error processing date-time-syncronizer (--install): subprocess post-installation script returned error exit status 141 Errors were encountered while processing: date-time-syncronizer Nokia-N900:/home/user/MyDocs# dpkg --configure -a Setting up date-time-syncronizer (1.0) ... dpkg: error processing date-time-syncronizer (--configure): subprocess post-installation script returned error exit status 141 Errors were encountered while processing: date-time-syncronizer Nokia-N900:/home/user/MyDocs# |
All times are GMT. The time now is 08:29. |
vBulletin® Version 3.8.8