Notices


Reply
Thread Tools
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#221
Originally Posted by knypek3 View Post
still mailfrom is xxx
Sorry the previous short-term solution has been removed accidentally when we where auditing the code. Will be back in next version of the Editor.

Originally Posted by knypek3 View Post
hmn, how to stop sending smses about open/close keyboard? It is a command for this?
You can either do in the xterm: "smscon -stop" and then "smscon -start" or use the two buttons Stop/Start in the Init tab of the Editor application.
 
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#222
Originally Posted by Saturn View Post
Could you sent/post the output files of these commands:
Code:
dpkg -l python* > /home/user/MyDocs/output1.txt
apt-get -s upgrade >  /home/user/MyDocs/output2.txt
might be a dependency problem or similar.
After you turn on this morning now if Smscon-Editor appears.

But typing "dpkg - configure-a", continues to error.

These are the catch pedistes me:

output2.txt

Reading package lists...
Building dependency tree...
Reading state information...
The following packages have been kept back:
libpyside0.4 libsdl-mixer1.2 perl-base pyside-qt4-core pyside-qt4-gui
pyside-qt4-maemo5
The following packages will be upgraded:
advanced-power-common libhildon-extras1
2 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
Inst libhildon-extras1 [0.9.4] (0.9.5 Extras-devel:2.0/fremantle)
Inst advanced-power-common [0.4.3-3] (0.4.3-5 Extras-devel:2.0/fremantle)
Conf smscon-editor (0.4.4-9 Extras-testing:2.0/fremantle, Extras-devel:2.0/fremantle)
Conf libhildon-extras1 (0.9.5 Extras-devel:2.0/fremantle)
Conf advanced-power-common (0.4.3-5 Extras-devel:2.0/fremantle)
 
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#223
output1.txt

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==================================================
ii python 2.5.2-3maemo4 An interactive high-level object-oriented language (default version)
un python-4suite <none> (no description available)
ii python-alarm 0.1-0maemo3 Python bindings for libalarm library
ii python-all 2.5.2-3maemo4 Package depending on all supported Python runtime versions
un python-apt <none> (no description available)
un python-base <none> (no description available)
un python-bz2 <none> (no description available)
ii python-cairo 1.4.12-1.2maemo2 Python bindings for the Cairo vector graphics library
ii python-central 0.6.11.1maemo2 register and build utility for Python packages
un python-chardet <none> (no description available)
ii python-conic 0.1-6 Python bindings for Internet Connectivity library
ii python-crypto 2.0.1+dfsg1-4maemo0 cryptographic algorithms and protocols for Python
un python-crypto-dbg <none> (no description available)
un python-csv <none> (no description available)
un python-ctypes <none> (no description available)
ii python-dbus 0.83.0-1maemo3 simple interprocess messaging system (Python interface)
un python-dbus-dbg <none> (no description available)
un python-dbus-doc <none> (no description available)
un python-doc <none> (no description available)
ii python-dropbox-client 1.0.0-1 Official Dropbox API client for Python. Packaged for maemo 5 by jonn
un python-email <none> (no description available)
ii python-feedparser 4.1-13maemo0 Universal Feed Parser for Python
ii python-gconf 2.26.1-1maemo1 Python bindings for the GConf configuration database system
un python-gdk-imlib <none> (no description available)
un python-glade <none> (no description available)
ii python-glade2 2.12.1-6maemo10 GTK+ bindings: Glade support
un python-gnome <none> (no description available)
un python-gnome2 <none> (no description available)
un python-gnome2-doc <none> (no description available)
ii python-gobject 2.16.1-1maemo2 Python bindings for the GObject library
un python-gobject-dbg <none> (no description available)
ii python-gst0.10 0.10.14-2maemo5 generic media-playing framework (Python bindings)
un python-gst0.10-dbg <none> (no description available)
un python-gtk <none> (no description available)
un python-gtk-1.2 <none> (no description available)
ii python-gtk2 2.12.1-6maemo10 Python bindings for the GTK+ widget set
un python-gtk2-doc <none> (no description available)
ii python-hildon 0.9.0-1maemo17 Python bindings for Hildon Framework.
ii python-hildondesktop 0.1.0-1maemo3 Python bindings for libhildondesktop
ii python-httplib2 0.4.0-0maemo1 A comprehensive HTTP client library written in python
ii python-imaging 1.1.6-3maemo2 Python Imaging Library
un python-imaging-dbg <none> (no description available)
un python-imaging-doc <none> (no description available)
un python-libxml2 <none> (no description available)
ii python-location 0.2-1 Python bindings for liblocation.
ii python-minimal 2.5.2-3maemo4 A minimal subset of the Python language (default version)
ii python-notify 0.1.1-2maemo1 Python bindings for libnotify
ii python-numeric 24.2-9maemo4 Numerical (matrix-oriented) Mathematics for Python
un python-numeric-dbg <none> (no description available)
un python-numeric-ext <none> (no description available)
un python-numeric-tutorial <none> (no description available)
ii python-oauth 1.0.1-1 Library for OAuth version 1.0a
ii python-osso 0.4-0maemo5 Python bindings for libosso library
un python-pil <none> (no description available)
un python-plistlib <none> (no description available)
ii python-poster 0.6.0-1 Streaming HTTP uploads and multipart/form-data encoding
un python-profiler <none> (no description available)
un python-qt4 <none> (no description available)
ii python-simplejson 2.0.9-1maemo1 Simple, fast, extensible JSON encoder/decoder for Python
ii python-support 1.0.6maemo1 automated rebuilding support for Python modules
un python-tk <none> (no description available)
un python-utidylib <none> (no description available)
un python-wsgiref <none> (no description available)
ii python-xml 0.8.4-10.1maemo4 XML tools for Python
un python-xml-dbg <none> (no description available)
un python-xml-doc <none> (no description available)
un python-xmlbase <none> (no description available)
un python2-numeric <none> (no description available)
un python2.1 <none> (no description available)
un python2.3 <none> (no description available)
un python2.3-cairo <none> (no description available)
un python2.3-crypto <none> (no description available)
un python2.3-glade2 <none> (no description available)
un python2.3-gst0.10 <none> (no description available)
un python2.3-gtk2 <none> (no description available)
un python2.3-imaging <none> (no description available)
un python2.3-numeric <none> (no description available)
un python2.3-xml <none> (no description available)
un python2.4-cairo <none> (no description available)
un python2.4-crypto <none> (no description available)
un python2.4-dbus <none> (no description available)
un python2.4-glade2 <none> (no description available)
un python2.4-gst0.10 <none> (no description available)
un python2.4-gtk2 <none> (no description available)
un python2.4-imaging <none> (no description available)
un python2.4-numeric <none> (no description available)
un python2.4-simplejson <none> (no description available)
un python2.4-xml <none> (no description available)
ii python2.5 2.5.4-1maemo6 An interactive high-level object-oriented language (version 2.5)
un python2.5-alarm <none> (no description available)
un python2.5-cairo <none> (no description available)
un python2.5-celementtree <none> (no description available)
un python2.5-cjkcodecs <none> (no description available)
un python2.5-conic <none> (no description available)
un python2.5-crypto <none> (no description available)
un python2.5-ctypes <none> (no description available)
un python2.5-dbus <none> (no description available)
un python2.5-dev <none> (no description available)
un python2.5-doc <none> (no description available)
un python2.5-elementtree <none> (no description available)
un python2.5-gconf <none> (no description available)
un python2.5-glade2 <none> (no description available)
un python2.5-gnome <none> (no description available)
un python2.5-gobject <none> (no description available)
un python2.5-gst0.10 <none> (no description available)
un python2.5-gstreamer <none> (no description available)
un python2.5-gtk2 <none> (no description available)
un python2.5-hildon <none> (no description available)
un python2.5-hildondesktop <none> (no description available)
un python2.5-imaging <none> (no description available)
un python2.5-location <none> (no description available)
ii python2.5-minimal 2.5.4-1maemo6 A minimal subset of the Python language (version 2.5)
un python2.5-notify <none> (no description available)
un python2.5-numeric <none> (no description available)
un python2.5-osso <none> (no description available)
un python2.5-plistlib <none> (no description available)
ii python2.5-polib 0.5.1-4 polib is a Python library for manipulating PO-files.
ii python2.5-qt4 4.7.5-maemo1 Complete Python binding set for Qt4 (PR1.2)
ii python2.5-qt4-common 4.7.5-maemo1 Shared files for PyQt4
ii python2.5-qt4-core 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-dbus 4.7.5-maemo1 Python bindings for Qt dbus mainloop.
ii python2.5-qt4-gl 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-gui 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-maemo5 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-multimedia 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-network 4.7.5-maemo1 Python bindings for Qt4 Core components.
un python2.5-qt4-opengl <none> (no description available)
ii python2.5-qt4-phonon 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-script 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-sql 4.7.5-maemo1 Python bindings for PyQt4's SQL module
ii python2.5-qt4-svg 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-test 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-webkit 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-xml 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-qt4-xmlpatterns 4.7.5-maemo1 Python bindings for Qt4 Core components.
ii python2.5-sip4 4.11-maemo0 Python/C++ bindings generator runtime library.
un python2.5-wsgiref <none> (no description available)
un python2.5-xml <none> (no description available)
 
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#224
Originally Posted by WhiteWolf View Post
output1.txt
...
Hi,

