2023年4月14日 星期五

apps for monitoring CPU and GPU temperatures and other resources on Linux

想隨時用手機 App 透過 ssh 連線監視 Linux 機器的資源使用硬體溫度可考慮如下作法。

(1)  set up a monitor account on Linux 建立監視用帳號

$sudo adduser  --home=/home/user_name  user_name

$grep user_name /etc/passwd

$sudo edquota -p  source_user   user_name

$sudo quota -u user_name

(2) set up .ssh store in the monitor account 建立帳號公鑰存放目錄

mkdir -p ~/.ssh && chmod 700 ~/.ssh 

cat >> ~/.ssh/authorized_keys

chmod 600 ~/.ssh/authorized_keys

(3a) set up DaRemote App for Android 設定Android App

            Configure Name, Host, User, Key/Password 設定主機

    Monitor CPU/Memory/Disk/Network including CPU temperature 監視資源

    Use Shell Terminal 使用終端機

(3b) set up ServerCat App for iOS 設定 iOS App

ServerCat

  Status: Temperature 監視主機資源

Monitor CPU/Load Memory/Swap Upload/Download Read/Write

including core usage, threads, memory,
                  GPU memory, CPU/GPU temperature, disk usage

  Configure Host/+/ 設定受監視主機

Name,  Host,  Port,  User,  Password, SSH Key

  Execute/Select host 執行上傳公鑰指令

        Copy the Shell Command from KeyChain Store to 

                    Send the Public Key to the remote host

                    cmd: echo 'ssh-ed25519 xxxxxxxxxxxx ' >> !/.ssh/authorized_keys

Execute 

  Mange KeyChain/+/ 管理登入金鑰

        Configure a new SSH Authentication Key Pair 建立登入金鑰

                    Generate 2048 bit RSA Key, or

    Generate ED25519 Key (Recommended)

Copy SSH Authentication Key to Server 產生上傳公鑰指令

  echo 'ssh-ed25519 xxxxxxxxxxxx ' >> !/.ssh/authorized_keys


沒有留言: