maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] SMScon (control your device with SMS) (https://talk.maemo.org/showthread.php?t=60729)

yablacky 2011-12-24 11:51

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by Estel (Post 1141370)
...
Think a while - what is use for "keyboard opened" message, if it is sent every time smscon is running? Even using email only, we don't want to be flooded by such messages, until we need it (due to N900 being stolen or lost).

Same apply for other checkboxes under General -> Reply message - we may want to know about battery state, but not until our SIM was replaced by unauthorized one, or we ask by SMSCON message! etc...

/Estel

Yes, notifications about keyboard slider moves and battery charge should not be send unconditionally. This might currently be the reason when most users decide to turn these notifications off.

In my opinion checking an extra condition (on SIM change detection, on receiving any command, ...) would make things even more complicated than they are.

What about a straight forward solution to have COM_ENABLE/COM_DISABLE commands that allow to modify settings remotely. So its explicitly up to the regular owner when he/she begins being interested in getting notifications about what happened with the phone.

This would be analogous to the GPS location/tracking feature which also requires explicit command to make the phone sending notifications and when to stop.

yablacky 2011-12-24 11:58

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion (Post 1141380)
Please I have a problem with smscon 0.7-4 version and kernel 48, when I want choose other password, I have these message: "the new password hash could not be stored". Please I need your help.

Do not use blanks in the password. Blanks are first possible with smscon-editor 0.9

Saturn 2011-12-24 12:52

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by yablacky (Post 1141410)
Yes, notifications about keyboard slider moves and battery charge should not be send unconditionally. This might currently be the reason when most users decide to turn these notifications off.

In my opinion checking an extra condition (on SIM change detection, on receiving any command, ...) would make things even more complicated than they are.

What about a straight forward solution to have COM_ENABLE/COM_DISABLE commands that allow to modify settings remotely. So its explicitly up to the regular owner when he/she begins being interested in getting notifications about what happened with the phone.

This would be analogous to the GPS location/tracking feature which also requires explicit command to make the phone sending notifications and when to stop.

I agree with all, just would like to add that the original idea (by digitalvoid) is to have an application that is able to control the phone from distance.

Now, discussing further the proposals my opinion would be to:

- Remove completely the separate battery level messages. Include the state (i.e. charging/discharging) and value (i.e. % left) of the battery with any communication made. The idea is I would like to know if I have enough juice left to continue searching for the phone intensively or back off a little to allow longer period of activity. I don't need to know the battery level on 'normal' occasions.

- Remove completely the separate slider open/close messages. In the case I ask for a front cam picture take it and send it after a second from the next keyboard slide open. Then I would get more/better chances of a picture with a face included (normally when one opens the keyboard moves the phone close and directed to the face in order to type and watch the screen).

In the future, let's say in version 2.0 of SMSCON, I would like to see each action been executed in a separate thread/process. Then I could send a trackOn command and just after a front cam picture request. Each process will execute and return results when they complete.

As usual my opinions only and open for discussion.

emotion 2011-12-24 19:58

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by yablacky (Post 1141412)
Do not use blanks in the password. Blanks are first possible with smscon-editor 0.9

the problem is that now I have 2 passwords: one is 12345 and the other is my new password ¿how erase the 12345?

yablacky 2011-12-24 22:06

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion (Post 1141521)
the problem is that now I have 2 passwords: one is 12345 and the other is my new password ¿how erase the 12345?

Hmm, not sure that I understand what you mean having 2 passwords. Do you speak about two different applications/events/places where password is asked for? If yes, which ones?

If you mean how to replace the 1st password by the 2nd then the answer is: open SMSCON editor with 1st password. Then open the application-main-menu (the one located just left hand side of close button) and select "Change password". Enter the new password, click "Update". This "erases" the old password and replaces it by the new one.

To be on save side, in versions before 0.9 passwords should consist of only 0-9, a-z or A-Z, BUT NO punctuation chars nor blanks or quotes.

Let me know if you if you got it working now.

... and merry christmas!

emotion 2011-12-25 09:11

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by yablacky (Post 1141537)
Hmm, not sure that I understand what you mean having 2 passwords. Do you speak about two different applications/events/places where password is asked for? If yes, which ones?

If you mean how to replace the 1st password by the 2nd then the answer is: open SMSCON editor with 1st password. Then open the application-main-menu (the one located just left hand side of close button) and select "Change password". Enter the new password, click "Update". This "erases" the old password and replaces it by the new one.

To be on save side, in versions before 0.9 passwords should consist of only 0-9, a-z or A-Z, BUT NO punctuation chars nor blanks or quotes.

Let me know if you if you got it working now.

... and merry christmas!

Hello yablacky Merry Christmas too. Thank you for your quick response. My problem began when I activated the repositories development and download the latest version of smscon, this overwrote the version smscon extras. But when I decided to revert to version 0.7 and had refilled all the options, I decided to change the password again and wrote smscon I opened my new password ... So far so good, but my surprise was when I discovered that with the default password is also open the smscon 12345 how do I fix this? Please, I need help.

yablacky 2011-12-25 09:39

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion (Post 1141646)
... So far so good, but my surprise was when I discovered that with the default password is also open the smscon 12345 how do I fix this? Please, I need help.

Did you try to set an empty password? Don't do it. Empty password is converted to the default password which is 12345.

Why did you decide to go back to 0.7?

ade 2011-12-25 11:06

Re: [Announce] SMScon (control your device with SMS)
 
Since I got no response to http://talk.maemo.org/showpost.php?p...&postcount=893 I wanted to look in the code myself.
But the program itself is compiled python an there is no source code available. Perhaps it is because of security reasons, but it makes tracking problems not that easy. Is it possible to get some levels of debug logging available instead? Just the message "ERROR: Daemon smscon_daemon failed to start." in the log doesn't give me a clue...

yablacky 2011-12-25 11:38

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by ade (Post 1141663)
Since I got no response to http://talk.maemo.org/showpost.php?p...&postcount=893 I wanted to look in the code myself.
But the program itself is compiled python an there is no source code available. Perhaps it is because of security reasons, but it makes tracking problems not that easy. Is it possible to get some levels of debug logging available instead? Just the message "ERROR: Daemon smscon_daemon failed to start." in the log doesn't give me a clue...

Sorry, we try so solve your problem now. You might look into the source code as well, its open source. But I guess, the source alone does not bring us further here.

First, let me know which version you are using. In xterm please enter
Code:

$ sudo smscon -version
and let me know the output.

ade 2011-12-25 12:11

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by yablacky (Post 1141674)
Sorry, we try so solve your problem now. You might look into the source code as well, its open source. But I guess, the source alone does not bring us further here.

First, let me know which version you are using. In xterm please enter
Code:

$ sudo smscon -version
and let me know the output.

So the source code is available? In the garage, I only saw the deb files (and no tar.gz source).

My installed version is: 0.9.6

yablacky 2011-12-25 12:48

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by ade (Post 1141678)
So the source code is available? In the garage, I only saw the deb files (and no tar.gz source).

My installed version is: 0.9.6

OK, please in xterm enter following (as normal user):
Code:

$ smscon -stop
    ##expected output is like:
    INFO: Daemon smscon_daemon stopped [PID=6152].
    INFO: Script smscon_script was not running.

$ smscon -stop
    ##expected output is like:
    INFO: Daemon smscon_daemon was not running.
    INFO: Script smscon_script was not running.

$ smscon -start
    ##expected output is like:
    INFO: Daemon smscon_daemon requested to start.
    INFO: Daemon smscon_daemon started [PID=7774].

    #in the above case all should be well. But if output is different
    ##  and has error message - and in your case it probably has -
    ## then enter:

$ ps > ps.txt

  ## Please post the ps.txt file here.



Since we manage source in repository, we've been lazy in uploading packages to garage, sorry. Source for 0.9.6 can be found here: http://maemo.org/packages/source/vie...mscon/0.9.6-2/

Saturn 2011-12-25 13:05

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by ade (Post 1141663)
Since I got no response to http://talk.maemo.org/showpost.php?p...&postcount=893 I wanted to look in the code myself.
But the program itself is compiled python an there is no source code available. Perhaps it is because of security reasons, but it makes tracking problems not that easy. Is it possible to get some levels of debug logging available instead? Just the message "ERROR: Daemon smscon_daemon failed to start." in the log doesn't give me a clue...

Just wanted to add

- The code is delivered in human readable/normal python format and is being compiled during installation. So extracting the deb files will give the full code.

- The tar files you can find them (similar case for all of the free distribution packages) in http://maemo.org/packages/view/smscon/

- The SVN in Garage is set to open/anonymous access.

I hope it is clear the source code has always been open and available.


Merry Christmas to all

ade 2011-12-25 13:28

Re: [Announce] SMScon (control your device with SMS)
 
[QUOTE=yablacky;1141687]OK, please in xterm enter following (as normal user):
Code:

$ smscon -stop
    ##expected output is like:
    INFO: Daemon smscon_daemon stopped [PID=6152].
    INFO: Script smscon_script was not running.

$ smscon -stop
    ##expected output is like:
    INFO: Daemon smscon_daemon was not running.
    INFO: Script smscon_script was not running.

$ smscon -start
    ##expected output is like:
    INFO: Daemon smscon_daemon requested to start.
    INFO: Daemon smscon_daemon started [PID=7774].

    #in the above case all should be well. But if output is different
    ##  and has error message - and in your case it probably has -
    ## then enter:

$ ps > ps.txt

  ## Please post the ps.txt file here.

output:
Code:

user:~# smscon -stop
INFO: Daemon smscon_daemon was not running.
INFO: Script smscon_script was not running.
user:~# smscon -start
INFO: Daemon smscon_daemon requested to start.
ERROR: Daemon smscon_daemon failed to start.

I already added the relevant process list in http://talk.maemo.org/showpost.php?p...&postcount=898

Thanks for the link to the code, maybe it gives me a clue.

Saturn 2011-12-25 13:51

Re: [Announce] SMScon (control your device with SMS)
 
@ade,

Do you have a SIM card in?

And why you don't post your log?

ade 2011-12-25 14:08

Re: [Announce] SMScon (control your device with SMS)
 
I do have a simcard inserted.

The log does not provide much extra information:
Code:

2011-12-25 14:39:29[DAEMON] INFO: (EMAIL) Mailserver connection closed successful.
2011-12-25 14:39:30[DAEMON] INFO: Phone battery charge is 70%, discharging.
2011-12-25 14:39:30[DAEMON] INFO: Keyboard slider change detection is off.
2011-12-25 14:39:30[DAEMON] INFO: Battery status change detection is off.
2011-12-25 14:39:30[DAEMON] INFO: (CHECKHOST) Checkhost is off.
2011-12-25 14:39:32[SMSCON] INFO: Daemon smscon_daemon was not running.
2011-12-25 14:39:33[SMSCON] INFO: Script smscon_script was not running.
2011-12-25 14:43:11[SMSCON] INFO: Daemon smscon_daemon was not running.
2011-12-25 14:43:11[SMSCON] INFO: Script smscon_script was not running.
2011-12-25 14:47:59[SMSCON] INFO: Daemon smscon_daemon requested to start.
2011-12-25 14:48:00[DAEMON] CRITICAL: smscon_daemon is starting.
2011-12-25 14:48:00[SMSCON] ERROR: Daemon smscon_daemon failed to start.
2011-12-25 14:48:00[DAEMON] INFO: Successfully loaded "/opt/smscon/smscon_config" file.
2011-12-25 14:48:00[DAEMON] INFO: Found 1 IMSI code(s) in "/opt/smscon/smscon_code" file.
2011-12-25 14:48:00[DAEMON] INFO: Authorized IMSI code found.
2011-12-25 14:48:01[DAEMON] WARNING: smscon does not auto-load at boot.

Looking at the code gives me the impression it cannot determine the pids (pidof) correctly, because it starts a daemon, but cannot see it afterwards.

yablacky 2011-12-25 14:09

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by ade (Post 1141699)
output:
Code:

user:~# smscon -stop
INFO: Daemon smscon_daemon was not running.
INFO: Script smscon_script was not running.
user:~# smscon -start
INFO: Daemon smscon_daemon requested to start.
ERROR: Daemon smscon_daemon failed to start.

I already added the relevant process list in http://talk.maemo.org/showpost.php?p...&postcount=898

Thanks for the link to the code, maybe it gives me a clue.

It seems that the error is not that the daemon did not start. The error is that something is wrong in detecting that the daemon got started. Because in the ps list you posted, it seems to be there, even more than once (which is ok but normally should not happen).

So we have to find out why the detection of specific processes in the process list does not work on your device.

Could you please do the following: check if ps shows a process like "python /opt/smscon/smscon_daemon". Then enter (as normal user)
Code:

$ pidof /opt/smscon/smscon_daemon
    ### expected empty result
    # then:
$ ps | grep -v grep | grep /opt/smscon/smscon_daemon
    ### expected something like
    7774 root    15684 S    python /opt/smscon/smscon_daemon

Should you get any other than the expected output please let me know exactly which output you got.

yablacky 2011-12-25 14:12

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by ade (Post 1141708)
... Looking at the code gives me the impression it cannot determine the pids (pidof) correctly, because it starts a daemon, but cannot see it afterwards.

Yes, I had the same idea and that's why I asked for the ps list :) But see my last post.

ade 2011-12-25 14:29

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by yablacky (Post 1141710)
It seems that the error is not that the daemon did not start. The error is that something is wrong in detecting that the daemon got started. Because in the ps list you posted, it seems to be there, even more than once (which is ok but normally should not happen).

So we have to find out why the detection of specific processes in the process list does not work on your device.

Could you please do the following: check if ps shows a process like "python /opt/smscon/smscon_daemon". Then enter (as normal user)
Code:

$ pidof /opt/smscon/smscon_daemon
    ### expected empty result
    # then:
$ ps | grep -v grep | grep /opt/smscon/smscon_daemon
    ### expected something like
    7774 root    15684 S    python /opt/smscon/smscon_daemon

Should you get any other than the expected output please let me know exactly which output you got.

You are doing the "ps" diffently than I do. Maybe that is because you use an alias? A ps will only output your shell and ps itself.
When I add "-ef" to ps, I get:
Code:

root    17181    1  2 15:22 pts/1    00:00:00 python /opt/smscon/smscon_daemon
The pidof has indeed an empty result (because python itself is the process holder)

yablacky 2011-12-25 14:44

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by ade (Post 1141717)
You are doing the "ps" diffently than I do. Maybe that is because you use an alias? A ps will only output your shell and ps itself.
When I add "-ef" to ps, I get:
Code:

root    17181    1  2 15:22 pts/1    00:00:00 python /opt/smscon/smscon_daemon
The pidof has indeed an empty result (because python itself is the process holder)

Hey, ade, thank you, that'it! You have an extended "ps" on your machine. The standard ps is a symlink to busybox which does not care for options and always prints the full list.

Have fixed it for the next release.

ade 2011-12-25 14:53

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by yablacky (Post 1141721)
Hey, ade, thank you, that'it! You have an extended "ps" on your machine. The standard ps is a symlink to busybox which does not care for options and always prints the full list.

Have fixed it for the next release.

Good thinking yablacky!

I have installed bash and gnu tools, maybe that has overwritten the ps symlink, because I am not aware I have replaced ps for a non busybox one.

Merry Christmas for the remainer of the day :)

