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)

nonsuch 2020-01-24 07:43

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by rasmarc (Post 1564689)
"skipSystemCheck = True/False" is not available from the GUI. When true the widget checks if "respawn" is active for sshd. If so you get asked to confirm deactivating it.

I think I got a dialog asking about that the first time I started the widget.
The content of /etc/event.d/sshd:
Code:

#start on stopped rcS

console output

#respawn

pre-start script
    if [ ! -d /var/run/sshd ] ; then
        mkdir /var/run/sshd
        chmod 755 /var/run/sshd
    fi
end script

exec /usr/sbin/sshd -D

I think that's as should be (does not autostart or respawn).

Quote:

Does the widget start properly when you enable tracking from the GUI?
That brings me back to the empty button as shown in the screenshot.
'pidof sshd' returns nothing initially and nothing when the button is pressed.
HOWEVER:
The phone was set up to NOT automatically connect to WiFi networks.
After I changed it to automatic and rebooted, the widget looks and works as it should.
I am a little confused about the tracking functionality - what does it track exactly?


Quote:

- :confused:
- :confused:
- for syncing calendars and contacts I used "syncevolution"
Thanks for that, will look at syncevolution.
It seems that Modest Email works OK after all.

nonsuch 2020-01-25 05:56

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by nonsuch (Post 1564697)
That brings me back to the empty button as shown in the screenshot.
'pidof sshd' returns nothing initially and nothing when the button is pressed.
HOWEVER:
The phone was set up to NOT automatically connect to WiFi networks.
After I changed it to automatic and rebooted, the widget looks and works as it should.
I am a little confused about the tracking functionality - what does it track exactly?

So I made the WiFi connect automatically, and enabled Tracking in OSW, and it was all good until another reboot today - empty button again.
The only thing that I can think of that's different is that the battery was almost empty (5%).
Disabled Tracking, connected charger, rebooted - works again. :confused:

rasmarc 2020-01-25 21:34

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by nonsuch (Post 1564738)
So I made the WiFi connect automatically, and enabled Tracking in OSW, and it was all good until another reboot today - empty button again.
The only thing that I can think of that's different is that the battery was almost empty (5%).
Disabled Tracking, connected charger, rebooted - works again. :confused:

The reason is found in the output of netstat, which in case of no active network after booting gives some additional information about IP6 stuff. And that additional output is not compatible with the code at the moment.

What solves this in the meantime - on my device - is activating "Run server at system startup" and after booting stop sshd using the widgets button.

That lets the widget run with tracking enabled which gives information about active connections (hopefully on your device as well).

nonsuch 2020-01-26 09:35

Re: [Announce] OpenSSH status widget
 
So the tracking feature is there to track active connections, not the status of the sshd itself?
If that doesn't work, will it still switch sshd off after some time of inactivity?

rasmarc 2020-01-26 14:33

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by nonsuch (Post 1564758)
So the tracking feature is there to track active connections, not the status of the sshd itself?

Both are tracked. The widget shows the actual status of sshd with a maximum delay of 5 seconds.

Quote:

If that doesn't work, will it still switch sshd off after some time of inactivity?
No, that feature requires tracking (see greyed out options in the configuration app). I can only suggest to try "Run server at system startup" and "Stop server when not connected, Wait: 1 minute" until the bug is fixed.

rasmarc 2020-01-26 20:23

Re: [Announce] OpenSSH status widget
 
Update is uploaded to extras-devel.

Changelog for v2.2-11:
* bugfix: app crashed when no network connections active at all
* bugfix: wifipm did not switch off automatically (without tapping the button)

Changelog for v2.2-12:
* bugfix: typo in sudoers


@nonsuch you may reset skipSystemCheck to False in your config file

nonsuch 2020-01-27 06:11

Re: [Announce] OpenSSH status widget
 
Thanks! Everything works fine with default settings now.


All times are GMT. The time now is 10:31.

vBulletin® Version 3.8.8