Notices


Reply
Thread Tools
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#111
Originally Posted by rasmarc View Post
"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).

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?


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

The Following User Says Thank You to nonsuch For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#112
Originally Posted by nonsuch View Post
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.
 

The Following User Says Thank You to nonsuch For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#113
Originally Posted by nonsuch View Post
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.
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).
__________________
OpenSSH Status Widget (N900)
Start / stop / kill / restart / autostart server - View server status - View server and client connections - Switch wifi pm automatically

Simpler Brightness Applet (N900) - A variation of the Simple Brightness Applet
Short tap to toggle "keep backlight on" - Long tap to open display settings
 
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#114
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?
 

The Following User Says Thank You to nonsuch For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#115
Originally Posted by nonsuch View Post
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.

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.
__________________
OpenSSH Status Widget (N900)
Start / stop / kill / restart / autostart server - View server status - View server and client connections - Switch wifi pm automatically

Simpler Brightness Applet (N900) - A variation of the Simple Brightness Applet
Short tap to toggle "keep backlight on" - Long tap to open display settings
 
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#116
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
__________________
OpenSSH Status Widget (N900)
Start / stop / kill / restart / autostart server - View server status - View server and client connections - Switch wifi pm automatically

Simpler Brightness Applet (N900) - A variation of the Simple Brightness Applet
Short tap to toggle "keep backlight on" - Long tap to open display settings

Last edited by rasmarc; 2020-01-27 at 00:35. Reason: another bugfix
 

The Following User Says Thank You to rasmarc For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#117
Thanks! Everything works fine with default settings now.
 

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

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:14.