You have the newest development versions of PyQT. They are still in extras-devel and might have issues for the developers to check.

Don't know if this is the problem, but in any case I can't help you in debugging further as you have many devel versions and this goes out of my league.

If this was done by accident, I would propose to re-flash and try to stay away from devel as much as possible.
 
Posts: 62 | Thanked: 6 times | Joined on Jun 2010 @ Poland
#225
mailfrom, i edit with NANO
I don't test ssh, gps but i hope it working. I don't upgrade it. It must working...
__________________
Maemo Meego Maego!
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#226
Originally Posted by digitalvoid View Post
1) I think the password prefix idea is not necessary, because you can change all SMS commands to something cryptical *you* only know what it means & you don't obviously tell anybody. Also this password will be shown on Nokia screen when received (if phone is unlocked & Notification popup message is enabled).
Yes, but currently I need to change SMS commands in all 13 commands. In the future, with SirenOn and -Off it becomes 15. Remembering 15 hard to guess words is a root of disaster. When the phone is stolen and you google the SMScon commands in some web cafe, there is no use for the manual as you have changed names to Keltik+Latin-hybrid you do not remember anymore.

So now currently I just add the same cryptic prefix to every command and remember just that prefix. "mysecretpw_" to all 13 places.

As passwords is pretty much essential feature if you implement those SMScon commands to have parameters, why not just make that password easily changable? Otherwise anyone knowing someone has SMScon installed, can hack the idle phone sending SMS:
RemoteOn user/pass@myhaxor.machine.invalid:12345

