
應力末端UI,S-TUI,以圖形方式從終端監視CPU溫度,頻率,功率和利用。

s-tui
PIP可提供最新的S-TUI版本。
安裝以下安裝:
pip install s-tui --user
(這通常在〜/.local/bin/dir中創建可執行文件。確保它在您的路徑中)
作為root安裝
sudo pip install s-tui
您可能需要先安裝python-dev
使用PIPSI在Virtualenv中安裝:
pipsi install s-tui
sudo apt install s-tui
PPA可用,但不是最新的
sudo add-apt-repository ppa:amanusk/python-s-tui
sudo apt-get update
sudo apt-get install python3-s-tui
s-tui位於拱門存儲庫中:
sudo pacman -S s-tui
s-tui-git跟隨大師分支,由@mauromombelli維護
安裝它: yay -S s-tui-git
sudo zypper install s-tui
s-tui位於Fedora存儲庫中:
sudo dnf install s-tui
TUI interface:
The side bar houses the controls for the displayed graphs.
At the bottom, all sensors reading are presented in text form.
* Use the arrow keys or 'hjkl' to navigate the side bar
* Toggle between stressed and regular operation using the radio buttons in 'Modes'.
* If you wish to alternate stress defaults, you can do it in <Stress options>
* Select graphs to display in the <Graphs> menu
* Select summaries to display in the <Summaries> menu
* Use the <Reset> button to reset graphs and statistics
* If your system supports it, you can use the UTF-8 button to get a smoother graph
* Save your current configuration with the <Save Settings> button
* Press 'q' or the <Quit> button to quit
* Run `s-tui --help` to get this message and additional cli options
optional arguments:
-h, --help show this help message and exit
-d, --debug Output debug log to _s-tui.log
--debug-file DEBUG_FILE
Use a custom debug file. Default: _s-tui.log
-dr, --debug_run Run for 5 seconds and quit
-c, --csv Save stats to csv file
--csv-file CSV_FILE Use a custom CSV file. Default: s-tui_log_<TIME>.csv
-t, --terminal Display a single line of stats without tui
-j, --json Display a single line of stats in JSON format
-nm, --no-mouse Disable Mouse for TTY systems
-v, --version Display version
-tt T_THRESH, --t_thresh T_THRESH
High Temperature threshold. Default: 80
S-TUI非常適合監視。如果您想強調系統,請安裝壓力。然後,壓力選項將在S-TUI(可選)中出現
sudo apt-get install stress
S-TUI是一個獨立的應用程序,可以運行開箱即用,並且不需要配置文件來驅動其核心功能。但是,當超過某個閾值時(例如CPU溫度)確實需要創建配置目錄等其他功能,例如運行腳本(例如CPU溫度)。該目錄將在~/.config/s-tui默認情況下製作。
選擇<save設置>將把當前配置保存到~/.config/s-tui/s-tui.conf 。如果您想還原默認值,只需刪除文件即可。
S-TUI使您能夠在超過一定的閾值(例如CPU溫度)時運行任意外殼腳本。您可以通過以下名稱之一將Shell File添加到目錄~/.config/s-tui/hooks.d來定義此自定義行為,具體取決於您有興趣的閾值:
tempsource.sh :超過CPU溫度閾值時觸發如果S-TUI在掛鉤目錄中以其支持的源名稱找到腳本,則只要源的當前值保持在閾值之上,它將每30秒運行該腳本。
請注意,目前僅支持CPU溫度閾值鉤。
從克隆存儲庫開始
git clone https://github.com/amanusk/s-tui.git
cd s-tui
安裝所需的依賴項為[root]或AS(本地用戶)
[sudo] pip install urwid (--user)
[sudo] pip install psutil (--user)
安裝壓力(可選)
sudo apt-get install stress
運行.py文件
python -m s_tui.s_tui
Firestarter是向您的系統強調極端的絕佳工具。如果願意,可以將Firestarter subsodule集成到S-TUI中。
建造Firestarter:
git submodule init
git submodule update
cd ./FIRESTARTER
./code-generator.py
make
完成這些步驟後,您可以:
python -m s_tui.s_tui從主要項目目錄中運行S -TUIS-TUI使用psutil探測硬件信息。如果不支持您的硬件,則可能不會看到所有信息。
S-TUI將Urwid用作圖形引擎。 URWID僅與類似Unix的系統一起使用
問:這與HTOP有何不同?
答:S-TUI不是像HTOP這樣的流程監視器。目的是監視您的CPU統計信息,並可以選擇在重負載下測試系統。 (考慮AIDA64壓力測試,而不是任務經理)。
問:我使用的是沒有X服務器的TTY,STUI崩潰了
答:默認情況下,S-TUI是處理鼠標輸入。這導致某些系統崩潰。嘗試運行s-tui --no-mouse
問:我沒有看到側邊欄中的所有統計數據。
答:側邊欄是可滾動的,您可以向下DOWN或j滾動或用PG-DN或G滾動到底部。您可能還會考慮降低終端中使用的字體大小。 :)
歡迎新問題和拉力請求:)
如果您注意到一個錯誤,請使用提供的模板將其報告為新問題。
要打開拉請請求,請參閱貢獻以獲取更多信息。
如果您喜歡這項工作,請在Github上出演。
BTC: 1PPhYgecwvAN7utN2EotgTfy2mmLqzF8m3
ETH: 0xc169699A825066f2F07E0b29C4082094b32A3F3e