yablacky 2011-12-25 15:10

Re: [Announce] SMScon (control your device with SMS)
 
CHRISTMAS VERSION OF SMSCON AVAILABLE: 0.9.7

smscon 0.9.7-1 has been queued for loading into fremantle extras-devel repository

CHANGES:
  • FIX: Send battery status notification only if charge is below 10% AND discharging (not OR discharning). If devices can't tell change/discharge status; discharge is assumed.
  • FIX: Don't check for bootloader if in test mode.
  • FIX: Wrong error message that daemon did not start on devices with extended "ps" command installed.

Enjoy it!

ade 2011-12-25 16:16

Re: [Announce] SMScon (control your device with SMS)
 
No more error messages for me, thanks.

Just one minor thing: the pid now has the value if "root" instead of the pid number itself (INFO: Daemon smscon_daemon started [PID=root].). That must be because the busybox and gnu ps have a different order in output. No showstopper whatsover, just a cosmetic thing.

Ehh, correction, it also influences the stop of smscon:
Code:

user:~# smscon -stop
sh: invalid number 'root'
INFO: Daemon smscon_daemon stopped [PID=root].
INFO: Script smscon_script was not running.


yablacky 2011-12-25 16:36

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by ade (Post 1141746)
... just a cosmetic thing....

No, thank you for the report, it is not just cosmetic because the pid is used to send signals to process. Have to fix it.