Then becoming root by ssh'ing in.

In the future, if all SMScon commands are started with this password, maybe it is possible to hack so SMSs started with this configured password are not shown to the system and wrote to different place than normal SMS-messages when they arrive.
It will be very quick and not power consuming just to check start of the SMS-message for this one single string.
Initially to make programming easy, the password could be "SMScon" and not allow an empty password.

Last edited by zimon; 2010-09-19 at 13:54.
 
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#227
Originally Posted by Saturn View Post
Hi,

You have the newest development versions of PyQT. They are still in extras-devel and might have issues for the developers to check.

Don't know if this is the problem, but in any case I can't help you in debugging further as you have many devel versions and this goes out of my league.

If this was done by accident, I would propose to re-flash and try to stay away from devel as much as possible.
Also, thanks for your help.

In a few weeks I have thought clean everything, I'll try then.
 
Posts: 35 | Thanked: 20 times | Joined on Dec 2009
#228
Originally Posted by digitalvoid View Post
@ pigro & SaintGermain:

SMSCON uses the straight shell command interface for connecting with ssh.

Python ssh part in SMSCON:

Code:
(Output, ExitStatus) = pexpect.run( 'ssh -n -N -T -f -p %s -R %s:%s:%s %s@%s &' % (REMOTEPORT, LocalPort, LocalHost, REMOTEPORT, REMOTEUSER, REMOTEHOST), events = { '(?i)password':REMOTEPASSWORD + '\n', '(?i)(yes/no) ?':'yes' + '\n' }, withexitstatus = True )


