maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5] [Announce] OpenSSH status widget (https://talk.maemo.org/showthread.php?t=95429)

ThomasAH 2015-05-07 23:35

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by rasmarc (Post 1469667)
Does
Code:

/usr/lib/hildon-desktop/openssh-status-widget.py
give you any output on the terminal?

It does!

Code:

BusyBox v1.23.1 (Debian 1.23.1power2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled

BusyBox v1.23.1 (Debian 1.23.1power2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # /usr/lib/hildon-desktop/openssh-status-widget.py
 
process 1956: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some application using the D-Bus library.
process 1956: arguments to dbus_connection_set_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some application using the D-Bus library.
Aborted

I am running CSSU-testing, not thumb, might that be a problem?

rasmarc 2015-05-08 00:27

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by ThomasAH (Post 1469668)
It does!

[I am running CSSU-testing, not thumb, might that be a problem?

I cannot say much about that. You can try in a terminal (one line):

Code:

dbus-send --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:qwertz uint32:0 string:
Does this display a popup message?

If so (and if not also:D) try this one:

Code:

run-standalone.sh dbus-send --print-reply --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:qwertz uint32:0 string:dummy

handaxe 2015-05-08 08:26

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by rasmarc (Post 1469660)
The widget uses the same command ("sudo /etc/init.d/ssh start"). What about stopping the server by short pressing (that's "sudo /etc/init.d/ssh stop") and long pressing ("sudo killall sshd") the button? Does that work for you?

Ok, the issue is "sudo". My setup asks for a password.

ThomasAH 2015-05-08 09:19

Re: [Announce] OpenSSH status widget
 
I tried, and the outcome is interesting :)

As root, the first command fails and the second succeeds. However, when I tried them as a normal user (not root), both of them worked!

Here is the output:
Code:

BusyBox v1.23.1 (Debian 1.23.1power2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.23.1 (Debian 1.23.1power2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # dbus-send --dest=org.freedesktop.Notifications /
org/freedesktop/Notifications org.freedesktop.Notifications.S
ystemNoteDialog string:qwertz uint32:0 string:
Failed to open connection to "session" message bus: (null)

/home/user # run-standalone.sh dbus-send --print-reply --typ
e=method_call --dest=org.freedesktop.Notifications /org/free
desktop/Notifications org.freedesktop.Notifications.SystemNo
teDialog string:qwertz uint32:0 string:dummy
method return sender=:1.31 -> dest=:1.132 reply_serial=2
  uint32 12

/home/user # exit

~ $ dbus-send --dest=org.freedesktop.Notifications /org/free
desktop/Notifications org.freedesktop.Notifications.SystemNo
teDialog string:qwertz uint32:0 string:

~ $ run-standalone.sh dbus-send --print-reply --type=method_
call --dest=org.freedesktop.Notifications /org/freedesktop/N
otifications org.freedesktop.Notifications.SystemNoteDialog
string:qwertz uint32:0 string:dummy
method return sender=:1.31 -> dest=:1.134 reply_serial=2
  uint32 14

Hope this helps!

rasmarc 2015-05-08 10:03

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by ThomasAH (Post 1469686)
Hope this helps!

I've been on the wrong track. Please try again as user, not root:
Code:

/usr/lib/hildon-desktop/openssh-status-widget.py
Any output this time?

ThomasAH 2015-05-08 10:18

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by rasmarc (Post 1469688)
I've been on the wrong track. Please try again as user, not root:
Code:

/usr/lib/hildon-desktop/openssh-status-widget.py
Any output this time?

No output at all, not even a error message.

As user:
Code:

BusyBox v1.23.1 (Debian 1.23.1power2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ /usr/lib/hildon-desktop/openssh-status-widget.py
~ $


rasmarc 2015-05-08 11:47

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by ThomasAH (Post 1469689)
No output at all, not even a error message.

Have you started the configuration dialog once? It's in the application menu, called "OSW Options". Then please restart the status menu from the the configiguration dialog's main menu.

Still an empty button?

rasmarc 2015-05-08 11:51

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by handaxe (Post 1469684)
Ok, the issue is "sudo". My setup asks for a password.

Which packages have you installed? rootsh and Sudser?

handaxe 2015-05-08 12:12

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by rasmarc (Post 1469694)
Which packages have you installed? rootsh and Sudser?

rootsh....

Difficult to remember, but I probably set a root password (?)

ThomasAH 2015-05-08 12:15

Re: [Announce] OpenSSH status widget
 
3 Attachment(s)
Quote:

Originally Posted by rasmarc (Post 1469693)
Have you started the configuration dialog once? It's in the application menu, called "OSW Options". Then please restart the status menu from the the configiguration dialog's main menu.

That was it! :) I hadn't run the OSW Options configuration yet (I didn't know it existed). After configuring it I just rebooted the phone, now it's working! :D I tested it and it seems to work as expected (See attachments)

Perhaps you chould add a instruction to the first post that you should run the OSW Options configuration once before using it? I couldn't find anywhere that this was necessary.

Thanks a lot for all your help and patience, and for the status-widget of course! :)

PS.: I love the blowfish icon


All times are GMT. The time now is 07:50.

vBulletin® Version 3.8.8