> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/ubuntu-zhuo-mian/docker-to-nomachine.md).

# docker nomachine 桌面

系統安裝nomachine

{% embed url="<https://www.nomachine.com/>" %}

快速測試

```
sudo docker run -d -p 4002:4000 --name desktop -e PASSWORD=password -e USER=user --cap-add=SYS_PTRACE cesarandreslopez/docker-ubuntu-mate-desktop-nomachine
```

```
git clone https://github.com/tristann9/docker-nomachine-desktop.git
cd docker-nomachine-desktop
docker build -t=kawsing/nomachine .
```

```
docker run -d -p 4001:4000 -p 23:22 --name desktop -e PASSWORD=test -e USER=test --cap-add=SYS_PTRACE desktop
```

```
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive

ENV LANG="zh_TW.UTF-8"
ENV LANGUAGE=zh_TW


RUN apt-get clean && apt-get update && apt-get install -y locales && \
    locale-gen zh_TW.UTF-8 && locale-gen zh_TW && \
    echo "Asia/Taipei" > /etc/timezone && \
    apt-get install -y locales && \
    sed -i -e "s/# $LANG.*/$LANG.UTF-8 UTF-8/" /etc/locale.gen && \
    dpkg-reconfigure --frontend=noninteractive locales && \
    update-locale LANG=$LANG && \
    apt-get update -y && \
    apt-get install -y fonts-droid-fallback software-properties-common python3-software-properties sudo && \
    add-apt-repository universe && \
    apt-get update -y && \
    apt-get install -y xterm pulseaudio cups curl \
    iputils-ping  libxss1 wget xdg-utils libpango1.0-0 fonts-liberation fonts-ubuntu \
    lxde firefox htop nano git vim


ADD nomachine_6.9.2_1_amd64.deb /

RUN dpkg -i /nomachine_6.9.2_1_amd64.deb
RUN rm -f /nomachine_6.9.2_1_amd64.deb

```

### 建立我的映像檔

```
sudo docker build -t kawsing/nomachinelxde .
```

### 啟動具備nomachine的docker桌面

```
sudo docker run -d -p 4003:4000 --name lxde -e PASSWORD=password -e USER=user --cap-add=SYS_PTRACE kawsing/nomachinelxde
```

使用nomachine登入 docker 桌面（影音都OK）

![](/files/-M2Gq_NWQd3WVoSsCiEf)


---

# 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://kawsing.gitbook.io/opensystem/ubuntu-zhuo-mian/docker-to-nomachine.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.