SSH is started in background (in red) and when SSH ask for password it's automatically entered (green) and the connection has started if 'ExitStatus' returns 0). It's very basic done, I know, but It works.

If somebody has better code to implement in SMSCON please share it.
I just added "passphrase" to the regexp for making smscon compatible with 'public key authentication' (the password you provide in smscon_config will be processed as the passphrase to your private key):

Code:
(Output, ExitStatus) = pexpect.run( 'ssh -n -N -T -f -p %s -R %s:%s:%s %s@%s &' % (REMOTEPORT, LocalPort, LocalHost, REMOTEPORT, REMOTEUSER, REMOTEHOST), events = { '(?i)(password|passphrase)':REMOTEPASSWORD + '\n', '(?i)(yes/no) ?':'yes' + '\n' }, withexitstatus = True )
With that, I managed to make reverse-SSH works with public key authentication !

Here are some hints:
  1. smscon starts by checking the remote host status by pinging it: so check fist that you can also ping it (some GPRS provider are filtering 'ping' traffic). Maybe you can make it optional ?
  2. The private key to access your remote host has to be named id_rsa and have to put on your N900 in /root/.ssh directory with the proper rights (chmod 600 id_rsa). Maybe you can make it configurable ?
  3. The authorized keys to access your N900 has to be put in the file /root/.ssh/authorized_keys
  4. The remote host port and your N900 port has to be the same number (usually 22). Maybe you can split the REMOTEPORT in 2 ? REMOTEPORT and LOCALPORT ? Or better still, read the good local port number in /etc/ssh/sshd_config
  5. The openSSH server on your N900 has to be up and running. Maybe smscon can detect if the server is down and automatically start it ? I'm not sure about how to start openSSH if it has been deactivated at boot with /etc/ssh/sshd_not_to_be_run
  6. for debugging on your remote host if you are under linux, check /var/log/auth.log for authentication attempts/failures and use "netstat -taupe" to check current connections.

Other feedbacks in other post.
 

The Following 2 Users Say Thank You to SaintGermain For This Useful Post:
Posts: 35 | Thanked: 20 times | Joined on Dec 2009
#229
Here are a few other feedbacks:
  1. Maybe you can add an option to extend the available commands with user-defined commands ? The user will provide the path to its own Python library. That way you won't be bother each time someone comes with a new strange request...
  2. I was thinking that the SMS correctly interpreted by smscon should be silently deleted. The potential 'thief' could see a lot of information just by looking at the SMS received by Maemo notification (little yellow boxes). If not too stupid he could even use the 'Unlock' feature...
  3. It seems that when launching a 'Remoteon' command. An automatic connection to GPRS is made. But the 'Remoteoff' command doesn't close the connection. Smscon should memorize if it has opened a connection by itself and close it when it received the 'Remoteoff' command (otherwise potential battery drainage...).

Thanks again for this useful application !
 

The Following 2 Users Say Thank You to SaintGermain For This Useful Post:
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#230
Find the new version of the SMSCON Editor v. 0.4.4-11 in extras.
http://maemo.org/packages/view/smscon-editor/

Cumulative updates since previous version:
* Added tests for the GPS coordinates commands.
* Added tests for the phonecall and sms commands.
* Added information and warning boxes.
* Many visibility enhancement changes.
* Updated icon to be transparent.
* Added icon for the application manager.
* Made MailFrom = MailAddress as a temp solution until dedicated space is made for this field in the GUI.
* Added the About and Credits dialogs
* Added smscon in the dependencies.

Some more information and screenshots in the wiki page of SMSCON Editor (needs work still!)

Feel free to report issues.

Note: will demote from extras-testing the previous version and promote this one.
 

The Following User Says Thank You to Saturn For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 23:26.