# 管理 HOST 機

## **使用 cloudcmd 管理 HOST 機器**

### &#x20;參考[**http://cloudcmd.io**](http://cloudcmd.io/)**安裝**

**apt-get -o Acquire::ForceIPv4=true**

**sudo apt update**

**sudo apt install nodejs npm**

**sudo npm install -g cloudcmd**

**sudo npm i gritty -g**

**以root執行一次**

**sudo su**

**cloudcmd --terminal --terminal-path \`gritty --path\` --save**

**Crtl + C 退出**<br>

### **自動啟動cloudcmd**

**vi /etc/systemd/system/cloudcmd.service**

**-------------------------------------**

**\[Unit]**

**Description=Cloud Commander**

**After=network.target**

**\[Service]**

**User=root**

**WorkingDirectory=/usr/local/lib/node\_modules/cloudcmd/bin/**

**ExecStart=/usr/bin/node cloudcmd.js**

**Restart=on-failure**

**\[Install]**

**WantedBy=multi-user.target**

**--------------------------------------------------------------------------------**

**sudo systemctl enable cloudcmd**

**sudo systemctl start cloudcmd**

![](https://lh6.googleusercontent.com/uIRtqCEXpZxQ5vxZ_VFoa2DE2dTfUIzXJuWzcy1XwvpVNoAg5syLcfCTXv424ZQsrRZ8uK3YnYB5Ft_KiZC__6v31YynBINznlb9QgrGSyXLheZmeg9CVHi9BzluNTWlCfPMRqNN)

按下F10可進 <img src="/files/-LjoQ7y9ZW6C9vyAGQHf" alt="" data-size="original"> 行設定

<div align="left"><img src="/files/-LjsAIp4b20Pv02kV6c9" alt=""></div>

可以按下 <img src="/files/-Ljs9pP3Wp-fM8HAKAje" alt="" data-size="original"> 進入終端機

<div align="left"><img src="/files/-LjsAqRA9uStbxNL5tz_" alt=""></div>

**fat32使用中文**

**mount -o iocharset=utf8 /dev/sda1 /mnt**<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/docker-cong-an-zhuang-dao-ying-yong-ru-men-pian/guan-li-host-ji.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
