Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Announce] OpenSSH status widget

    Reply
    Page 12 of 12 | Prev | 2   10     11   12 |
    nonsuch | # 111 | 2020-01-24, 07:43 | Report

    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).

    Originally Posted by
    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?


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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to nonsuch For This Useful Post:
    rasmarc

     
    nonsuch | # 112 | 2020-01-25, 05:56 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to nonsuch For This Useful Post:
    rasmarc

     
    rasmarc | # 113 | 2020-01-25, 21:34 | Report

    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).

    Edit | Forward | Quote | Quick Reply | Thanks

     
    nonsuch | # 114 | 2020-01-26, 09:35 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to nonsuch For This Useful Post:
    rasmarc

     
    rasmarc | # 115 | 2020-01-26, 14:33 | Report

    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.

    Originally Posted by
    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rasmarc | # 116 | 2020-01-26, 20:23 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    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

     
    nonsuch | # 117 | 2020-01-27, 06:11 | Report

    Thanks! Everything works fine with default settings now.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to nonsuch For This Useful Post:
    rasmarc

     
    Page 12 of 12 | Prev | 2   10     11   12 |
vBulletin® Version 3.8.8
Normal Logout