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)

Saturn 2011-12-28 12:57

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

Originally Posted by emotion (Post 1142554)
I typed one for one. Is there any solution? Please help me.

I believe you miss-typed one of the last commands and instead of deleting the "/etc/sudoers.d/smscon.sudoers" you deleted "/etc/sudoers" or something like that.

This is major problem. To correct it, it is too much effort and most important requires an advanced expertise level in the operating system.

Similarly to what yablacky said above, I hope you have a recent backup. After the reflash, restore the backup. If this works then you will have many things back.

I suggest you search about putty/ssh and set this up. If you would like to mess with your device it is better to do it from a real keyboard/screen.

yablacky 2011-12-28 13:25

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

if you had ssh/sshd installed before trouble begins and you know your root password then you can try

Code:

$ ssh root@localhost

l_bratch 2011-12-28 15:21

Re: [Announce] SMScon (control your device with SMS)
 
Doing the following tests in SMSCON results an error being SMSed and emailed to me (and the tests do not actually work):

Email
Email with picture
Location
Track ON
Initiate SSH

Other tests (Call, SMS, Execute Script) work fine.

The error is always:

Code:

-fatal error-
smscon_daemon crashed.
need more than 3 values to unpack

Any ideas?

Thanks!

Edit:
All fixed now after doing something unknown. I had already tried re-setting SMSCON and rebooting the device which had not helped, but things are indeed now!

yablacky 2011-12-28 15:42

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

Originally Posted by l_bratch (Post 1142749)
The error is always:

Code:

-fatal error-
smscon_daemon crashed.
need more than 3 values to unpack

Any ideas?

Thanks!

Which version are you using?

l_bratch 2011-12-28 15:46

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

Originally Posted by yablacky (Post 1142755)
Which version are you using?

Sorry, 0.9.8.

fw190 2011-12-28 15:55

Re: [Announce] SMScon (control your device with SMS)
 
I've got a problem. While initialising it hangs. I cant make any tests and even when I reset the settings it keeps sending messages to my default number. How to debug/provide usefull info for you?

Saturn 2011-12-28 16:36

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

Originally Posted by ade (Post 1141725)
...

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.

...

Hi,

Could you please tell me which packages exactly you have installed?

The ps you have is not compatible with iDont's busybox power or the default one. The usual gnu tools they don't replace the default binaries.
Maybe you've added them yourself to $PATH?

We would like to revert the changes done to fix your case because they break SMSCON for those people with the busybox power installed.

Cheers

ade 2011-12-28 17:38

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

Originally Posted by Saturn (Post 1142777)
Hi,

Could you please tell me which packages exactly you have installed?

The ps you have is not compatible with iDont's busybox power or the default one. The usual gnu tools they don't replace the default binaries.
Maybe you've added them yourself to $PATH?

We would like to revert the changes done to fix your case because they break SMSCON for those people with the busybox power installed.

Cheers

Had a look at it. It comes from the package "procps". It is a 'standard' package in the debian world and can be found in the fremantle repo (http://maemo.org/packages/view/procps/)
It provides:
Code:

/bin/kill
/bin/ps
/etc/init.d/procps
/etc/sysctl.conf
/lib/libproc-3.2.7.so
/sbin/sysctl
/usr/bin/free
/usr/bin/pgrep
/usr/bin/pkill
/usr/bin/pmap
/usr/bin/pwdx
/usr/bin/skill
/usr/bin/slabtop
/usr/bin/snice
/usr/bin/tload
/usr/bin/top
/usr/bin/uptime
/usr/bin/vmstat
/usr/bin/w.procps
/usr/bin/watch

I think I installed it a long time ago because I needed vmstat, watch or some other tool. Didn't realize it also replaced ps.

But to be honest I got quite used to this ps. It offers me some parameters I regularly use (and it's compatible with my Linux desktop ps).

It's not always wise to rely on output of tools, because it can change on new releases I know from my own experience. But I also know it is hard to avoid a lot of times.

What is the dilemma you are facing? That there are two different outputs?
Couldn't that be solved by a construction like:
Code:

if /bin/ps = regular file then:
  # expect procps output
if /bin/ps = symlink to busybox then:
  # expect busybox output

Or are matters more complicated? I did not see the particular part of the code.

If it is too complicated, please remove the support for the procps ps tool. Then it is up to me to chose between smscon or procps ps. Now knowing why smscon behaved in that way is already a nice bonus :)

yablacky 2011-12-28 19:03

Re: [Announce] SMScon (control your device with SMS)
 
Hi all,
to fix the ps-problem the next version will call it this way:

$ busybox ps

This (only) assumes that busybox is (still) installed even when other packages set /bin/ps to what ever.

Can everybody readin this please confirm that above command displays PID in 1st column on his/her device?

ade 2011-12-28 19:18

Re: [Announce] SMScon (control your device with SMS)
 
That's an even better solution!

Running the latest busybox beta from iDont:
Code:

BusyBox v1.19.3 (Debian 1.19.3power3~envparser) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ busybox ps
  PID USER      VSZ STAT COMMAND
    1 root      1740 S    /sbin/init



All times are GMT. The time now is 12:04.

vBulletin® Version 3.8.8