]> ## Tmux Terminal Manager (TTM) ###2025.08.25 - fix: some browsers not allowing to resize the terminal popup window ###2025.08.21 - fix: make pages and dashboards compliant with new responsive UI - release note: the footer on-hover popup is no longer supported in the responsive UI - release note: this is due to global style constraints outside of the plugin developer control ###2025.04.27a - new: add a setting to show a footer menu with the last 10 terminal sessions ###2025.04.13 - fix: major refactor of the ttmd backend with several improvements ###2025.03.26a - new: added the reptyr command-line tool to the package (see below) - reptyr allows moving already running (non-tmux) processes into tmux sessions ###2025.02.26 - fix: future-proofing changes to base plugin structure ###2025.01.24 - fix: addressed theoretical congestion with multiple sessions ###2025.01.22 - fix: resolved issue with transition between dashboard and settings ###2025.01.14 - new: distinguish between TTM(-created) and non-TTM sessions in GUI - new: added a session grid with previews and management options to the popup ###2025.01.11 - new: added a link to a tmux cheat sheet (thanks Barry Staes) - fix: changed default array stop behavior for new installations - fix: changed escaping for some backend commands ###2025.01.10 - new: added setting to kill array-accessing sessions when array stops - release note: the default is disabled (go to TTM settings to enable this) ###2025.01.08 - fix: improve popup handling (allow multiple windows) ###2025.01.07 - fix: service startup failure after reboot with custom tmux ###2024.12.30 - new: support for unicode (thanks hurui200320) - fix: improved handling of processes and encountered errors ###2024.12.26 - release note: welcome to the first version of the plugin - release note: please report any issues in the support thread on the forums if [ -x /etc/rc.d/rc.ttmd ]; then echo "Making sure all existing TTM services are stopped (before install/upgrade)..." if ! /etc/rc.d/rc.ttmd stop >/dev/null 2>&1; then echo "WARNING:" echo "WARNING: The TTM installation script was not able to stop all TTM services." echo "WARNING: IN CASE OF PROBLEMS, please REBOOT YOUR SYSTEM to complete any upgrades." echo "WARNING:" fi else killall ttmd >/dev/null 2>&1 fi killall dwttm-poller >/dev/null 2>&1 exit 0 &pkgURL;/tmux-3.5a-x86_64-1_slack15.1.txz a697e9a8aa8d4704ea8858914f2e2d7d if [ -f /boot/config/plugins/unassigned.devices.preclear.plg ]; then echo "" echo "----------------------------------------------------------------" echo " Tmux is already installed from elsewhere, not reinstalling." echo " It is part of Unassigned Devices Preclear, so we'll use that." echo "----------------------------------------------------------------" echo "" touch &plgPATH;/custom elif compgen -G "/boot/extra/tmux*" >/dev/null 2>&1; then echo "" echo "----------------------------------------------------------------" echo " Tmux is already installed elsewhere, not reinstalling." echo " It was found in the /boot/extra/ folder, so we'll use that." echo "----------------------------------------------------------------" echo "" touch &plgPATH;/custom else upgradepkg --install-new &plgPATH;/tmux-3.5a-x86_64-1_slack15.1.txz rm -f &plgPATH;/custom fi exit 0 &pkgURL;/tmux-3.5a-x86_64-1_slack15.0.txz 337e6b7d531cb9ec11884b01dd58af8a if [ -f /boot/config/plugins/unassigned.devices.preclear.plg ]; then echo "" echo "----------------------------------------------------------------" echo " Tmux is already installed from elsewhere, not reinstalling." echo " It is part of Unassigned Devices Preclear, so we'll use that." echo "----------------------------------------------------------------" echo "" touch &plgPATH;/custom elif compgen -G "/boot/extra/tmux*" >/dev/null 2>&1; then echo "" echo "----------------------------------------------------------------" echo " Tmux is already installed from elsewhere, not reinstalling." echo " It was found in the /boot/extra/ folder, so we'll use that." echo "----------------------------------------------------------------" echo "" touch &plgPATH;/custom else upgradepkg --install-new &plgPATH;/tmux-3.5a-x86_64-1_slack15.0.txz rm -f &plgPATH;/custom fi exit 0 &pkgURL;/reptyr-0.10.0-x86_64-1_slack15.0.txz 9a58bc6f78e7d46bca8ad4c1fd1ad94c &gitURL;/archive/&plgNAME;.txz &plgMD5; CONFIG=&plgPATH;/&name;.cfg echo "Reading configuration..." if [ -e "$CONFIG" ]; then source "$CONFIG" fi if [ "$SERVICE" == "enable" ]; then if type tmux >/dev/null 2>&1 && tmux -V >/dev/null 2>&1; then echo "Starting TTM service..." /etc/rc.d/rc.ttmd start 2>&1 | logger -t "rc.ttmd" if [ "${PIPESTATUS[0]}" -eq 0 ]; then echo "TTM service has been started with success." else echo "WARNING: TTM service failed to start, check SYSLOG for more information." fi else if [ -f &plgPATH;/custom ]; then echo "Delaying TTM service start... (waiting on Tmux from another plugin/package)" /etc/rc.d/rc.ttmd delaystart >/dev/null 2>&1 & else echo "Starting TTM service..." echo "Error: Unable to start 'ttmd' - Tmux not found or not functional." echo "Error: Please refer to the 'TTM Settings' for more information on this issue." fi fi else /etc/rc.d/rc.ttmd configure 2>&1 | logger -t "rc.ttmd" echo "" echo "****************************************************************" echo " The service is disabled, please go to the TTM Settings" echo " page in order to configure and enable the TTM Service." echo "****************************************************************" fi echo "" echo "----------------------------------------------------------------" echo " Tmux Terminal Manager (TTM) has been installed." echo " Version: &version; / Plugin Maintainer: &author;" echo "----------------------------------------------------------------" echo "" if [ -x /etc/rc.d/rc.ttmd ]; then echo "Making sure all existing TTM services are stopped (before uninstall)..." if ! /etc/rc.d/rc.ttmd stop >/dev/null 2>&1; then echo "WARNING:" echo "WARNING: The TTM uninstallation script was not able to stop all TTM services." echo "WARNING: IN CASE OF PROBLEMS, please REBOOT YOUR SYSTEM to remove any remaining packages." echo "WARNING:" fi else killall ttmd >/dev/null 2>&1 fi killall dwttm-poller >/dev/null 2>&1 if [ -f /boot/config/plugins/unassigned.devices.preclear.plg ]; then echo "" echo "----------------------------------------------------------------" echo " Tmux was installed from elsewhere, not removing it here." echo " It is part of Unassigned Devices Preclear, so we'll keep that." echo "----------------------------------------------------------------" echo "" rm -f &plgPATH;/tmux*.txz elif compgen -G "/boot/extra/tmux*" >/dev/null 2>&1; then echo "" echo "----------------------------------------------------------------" echo " Tmux was installed from elsewhere, not removing it here." echo " It was found in the /boot/extra/ folder, so we'll keep that." echo "----------------------------------------------------------------" echo "" rm -f &plgPATH;/tmux*.txz fi removepkg &plgPATH;/*.txz rm -rf &plgPATH; rm -rf &emhttp; rm -f /var/log/ttmd.log rm -f /etc/cron.daily/dwttm-poller >/dev/null 2>&1 echo "" echo "----------------------------------------------------------------" echo " Tmux Terminal Manager (TTM) has been removed." echo " Version: &version; / Plugin Maintainer: &author;" echo "----------------------------------------------------------------" echo ""