Estel 2011-12-25 17:43

Re: [Announce] SMScon (control your device with SMS)
 
yablacky and Saturn - thanks for Your quick responses! I generally agree with all ideas You both have written, so just some highlights:

Quote:

Originally Posted by yablacky (Post 1141410)
What about a straight forward solution to have COM_ENABLE/COM_DISABLE commands that allow to modify settings remotely. So its explicitly up to the regular owner when he/she begins being interested in getting notifications about what happened with the phone.

This would be analogous to the GPS location/tracking feature which also requires explicit command to make the phone sending notifications and when to stop.

Ideal solution IMO. Especially, connected with Saturn's "photo hunting" (making photo after keyboard is opened). BTW, about the latter - would it be possible, to set burst (3-4) auto-photos, triggered on keyboard open, instead of 1? That would made our chances - to get proper face images - close to 100%. I think, that one photo could result in either blurry image (most people mechanically adjust screen angle, just after sliding keyboard open), or one took fraction of second too early (picturing pants or torso). With 4 images burst (considering, that our camera is quite slow at 'bursting', so 4 photos would take 1,5-2 seconds to complete), we're almost sure, to get at least one usable.

Quote:

Originally Posted by yablacky (Post 1141402)
In the log file you send (thanx!), the tests are logged twice with no reasonable amount of time in between, so you got 4 replies instead of 2 (where it should be 1 due to the superfluous "does not load at boot").

May be there is a bug that tests may be triggered unintentionally more than once too easily. Will do more investigation on it....

You're right, early in the logs, I've clicked "test" twice every time, but then, I had 8 messages total (instead of 2). On later part, I used it only once, and I got 4 messages. Considering, that "isn't loaded during boot" was unneeded, but proper, we can assume that every message was send twice, instead of once (per click). Indeed, I had two "not loaded during boot", and two "test message".

If we add it to my assumption (seems to be confirmed in logs), that program "think" first message sending failed, and immediately try to sending it again, we may have found reason.

In later part of posted log, You can find something, going like "sending message failed" and following it "trying to re-send message after 15 min", but both executed in 1-2 seconds interval. Also, I'm 100% sure, that every click on "test" resulted in message send and received properly, so there should be none indication of "sending message failed", yet there is in logs. It seems, that smscon send message properly, then, for unknown reason, think it failed, and try to re-send it - immediately, instead of 15 minutes later (ignoring 15 min interval, again for reasons unknown). Successful sending of second message is acknowledged by smscon properly, so no other attempts are made.

---

Just notified something - while e-mail account is encrypted in settings file properly, in smscon.log, it's written in plain text (if updating settings, where value of updated thing is also stored). Last time I posted log, I almost published it with my e-mail account data and password inside ;) I think it should be encrypted also, like in settings file (If it is possible), or at least people warned, to delete it from logs, after updating in settings. Let leave posting logs alone - it's just not very wise, to have e-mail account data and password written in plain text file, on '/opt/smscon/smscon.log'

