- 15 Sep, 2025 30 commits
-
-
nextime authored
-
nextime authored
-
nextime authored
-
nextime authored
- Fix navbar brand link to point to dashboard home page - Add back button to terminal page for easy navigation to dashboard - Improve user experience with better navigation between pages - Maintain consistent navigation throughout the web interface
-
nextime authored
- Updated CHANGELOG.md with new features and fixes for v1.4.4 - Updated README.md with version 1.4.4 information and new features - Updated DOCUMENTATION.md with enhanced feature descriptions - Updated TODO.md to reflect completed tasks and new version - Updated Debian changelog files for both wsssh-server and wsssh-tools packages - Added comprehensive documentation for: * Dynamic terminal sizing and resize support * Force echo mode implementation * Enhanced logging with logrotate integration * Terminal dimension fixes and improvements * Backend API enhancements for terminal management
-
nextime authored
- Calculate terminal dimensions after initial fit to container - Store initial dimensions for use during connection - Use calculated dimensions for both startup and resize events - Ensure proper terminal sizing for applications like top - Handle browser window resize to update remote terminal dynamically
-
nextime authored
- Modify wssshd.py to run 'stty echo' before launching wsssh - Use shell command wrapper to execute stty echo && wsssh - Ensure echo mode is forced before SSH connection is established - Remove JavaScript-based stty echo attempts - Fix terminal echo issue by setting echo mode at the right time
-
nextime authored
- Remove JavaScript-based echo handling and password mode detection - Send all keystrokes directly to server without local echo manipulation - Let SSH server handle echo control through terminal protocol - Proper terminal behavior where server controls what gets displayed - No more manual echo logic, respects SSH server's echo settings
-
nextime authored
- Add passwordMode flag to detect password prompts from SSH server - Disable local echo when password prompts are detected (Password:, password:, etc.) - Re-enable echo after password is submitted (on Enter key or new prompt) - Reset passwordMode on disconnect for clean state - Maintain security by not displaying passwords in plain text - Preserve normal command echo for non-password input
-
nextime authored
- Add proper xterm.js configuration with disableStdin: false and other settings - Implement local echo handling for printable characters, backspace, and enter - Ensure terminal input is visible to user while maintaining server communication - Fix input handling to properly display typed commands in the web interface
-
nextime authored
- Update .terminal-container CSS to use calc(100vh - 200px) for responsive height - Remove fixed padding and height constraints - Add xterm-addon-fit for proper terminal resizing - Update terminal initialization to use fit addon for dynamic sizing - Ensure terminal fills entire container width and height - Add window resize event handler for responsive terminal sizing
-
nextime authored
- Add logging section to README.md with logrotate configuration details - Add comprehensive Logging Configuration section to DOCUMENTATION.md - Update CHANGELOG.md with version 1.4.4 entry for logging features - Update table of contents in DOCUMENTATION.md to include logging section Features documented: - Automatic log rotation with logrotate - Log file locations and management - Manual log management commands - Troubleshooting with logs - Log analysis techniques
-
nextime authored
Use start-stop-daemon --output option to properly redirect both stdout and stderr to /var/log/wssshd/wssshd.log while preserving correct PID storage in the PID file
-
nextime authored
- Add wssshd.log and wssshc.log to respective logrotate configurations - Modify init scripts to redirect stdout and stderr to log files - Ensure proper log rotation with weekly rotation, compression, and HUP signals
-
nextime authored
- Create PID file in start case with correct background process PID - Remove PID file creation from main() function to avoid empty files - Validate background process is running before reporting success - Clean up PID file if process fails to start - Fix both wssshd and wssshc watchdogs
-
nextime authored
- Capture PID of background main() process with MAIN_PID= - Store correct PID in watchdog PID file instead of main() function PID - Prevent PID file from containing exited process PID - Fix both wssshd and wssshc watchdogs - Watchdog PID file now contains PID of actual running process
-
nextime authored
- Separate PID file reading from process checking - Prevent command substitution failures in kill command - Add proper error handling for PID file operations - Fix false 'watchdog failed' reports due to bash syntax issues - Fixed both wssshd and wssshc init scripts
-
nextime authored
- Add detailed logging to main() monitoring loops - Track loop iterations and daemon status checks - Log sleep intervals and monitoring status - Help diagnose why watchdog exits prematurely - Fixed both wssshd and wssshc watchdogs
-
nextime authored
- Stop existing watchdog before starting new one - Use pgrep to detect running watchdog processes - Prevent 'watchdog already running' conflicts - Ensure clean watchdog startup in init scripts - Fixed both wssshd and wssshc init scripts
-
nextime authored
- Removed duplicate function definitions causing bash arithmetic errors - Kept the more complete check_restart_limits() function with awk timestamp parsing - Fixed both wssshd and wssshc watchdog scripts - Eliminates 'integer expression expected' errors
-
nextime authored
- Init scripts now start wssshd/wssshc daemons directly - Wait for daemons to be fully running before starting watchdog - Watchdog only monitors existing daemons, doesn't start them - Watchdog exits if daemon restart fails - Proper startup sequence: daemon → verify running → watchdog - Fixed both wssshd and wssshc init scripts and watchdogs
-
nextime authored
- Watchdog now waits 3 seconds after starting daemon before checking status - Prevents false detection of daemon failure during startup - Gives daemon time to fully initialize and create PID file - Fixed both wssshd and wssshc watchdogs - Improves reliability of daemon startup detection
-
nextime authored
- Use setsid to properly daemonize main() function - setsid bash -c 'main' & creates independent process group - Prevents main() from being killed when parent script exits - Fixed both wssshd and wssshc watchdogs - Watchdog processes should now persist correctly
-
nextime authored
- Watchdog now properly daemonizes by running main() in background - Removed complex PID file waiting logic that was causing issues - Simplified start case to just run main() and check for PID file - Fixed both wssshd and wssshc watchdogs - Watchdog processes should now persist after script exits
-
nextime authored
- Stop functions now kill daemon processes regardless of PID file existence - Added fallback pkill mechanism for processes without PID files - Uses graceful TERM signal followed by force KILL signal - Fixed both wssshd and wssshc init scripts - Ensures complete process cleanup in all scenarios
-
nextime authored
- Init scripts now stop daemons directly even if watchdog PID file doesn't exist - Added graceful termination (TERM) followed by force kill (KILL) if needed - Added pkill fallback to catch any remaining daemon processes - Fixed both wssshd and wssshc init scripts - Ensures complete daemon shutdown regardless of watchdog status
-
nextime authored
- Stop command now kills processes from PID file AND any other running watchdog processes - Prevents zombie watchdog processes when PID file doesn't exist - Added aggressive cleanup of all watchdog processes - Fixed both wssshd and wssshc watchdogs - Ensures complete watchdog shutdown even with startup failures
-
nextime authored
- Log START configuration values and validation - Add detailed startup debugging in start case - Track main() function PID and PID file creation - Help identify why watchdog fails to start properly - Applied to both wssshd and wssshc watchdogs
-
nextime authored
- Removed 'local' from stop and status case handlers in both watchdogs - 'local' can only be used inside functions, not in main script body - Fixed both wssshd-watchdog and wssshc-watchdog scripts - All bash syntax errors should now be resolved
-
nextime authored
- 'local' can only be used inside functions, not in main script body - Fixed both wssshd-watchdog and wssshc-watchdog scripts - Removed 'local count=0' from start case handlers
-
- 14 Sep, 2025 10 commits
-
-
nextime authored
- Watchdogs now run in infinite loop monitoring daemons every 30 seconds - Check START=yes configuration before starting monitoring - Restart daemons if they die, with max 20 restarts per minute limit - Double-check processes are actually running and correct - Fixed both wssshd and wssshc watchdogs to run continuously - Removed one-time start logic, restored continuous monitoring
-
nextime authored
- Add permission verification in postinst scripts for both wssshd and wssshc - Test if users can write to their home directories - Fix permissions if write access is denied (chmod 775) - Ensure users are in correct groups - Prevent 'Permission denied' errors when creating .config directories
-
nextime authored
- Implement one-time start logic (no continuous monitoring) - Add restart limiting: max 20 restarts per minute - Watchdog exits after successful start or if limits exceeded - Double-check processes are actually running and correct - Clean up PID files properly on exit - Fixed both wssshd and wssshc watchdogs
-
nextime authored
- Change watchdogs from continuous monitoring to one-time start - Check START=yes in /etc/default/ before starting services - Only start services if they're not already running - Double-check processes are actually running and correct - Improve status and stop functions with process verification - Fix both wssshd and wssshc watchdogs
-
nextime authored
- Watchdog scripts now wait for PID file creation before exiting - Reduced init script sleep time from 3 to 1 second - Prevents 'Watchdog failed to start properly' timing issues - Fixed both wssshd and wssshc watchdog/init scripts
-
nextime authored
- --debian-only now builds only wsssh-tools, not wsssh-server - Updated help text to clarify --debian-only behavior - Updated output messages for --debian-only vs --packages
-
nextime authored
-
nextime authored
- Add cleanup for wsssh-server*.deb packages and artifacts - Add cleanup for wsssh-server debian build directory - Ensure both wsssh-server and wsssh-tools packages are cleaned
-
nextime authored
- Create systemd service files for wssshd and wssshc - Add conditions to prevent conflicts with sysv init - Update debian/rules to install systemd services - Update postinst scripts to enable systemd services - Ensure sysv init has precedence over systemd
-
nextime authored
- Remove set -x tracing from init and watchdog scripts - Fix wssshd and wssshc watchdogs to accept various START values - Support yes, YES, Y, 1, true, TRUE as documented in config files
-