> For the complete documentation index, see [llms.txt](https://applezulab.netdpi.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://applezulab.netdpi.net/02-linux-xi-tong-cao-zuo/use-xhost.md).

# 使用 xhost

參考 [X remote HOWTO](https://web.archive.org/web/20200306075600/http://www.faqs.org/docs/Linux-mini/Remote-X-Apps.html)\
\
假設的場景 (Secnario):\
\
X server主機 IP：192.168.10.20\
Client 主機：192.168.30.10\
\
設定要將畫面呈現到何處： DISPLAY=192.168.30.10:0.0\
\
0.0 之意義:\
第一個 0 為 port, ex. 6000\
第二個 0 螢幕或顯卡之數目 0 代表第一個\
\
xhost + 192.168.10.20 允許遠端 X server 送資料過來\~\~\
\
OK, 接著在 X server 執行之程式都會顯示到 client 的螢幕上。\
\
此為 X client/server 架構之優點\
\
安全性問題語與細節可參考 [X remote HOWTO](https://web.archive.org/web/20200306075600/http://www.faqs.org/docs/Linux-mini/Remote-X-Apps.html)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://applezulab.netdpi.net/02-linux-xi-tong-cao-zuo/use-xhost.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