yablacky, thanks for such extensive work on this wonderful program, and Saturn, thanks for implementing controlling new features in Editor so quickly. I'm glad You both weren't scarred by my wall-of-text report ;)

/Estel

emotion 2011-12-25 19:05

Re: [Announce] SMScon (control your device with SMS)
 
5 Attachment(s)
Quote:

Originally Posted by yablacky (Post 1141649)
Did you try to set an empty password? Don't do it. Empty password is converted to the default password which is 12345.

Why did you decide to go back to 0.7?

Hello, I decided download last version 0.9.7-1 but I have a different messages. After that, application finally disappears.
I have kernel 48.
Please I need your help.

yablacky 2011-12-26 09:59

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion (Post 1141770)
Hello, I decided download last version 0.9.7-1 but I have a different messages. After that, application finally disappears.
I have kernel 48.
Please I need your help.

Please, in xterm try this:
Code:

$ sudo smscon -version
    ## expected output is
    0.9.7
$ smscon -version
    ## expected output is
    0.9.7
$ ls -la /home/user/.smscon-editor
    ## expected output is
    drwxr-xr-x    2 user users  4096 Dec 25 16:28 .
    drwxr-xr-x  50 user users  4096 Dec 22 18:54 ..
    -rw-r--r--    1 user users  1962 Dec 25 16:28 smscon_config

