1. 05 Sep, 2025 16 commits
    • Stefy Lanza (nextime / spora )'s avatar
      Fix SSH host keys generation for live CD and installed system · d757a175
      Stefy Lanza (nextime / spora ) authored
      - Add generate-ssh-keys.hook.chroot for live CD build
      - Generate RSA, ECDSA, and Ed25519 SSH host keys during build
      - Add SSH key generation to auto-installer for installed system
      - Remove existing keys before generating new ones
      - Fix 'no hostkeys available' SSH server error
      - SSH server can now start properly on both live CD and installed system
      d757a175
    • Stefy Lanza (nextime / spora )'s avatar
      Update mbetterclient · 89916b99
      Stefy Lanza (nextime / spora ) authored
      89916b99
    • Stefy Lanza (nextime / spora )'s avatar
      Add mbetterclient user autologin for installed system · 7875e818
      Stefy Lanza (nextime / spora ) authored
      - Create mbetterclient user with no password in installed system
      - Configure inittab for mbetterclient autologin on tty1 instead of root
      - Set up mbetterclient .bashrc to launch MBetterClient --web-host 0.0.0.0
      - Only autolaunch on tty1 (not SSH sessions)
      - Update installation success messages to reflect mbetterclient autologin
      - Maintain root SSH access with configured password
      7875e818
    • Stefy Lanza (nextime / spora )'s avatar
      Fix SSH login issue for installed system · 7995e012
      Stefy Lanza (nextime / spora ) authored
      - Ensure root password is properly set and not expired in installed system
      - Add passwd -u root to unlock account if needed
      - Add chage -d 99999 root to remove password expiration
      - Create SSH config allowing root login with password
      - Fix ensures SSH access works immediately after installation
      7995e012
    • Stefy Lanza (nextime / spora )'s avatar
      Remove auto-installer from installed system · ee3dff24
      Stefy Lanza (nextime / spora ) authored
      - Add cleanup code to remove auto-installer.sh from target system
      - Remove installation log file from target system
      - Exclude auto-installer log from rsync copy (but keep script for installation)
      - Auto-installer now self-destructs after successful installation
      - Keeps installed system clean by removing installation artifacts
      ee3dff24
    • Stefy Lanza (nextime / spora )'s avatar
      Fix auto-installer progress function blocking issue · 646ceea7
      Stefy Lanza (nextime / spora ) authored
      - Replace zenity-based progress with terminal progress bar
      - Remove blocking pipe operations that were causing script hangs
      - Add visual progress bar with filled/empty blocks
      - Remove zenity completion dialog for terminal compatibility
      - Clean up unused PROGRESS_PIPE variable
      - Progress now works reliably in all terminal environments
      646ceea7
    • Stefy Lanza (nextime / spora )'s avatar
      FEATURE: Complete interactive network configuration for auto-installer · 22e3891b
      Stefy Lanza (nextime / spora ) authored
      Enhanced network configuration with full user interaction:
      
      WiFi Support:
      - Automatic wireless interface detection using iw
      - Network scanning with SSID selection
      - Security protocol selection (WPA/WPA2, WEP, Open)
      - Password input for secured networks
      
      Ethernet Support:
      - Automatic ethernet interface detection
      - Interface selection from available options
      
      IP Configuration:
      - DHCP (automatic) or Static IP options
      - Manual IP address, gateway, and DNS server entry
      - Validation and configuration storage
      
      Installation Integration:
      - Network configuration applied to installed system
      - Creates /etc/network/interfaces with user settings
      - Configures DNS resolution for static setups
      - Preserves WiFi credentials and settings
      
      Package Dependencies:
      - Added iw, wpasupplicant, dhcpcd5 for full WiFi support
      - Maintains existing comprehensive wireless driver support
      
      The auto-installer now provides complete network setup during installation,
      configuring the target system with user-specified network preferences.
      22e3891b
    • Stefy Lanza (nextime / spora )'s avatar
      Fix auto-installer hanging at zenity confirmation dialog · a10dcc40
      Stefy Lanza (nextime / spora ) authored
      - Zenity dialog was hanging in terminal environment without proper GUI context
      - Replaced unreliable GUI dialogs (zenity/dialog) with terminal confirmation
      - Added clear warning display with colored output for visibility
      - Simplified confirmation logic with case statement for multiple valid inputs
      - Auto-installer now continues reliably without GUI dialog dependencies
      
      Terminal confirmation is more reliable in live CD terminal environments.
      a10dcc40
    • Stefy Lanza (nextime / spora )'s avatar
      Fix auto-installer disk size calculation arithmetic error · a6181d5c
      Stefy Lanza (nextime / spora ) authored
      - Fixed lsblk output parsing that was causing syntax error at line 138
      - Added head -1 and tr -d to handle multiple lines or whitespace in lsblk output
      - Added numeric validation to prevent arithmetic errors
      - Applied same fix to both disk detection functions (lines 138 and 244)
      
      Auto-installer now runs without syntax errors and properly detects disk sizes.
      Autologin system fully operational - console passwordless, SSH requires password.
      a6181d5c
    • Stefy Lanza (nextime / spora )'s avatar
      Remove duplicate auto-installer launch from Openbox autostart · 0da085e0
      Stefy Lanza (nextime / spora ) authored
      - Openbox autostart was also trying to launch auto-installer using x-terminal-emulator
      - This created conflict with .xinitrc launch method
      - Removed installer launch from autostart to avoid duplicate processes
      - .xinitrc now handles installer launch exclusively with proper timing
      - Semicolon syntax was actually correct (run next command regardless of exit status)
      - Prevents multiple installer instances and launch conflicts
      0da085e0
    • Stefy Lanza (nextime / spora )'s avatar
      CRITICAL: Override live-config password scripts locking root account · d114f634
      Stefy Lanza (nextime / spora ) authored
      Major Discovery:
      - live-config scripts 0030-live-debconfig_passwd and 0030-user-setup were
        setting root password to '*' (locked) during boot
      - This explains why SSH with configured password was failing
      - Scripts were also trying to create 'user' account instead of using root
      
      Solution:
      - Created override-live-config-passwd.hook.chroot
      - Replaces both password-related live-config scripts
      - Preserves root password set during ISO creation
      - Prevents account locking by live-config
      - Forces LIVE_USERNAME=root instead of creating separate user
      
      This completes the live-config override suite:
      - inittab autologin (prevents user login prompt)
      - password preservation (enables SSH with configured password)
      - proper root account handling throughout boot process
      d114f634
    • Stefy Lanza (nextime / spora )'s avatar
      Fix xinitrc startup order: Openbox first, then auto-installer · 17e19030
      Stefy Lanza (nextime / spora ) authored
      - Start openbox-session in background first to establish window manager
      - Wait 2 seconds for window manager to initialize
      - Then launch auto-installer in terminal window
      - Use 'wait' to keep X session alive instead of double-exec
      - Prevents duplicate Openbox instances and ensures proper startup sequence
      17e19030
    • Stefy Lanza (nextime / spora )'s avatar
      CRITICAL FIX: Override live-config sysvinit script causing autologin failure · 8e120509
      Stefy Lanza (nextime / spora ) authored
      Root Cause Identified:
      - live-config script /usr/lib/live/config/0160-sysvinit was overwriting inittab at runtime
      - Script was replacing all getty entries with '/bin/login -f user' instead of root
      - This happened AFTER our inittab modifications during boot process
      
      Solution:
      - Created override-live-config-sysvinit.hook.chroot to replace the problematic script
      - New script forces LIVE_USERNAME=root instead of default 'user'
      - Uses proper traditional getty -a syntax: /sbin/getty -a root 38400 tty1
      - Maintains tty2-6 as normal login shells for debugging
      
      This should finally resolve the autologin issue by preventing live-config from
      overwriting our carefully crafted inittab entries during boot.
      8e120509
    • Stefy Lanza (nextime / spora )'s avatar
      Update documentation with correct traditional SysV inittab syntax · b3d33fd6
      Stefy Lanza (nextime / spora ) authored
      - Fix inittab examples in ISO_MODIFICATION_WORKFLOW.md
      - Replace agetty --autologin with getty -a root syntax
      - Use standard 38400 baud rate format
      - Ensure all examples match traditional SysV init compatibility
      b3d33fd6
    • Stefy Lanza (nextime / spora )'s avatar
      Fix inittab syntax for traditional SysV init compatibility · 2624ae31
      Stefy Lanza (nextime / spora ) authored
      - Replace agetty --autologin with traditional getty -a root syntax
      - Remove bash expansion {2..6} and use explicit tty entries
      - Remove linux parameter that may not be supported in older systems
      - Use standard 38400 baud rate format
      - Ensure compatibility with traditional SysV init systems
      
      Traditional SysV inittab entries now:
      1:23:respawn:/sbin/getty -a root 38400 tty1  # Autologin
      2:23:respawn:/sbin/getty 38400 tty2          # Normal login
      3:23:respawn:/sbin/getty 38400 tty3          # Normal login
      ...etc
      2624ae31
    • Stefy Lanza (nextime / spora )'s avatar
      Complete autologin system overhaul: console autologin + SSH fixes + ISO tools · 383121b6
      Stefy Lanza (nextime / spora ) authored
      Major Changes:
      - Replaced LightDM/SLiM with direct console autologin using SysV inittab
      - Fixed root account locking that prevented autologin
      - Added comprehensive SSH configuration for remote access
      - Created robust auto-start X session with auto-installer launch
      - Added terminal emulator support (xterm, lxterminal, xfce4-terminal)
      
      Key Features:
      - tty1: Auto-login as root → auto-start X → auto-installer appears
      - tty2-6: Normal login shells for debugging access
      - SSH: Uses root password from ISO creation (not hardcoded)
      - Installed system: Auto-login + OpenVPN + MBetterClient with --web-host 0.0.0.0
      
      Tools Added:
      - extract_iso.sh / rebuild_iso.sh: Immediate ISO modification workflow
      - fix_inittab_in_image.sh: Complete ISO analysis and rebuild
      - Enhanced cleanup.sh with --no-cache option for faster rebuilds
      - Comprehensive diagnostic tools and logging
      
      Build System:
      - SysV init compatible (no systemd dependencies)
      - Clean package list (removed display managers, added xinit)
      - Proper inittab format compliance (max 4 char ID fields)
      - Enhanced post-installation system configuration
      
      Files Modified:
      - config/hooks/live/setup-console-autologin.hook.chroot (new)
      - config/hooks/live/enable-ssh-root.hook.chroot (enhanced)
      - config/hooks/live/run-autologin-debug.hook.chroot (new)
      - config/package-lists/live.list.chroot (cleaned, added terminals)
      - config/includes.chroot/root/.bashrc (auto-start X)
      - config/includes.chroot/root/.xinitrc (auto-installer launch)
      - config/includes.binary/setup-installed-system.sh (OpenVPN + MBetterClient)
      - config/includes.chroot/usr/local/bin/live-autologin-debug.sh (new)
      - Various diagnostic and logging enhancements
      383121b6
  2. 04 Sep, 2025 24 commits