{"id":63867,"date":"2018-10-09T07:22:42","date_gmt":"2018-10-08T22:22:42","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=63867"},"modified":"2018-10-09T07:22:42","modified_gmt":"2018-10-08T22:22:42","slug":"s-tui","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/s-tui\/","title":{"rendered":"s-tui - \u30bf\u30fc\u30df\u30ca\u30eb\u30d9\u30fc\u30b9\u306eCPU\u30b9\u30c8\u30ec\u30b9\u30fb\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/10\/s_20181004_221807.jpg\" alt=\"S 20181004 221807\" title=\"s_20181004_221807.jpg\" border=\"0\" width=\"1048\" height=\"730\" \/><\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u30d9\u30fc\u30b9\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u300c<a href=\"https:\/\/github.com\/amanusk\/s-tui\">s-tui<\/a>\u300d\u3002<\/p>\n<p>CPU\u306e\u5468\u6ce2\u6570\u3084\u4f7f\u7528\u7387\u3001\u6e29\u5ea6\u3001\u6d88\u8cbb\u96fb\u529b\u306a\u3069\u306e\u60c5\u5831\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u306b\u7f8e\u3057\u304f\u8868\u793a\u3067\u304d\u308b\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3067\u3001Python\u3067\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u5358\u306b\u72b6\u614b\u3092\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001stress\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066\u30de\u30b7\u30f3\u306b\u8ca0\u8377\u3092\u304b\u3051\u5909\u5316\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306e\u3088\u3046\u306a\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>CPU\u6e29\u5ea6\/\u4f7f\u7528\u7387\/\u5468\u6ce2\u6570\/\u96fb\u529b\u306e\u76e3\u8996<\/li>\n<li>\u30b5\u30fc\u30de\u30eb\u30b9\u30ed\u30c3\u30c8\u30ea\u30f3\u30b0\u306b\u3088\u308b\u6027\u80fd\u4f4e\u4e0b\u306e\u8868\u793a<\/li>\n<li>\u30df\u30cb\u30de\u30eb\u30ea\u30bd\u30fc\u30b9<\/li>\n<li>X Server\u304c\u4e0d\u8981<\/li>\n<li>CPU\u30b9\u30c8\u30ec\u30b9\u306e\u305f\u3081\u306e\u7d44\u307f\u8fbc\u307f\u30aa\u30d7\u30b7\u30e7\u30f3<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u5177\u4f53\u7684\u306a\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>s-tui\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>s-tui\u306fPython\u88fd\u306e\u30c4\u30fc\u30eb\u306a\u306e\u3067pip\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>#\u30eb\u30fc\u30c8\u6a29\u9650\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\nsudo pip install s-tui\n#\u30e6\u30fc\u30b6\u30fc\u6a29\u9650\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\npip install s-tui --user\n#pyenv\u306a\u3069\u3092\u5229\u7528\u3059\u308b\u5834\u5408\npip install s-tui\n<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u5f8c\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>s-tui<\/pre>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u8d77\u52d5\u3059\u308b\u3068\u76f4\u5f8c\u304b\u3089\u81ea\u52d5\u7684\u306bCPU\u306e\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u304c\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/10\/usage.png\" alt=\"Usage\" title=\"usage.png\" border=\"0\" width=\"1016\" height=\"706\" \/><\/p>\n<p>\u25b2s-tui\u306e\u52d5\u4f5c\u30e2\u30fc\u30c9\u306f\u753b\u9762\u5de6\u4e0a\u306e\u300cModes\u300d\u3067\u5909\u66f4\u3067\u304d\u307e\u3059\u3002\u300cMonitor\u300d\u304c\u901a\u5e38\u72b6\u614b\u3067\u300cStress\u300d\u304c\u30b9\u30c8\u30ec\u30b9\u3092\u304b\u3051\u305f\u72b6\u614b\u3067\u3059\u3002\u300cStress\u300d\u306fstress\u30b3\u30de\u30f3\u30c9\u304c\u30b7\u30b9\u30c6\u30e0\u4e0a\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u4f7f\u7528\u53ef\u80fd\u3067\u3001\u9078\u629e\u3059\u308b\u3068CPU\u306e\u8ca0\u8377\u304c100%\u3068\u306a\u308a\u307e\u3059(Monitor\u3092\u3082\u3046\u4e00\u5ea6\u9078\u629e\u3059\u308b\u3068\u5143\u306b\u623b\u305b\u307e\u3059)\u3002<\/p>\n<p>\u307e\u305f\u5de6\u4e2d\u592e\u90e8\u306e\u300cFrequency(\u5468\u6ce2\u6570)\u300d\u300cUtilization(\u4f7f\u7528\u7387)\u300d\u300cTemperature(\u6e29\u5ea6)\u300d\u300cPower(\u6d88\u8cbb\u96fb\u529b)\u300d\u3067\u3069\u306e\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u304b\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002\u300cX\u300d\u304c\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u9805\u76ee\u3067\u3059\u304c\u3001\u30de\u30b7\u30f3\u306b\u3088\u3063\u3066\u306f\u60c5\u5831\u304c\u8aad\u307f\u53d6\u308c\u305a\u300cN\/A\u300d\u306b\u306a\u308b\u5834\u5408\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>s-tui\u306f\u305d\u306e\u307e\u307e\u8d77\u52d5\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u5404\u7a2e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>********s-tui manual********\nusage: s-tui [-h] [-d] [-c] [-t] [-j] [-nm] [-v] [-ct CUSTOM_TEMP]\n\nTUI interface:\n\nThe side bar houses the controls for the displayed grahps.\nAt the bottom of the side bar, more information is presented in text form.\n\n* Use the arrow keys or 'hjkl' to navigate the side bar\n* Toggle between stressed and regular operation using the radio buttons in 'Modes'.\n* If you wish to alternate stress defaults, you can do it in 'Stress options'\n* Select a different temperature sensors from the 'Temp Sensors' menu\n* Change time between updates using the 'Refresh' field\n* Use the 'Reset' button to reset graphs and statistics\n* Toggle displayed graphs by selecting the [X] check box\n* If a sensor is not available on your system, N\/A is presented\n* If your system supports it, you can use the utf8 button to get a smoother graph\n* Press 'q' or the 'Quit' button to quit\n\n* Run `s-tui --help` to get this message and additional cli options\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -d, --debug           Output debug log to _s-tui.log\n  -c, --csv             Save stats to csv file\n  -t, --terminal        Display a single line of stats without tui\n  -j, --json            Display a single line of stats in JSON format\n  -nm, --no-mouse       Disable Mouse for TTY systems\n  -v, --version         Display version\n  -ct CUSTOM_TEMP, --custom_temp CUSTOM_TEMP\n                        \n                        Custom temperature sensors.\n                        The format is: <sensors>,<number>\n                        As it appears in 'sensors'\n                        e.g\n                        > sensors\n                        it8792-isa-0a60,\n                        temp1: +47.0C\n                        temp2: +35.0C\n                        temp3: +37.0C\n                        \n                        use: -ct it8792,0 for temp 1\n                           \n  -cf CUSTOM_FAN, --custom_fan CUSTOM_FAN\n                        Similar to custom temp\n                        e.g\n                        >sensors\n                        thinkpad-isa-0000\n                        Adapter: ISA adapter\n                        fan1:        1975 RPM\n                        \n                        use: -cf thinkpad,0 for fan1<\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>s-tui\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u30d9\u30fc\u30b9\u306eCPU\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u3067\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u3055\u3048\u3042\u308c\u3070\u52d5\u4f5c\u3059\u308b\u306e\u3067\u4f8b\u3048\u3070\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u3001ssh\u7d4c\u7531\u3067\u30b5\u30fc\u30d0\u30fc\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u4fbf\u5229\u306b\u4f7f\u7528\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30bf\u30fc\u30df\u30ca\u30eb\u30d9\u30fc\u30b9\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u300cs-tui\u300d\u3002 CPU\u306e\u5468\u6ce2\u6570\u3084\u4f7f\u7528\u7387\u3001\u6e29\u5ea6\u3001\u6d88\u8cbb\u96fb\u529b\u306a\u3069\u306e\u60c5\u5831\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u306b\u7f8e\u3057\u304f\u8868\u793a\u3067\u304d\u308b\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3067\u3001Python\u3067\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u5358\u306b\u72b6\u614b\u3092\u30e2\u30cb\u30bf [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":63945,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[1211],"class_list":["post-63867","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-terminal"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/63867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=63867"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/63867\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/63945"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=63867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=63867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=63867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}