Please tell me all the output of all above commands, no matter if it is expected output or not. Please do that even if you have success with following:

Code:

$ smscon -init!
    ## expected output is
    WARNING: Do not edit "smscon" directly. Use "/opt/smscon/smscon_config -set OPTION VALUE" instead!
    # (in above message "smscon" and "/opt/smscon...." is interchanged... - this got fixed in next version)
    WARNING: Forced to create new script file "/opt/smscon/smscon_script".
    WARNING: The initial script file "/opt/smscon/smscon_script" does yet nothing. Edit it directly!

Tell me output of above command.

yablacky 2011-12-26 10:58

Re: [Announce] SMScon (control your device with SMS)
 
NEW RELEASE OF SMSCON AVAILABLE SOON: 0.9.8-1

smscon 0.9.8-1 has been queued for loading into fremantle extras-devel repository

Changes:
  • FIX: Fixed problems with daemon process ids on devices with extended "ps" command installed.
    This bug might prevent power users from using smscon.
    So this fix is reason for early release of new version.
  • FIX: Fixed interchanged message parameters in smscon -init! command output.
  • ADD: Added usage hints to initial smscon_script file (minor change).

emotion 2011-12-26 20:25

Re: [Announce] SMScon (control your device with SMS)
 
1 Attachment(s)
Quote:

Originally Posted by yablacky (Post 1141973)
Please, in xterm try this:
Code:

$ sudo smscon -version
    ## expected output is
    0.9.7
$ smscon -version
    ## expected output is
    0.9.7
$ ls -la /home/user/.smscon-editor
    ## expected output is
    drwxr-xr-x    2 user users  4096 Dec 25 16:28 .
    drwxr-xr-x  50 user users  4096 Dec 22 18:54 ..
    -rw-r--r--    1 user users  1962 Dec 25 16:28 smscon_config

Please tell me all the output of all above commands, no matter if it is expected output or not. Please do that even if you have success with following:

Code:

$ smscon -init!
    ## expected output is
    WARNING: Do not edit "smscon" directly. Use "/opt/smscon/smscon_config -set OPTION VALUE" instead!
    # (in above message "smscon" and "/opt/smscon...." is interchanged... - this got fixed in next version)
    WARNING: Forced to create new script file "/opt/smscon/smscon_script".
    WARNING: The initial script file "/opt/smscon/smscon_script" does yet nothing. Edit it directly!

Tell me output of above command.

Hello. When I write en xterm, say that I need a password....

yablacky 2011-12-26 20:41

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion (Post 1142087)
Hello. When I write en xterm, say that I need a password....

Hi,
so that output means that the smscon application installation is broken (or might not be installed regularly et all?? :D ). An installation via application manager or dpkg would have make sure that a password is not asked from user.

So how to proceed in your case?

I recommend to de-install both, first smscon-editor then smscon via application manager. Then, when both apps are removed, enter xterm, become root and execute following commands:

Code:

rm -rf /opt/smscon
rm -rf /opt/smscon-editor
rm -rf /home/user/.smscon-editor

Then install smscon and then smscon-editor in this order via application manager from extras devel repository and start again!

This is rigorous but may bring you back on the the track!

Let me know your experience.

emotion 2011-12-26 22:20

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by yablacky (Post 1142090)
Hi,
so that output means that the smscon application installation is broken (or might not be installed regularly et all?? :D ). An installation via application manager or dpkg would have make sure that a password is not asked from user.

So how to proceed in your case?

I recommend to de-install both, first smscon-editor then smscon via application manager. Then, when both apps are removed, enter xterm, become root and execute following commands:

Code:

rm -rf /opt/smscon
rm -rf /opt/smscon-editor
rm -rf /home/user/.smscon-editor

Then install smscon and then smscon-editor in this order via application manager from extras devel repository and start again!

This is rigorous but may bring you back on the the track!

Let me know your experience.


