![]() |
Re: [Announce] OpenSSH status widget
Quote:
If so, an exclusion can be added not to ask for a password for the relevant commands (i never did this before, will have to try). And if that works an option in the configuration dialog would be useful. Edit: I was wrong here - the opposite is true. Sudser let's you execute sudo without a password. I'll have a look on how to execute the relevant commands without a password. |
Re: [Announce] OpenSSH status widget
Quote:
Nice that it works now. :cool: |
Re: [Announce] OpenSSH status widget
v1.2-1 is uploaded!
Main change: the sudo password issue is solved. I put all sudo commands in an extra shell script and added an entry in the sudoers.d directory. @handaxe: This could work for you. I uninstalled Sudser, which made sudo ask me for a password and the widget not switch anymore, just as you reported. This new version works properly again on my device. Changes: *bugfix: typo led to empty button on fresh install *enabled sudo commands without password |
Re: [Announce] OpenSSH status widget
Quote:
Ok, if I run Code:
/usr/sbin/openssh-status.sg start_sshd |
Re: [Announce] OpenSSH status widget
Quote:
I guess you mean the button appears in the status menu but it won't start/stop the server. Maybe your device doesn't update the sudoer's list. You can try as root: Code:
/usr/sbin/update-sudoers 1. Start the configuration dialog 2. Switch "Run server at system startup" 3. Switch one of the widget's options 3. Close and re-open the configuration dialog Did it save any configuration? |
Re: [Announce] OpenSSH status widget
Quote:
Now, having set it, it sticks, and then the widget works as advertised. Brilliant & thanks. |
Re: [Announce] OpenSSH status widget
Strange, but after some time, the app indicator "forgets" that the server is enabled. Pressing the drop-drown generates an "already running, updating screen" (or words to that effect) message and the indicator reappears.
Is this "sleep" related? |
Re: [Announce] OpenSSH status widget
Quote:
Code:
ps aux | grep -c usr/sbin/sshd Anyway, when "Stop tracking status when off" is enabled (you do have it enabled?) the widget immediately stops tracking as soon as status OFF is recognized. To handle those occasional short intervals correctly, when the sshd daemon seems non-listed in the process list, a time-out needs to be added before tracking stops. |
Re: [Announce] OpenSSH status widget
Quote:
Even when the server is turned off, every once in a while the 'SSH' icon appears in the top tray-icon area (right of the clock) very briefly. It usually happens when I (dis)connect from a internet connection, or update my repositories. It even happens when "Stop tracking status when off" is enabled. Do you have any idea why this might happen? |
Re: [Announce] OpenSSH status widget
Quote:
The timeout for switching the display to off is now added. For the moment I used the shortest time possible (just one more checking, that is 2 seconds) not to delay updating the display to OFF too much. This affects only one situation, when the server is waiting for 1 connection to close (and when the server is stopped externally of course). v1.2-2 is uploaded. Changes: *added timeout to avoid mistaken status off *cosmetic change: message "display updated" |
All times are GMT. The time now is 15:23. |
vBulletin® Version 3.8.8