Skip to content

Commit dfa7597

Browse files
committed
update README
1 parent aae1692 commit dfa7597

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ docker pull gezp/ubuntu-desktop:20.04-cu11.0.3
5959
# docker pull registry.cn-hongkong.aliyuncs.com/gezp/ubuntu-desktop:20.04-cu11.0.3
6060
```
6161

62-
create conatiner
62+
create container
6363
```bash
64-
# create conatiner with nomachine
64+
# create container with nomachine
6565
docker run -d --restart=on-failure \
6666
--name my_workspace \
6767
--cap-add=SYS_PTRACE \
@@ -73,9 +73,10 @@ docker run -d --restart=on-failure \
7373
-e UID=$(id -u) \
7474
-p 10022:22 \
7575
-p 14000:4000 \
76+
-p 15000:5000 \
7677
gezp/ubuntu-desktop:20.04-cu11.0.3
7778

78-
# create conatiner with kasmvnc/novnc
79+
# create container with kasmvnc/novnc
7980
docker run -d --restart=on-failure \
8081
--name my_workspace \
8182
--gpus all \
@@ -87,38 +88,42 @@ docker run -d --restart=on-failure \
8788
-e REMOTE_DESKTOP=kasmvnc \
8889
-p 10022:22 \
8990
-p 14000:4000 \
91+
-p 15000:5000 \
9092
gezp/ubuntu-desktop:20.04-cu11.0.3
9193
```
9294
* the default username and password are both ubuntu.
9395

94-
access conatiner by ssh
96+
access container by ssh
9597
```bash
9698
ssh ubuntu@host-ip -p 10022
9799
```
98100
* it's recommended to use vscode + remote ssh plugin
99101

100-
access conatiner by remote desktop (nomachine)
102+
access container by remote desktop (nomachine)
101103

102104
* download and install [nomachine software](https://www.nomachine.com/).
103105
* the ip is host's ip, the port is 14000.
104106

105-
access conatiner by remote desktop (kasmvnc/novnc)
107+
access container by remote desktop (kasmvnc/novnc)
106108

107109
* use browser to access `https://<host-ip>:14000` (chrome is recommended)
108110

109-
> Tip `novnc` option based on [TurboVNC](https://github.com/TurboVNC/turbovnc) + [noVNC](https://github.com/novnc/noVNC), which are free and open-source software.
111+
> Tip `novnc` option based on [TurboVNC](https://github.com/TurboVNC/turbovnc) + [noVNC](https://github.com/novnc/noVNC), which are free and open-source softwares.
110112
111113
features of moachine/kasmvnc/novnc:
112114

113115
* moachine: need client software to access remote desktop, and support audio, uploads, downloads.
114116
* kasmvnc/novnc: provide remote web-based access to desktop, but it doesn't support audio, uploads, downloads, and microphone pass-through.
115117

118+
access container by [code-server](https://github.com/coder/code-server) (VS Code in the browser)
119+
120+
* use browser to access `https://<host-ip>:15000` (chrome is recommended)
116121

117122
## Advanced Usage
118123

119124
#### Custom User Argument
120125

121-
configure by setting environment variables when you create conatiner.
126+
configure by setting environment variables when you create container.
122127

123128
* `REMOTE_DESKTOP`: nomachine (default) , kasmvnc, novnc.
124129
* `VNC_THREADS`: RectThread num for vncserver, only used when `REMOTE_DESKTOP` = kasmvnc. default is 2, set 0 for auto.

README_cn.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ docker pull gezp/ubuntu-desktop:20.04-cu11.0.3
5555

5656
docker run: 创建并运行容器
5757
```bash
58+
# create container with nomachine
5859
docker run -d --restart=on-failure \
5960
--name my_workspace \
6061
--cap-add=SYS_PTRACE \
@@ -66,9 +67,10 @@ docker run -d --restart=on-failure \
6667
-e UID=$(id -u) \
6768
-p 10022:22 \
6869
-p 14000:4000 \
70+
-p 15000:5000 \
6971
gezp/ubuntu-desktop:20.04-cu11.0.3
7072

71-
# create conatiner with kasmvnc/novnc
73+
# create container with kasmvnc/novnc
7274
docker run -d --restart=on-failure \
7375
--name my_workspace \
7476
--gpus all \
@@ -80,6 +82,7 @@ docker run -d --restart=on-failure \
8082
-e REMOTE_DESKTOP=kasmvnc \
8183
-p 10022:22 \
8284
-p 14000:4000 \
85+
-p 15000:5000 \
8386
gezp/ubuntu-desktop:20.04-cu11.0.3
8487
```
8588
* 默认用户名和密码均为ubuntu
@@ -101,6 +104,10 @@ ssh ubuntu@host-ip -p 10022
101104

102105
* 使用浏览器访问 `https://<host-ip>:14000` (推荐chrome)
103106

107+
访问网页版VS Code (基于[code-server](https://github.com/coder/code-server))
108+
109+
* 使用浏览器访问 `https://<host-ip>:15000` (推荐chrome)
110+
104111
## 3.扩展使用
105112

106113
### 3.1 自定义用户参数

0 commit comments

Comments
 (0)