Thanks for reply, I did exactly your advice, but my problem continue.... I have the same images of post 946 :(

yablacky 2011-12-26 22:39

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion (Post 1142111)
Thanks for reply, I did exactly your advice, but my problem continue.... I have the same images of post 946 :(

That's really strange. We have to be even more rigorous. But before, just for my knowledge, would you please do again (as normal user) a
Code:

$ sudo smscon -version
Is it still asking for password?

Then you might abort the story and follow the steps explained in post #905

emotion 2011-12-27 02:10

Re: [Announce] SMScon (control your device with SMS)
 
3 Attachment(s)
Quote:

Originally Posted by yablacky (Post 1142115)
That's really strange. We have to be even more rigorous. But before, just for my knowledge, would you please do again (as normal user) a
Code:

$ sudo smscon -version
Is it still asking for password?

Then you might abort the story and follow the steps explained in post #905


Hi. I had follow post #905 but with devel repositories and I have last version.
Now I see version, but when I change password, this is not change. Do you recommend a reflash?

yablacky 2011-12-27 08:01

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion (Post 1142165)
Hi. I had follow post #905 but with devel repositories and I have last version.
Now I see version, but when I change password, this is not change. Do you recommend a reflash?

No, reflash is almost never the solution.

When I look in the code, there is a small chance that just the error message "The new password could not be stored." is wrong and that indeed the new password was stored correctly. Can you confirm the new password is active?

Nevertheless I will fix that the error message could be wrong. So thank you for leading us to that potential problem.

What happens if executing this as normal user in xterm:
Code:

$ sudo /opt/smscon-editor/smsconEditorCreatePass "your_password_here" /opt/smscon-editor/smsconEditorPass

emotion 2011-12-27 18:44

Re: [Announce] SMScon (control your device with SMS)
 
1 Attachment(s)
Quote:

Originally Posted by yablacky (Post 1142220)
No, reflash is almost never the solution.

When I look in the code, there is a small chance that just the error message "The new password could not be stored." is wrong and that indeed the new password was stored correctly. Can you confirm the new password is active?

Nevertheless I will fix that the error message could be wrong. So thank you for leading us to that potential problem.

What happens if executing this as normal user in xterm:
Code:

$ sudo /opt/smscon-editor/smsconEditorCreatePass "your_password_here" /opt/smscon-editor/smsconEditorPass

Hello. The new password no is active and in xterm not work the code.
Only work with 12345 and each time that I do enter to smscon is the same that the first time :(
Please I need help.

Saturn 2011-12-27 20:32

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion (Post 1142446)
Hello. The new password no is active and in xterm not work the code.
Only work with 12345 :(
Please I need help.

Follow again the steps of #905
You have missed something or typed it wrongly.

Report any errors and output you will see while executing.
best is to copy/paste.

yablacky 2011-12-27 21:59

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion (Post 1142446)
... and in xterm not work the code.
...

Please, in such cases, we need the precise error messages that were output by the commands. Just "code does not work" is not enough information for us to help you. You're invited to try again ;) .

emotion 2011-12-28 01:27

Re: [Announce] SMScon (control your device with SMS)
 
2 Attachment(s)
Quote:

Originally Posted by Saturn (Post 1142473)
Follow again the steps of #905
You have missed something or typed it wrongly.

Report any errors and output you will see while executing.
best is to copy/paste.


Hi I followed instructions but after " 6. become root " I have a problem. Please see images. Also I can't open Ad. Aplications

Saturn 2011-12-28 01:42

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion (Post 1142539)
Hi I followed instructions but after " 6. become root " I have a problem. Please see images. Also I can't open Ad. Aplications

Did you copy/paste the commands or you typed them yourself?

emotion 2011-12-28 02:45

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by Saturn (Post 1142542)
Did you copy/paste the commands or you typed them yourself?

I typed one for one. Is there any solution? Please help me.

yablacky 2011-12-28 09:17

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by emotion
... sudo: /etc/sudoers is zero length ...

The sudo-command on your phone seems to be broken. This is probably be the reason for a lot of problems you might have to operate your phone.

To correct this "by hand", you need to become root. I guess you tried gainroot and as this didn't work, you tried to reinstall gainroot with the appmanager and this doesn't work either.

If it happened like this I tend to say you need to get a fresh operating system on your phone ("reflash"). But this SMScon discussion is not the right thread to help you doing this. And in any case its on your own risk.

If you have a backup then you might consider to install it (and I hope this is possible with broken sudo....). I'm sorry.

PS: If you ever managed to become root without reflash, and the /etc/sudoers file is stil empty. Tell me. I can provide you a /etc/sudoers file that could work


All times are GMT. The time now is 05:55.

vBulletin® Version 3.8.8