Skip to content

Commit 8e6e37e

Browse files
committed
docs: update README.md
1 parent d58b5c2 commit 8e6e37e

File tree

1 file changed

+46
-38
lines changed

1 file changed

+46
-38
lines changed

README.md

+46-38
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,41 @@
1-
docker-ubuntu-vnc-desktop
2-
=========================
1+
# docker-ubuntu-vnc-desktop
32

43
[![Docker Pulls](https://img.shields.io/docker/pulls/dorowu/ubuntu-desktop-lxde-vnc.svg)](https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc/)
54
[![Docker Stars](https://img.shields.io/docker/stars/dorowu/ubuntu-desktop-lxde-vnc.svg)](https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc/)
65

7-
Docker image to provide HTML5 VNC interface to access a Ubuntu 18.04 LXDE desktop environment.
6+
docker-ubuntu-vnc-desktop is a Docker image to provide web VNC interface to access Ubuntu LXDE/LxQT desktop environment.
87

9-
Quick Start
10-
-------------------------
8+
<!-- @import "[TOC]" {cmd="toc" depthFrom=2 depthTo=2 orderedList=false} -->
9+
10+
<!-- code_chunk_output -->
11+
12+
- [Quick Start](#quick-start)
13+
- [VNC Viewer](#vnc-viewer)
14+
- [HTTP Base Authentication](#http-base-authentication)
15+
- [SSL](#ssl)
16+
- [Screen Resolution](#screen-resolution)
17+
- [Default Desktop User](#default-desktop-user)
18+
- [Deploy to a subdirectory (relative url root)](#deploy-to-a-subdirectory-relative-url-root)
19+
- [Sound (Preview version and Linux only)](#sound-preview-version-and-linux-only)
20+
- [Generate Dockerfile from jinja template](#generate-dockerfile-from-jinja-template)
21+
- [Troubleshooting and FAQ](#troubleshooting-and-faq)
22+
- [License](#license)
23+
24+
<!-- /code_chunk_output -->
25+
26+
## Quick Start
1127

1228
Run the docker container and access with port `6080`
1329

14-
```
30+
```shell
1531
docker run -p 6080:80 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
1632
```
1733

1834
Browse http://127.0.0.1:6080/
1935

2036
<img src="https://raw.github.com/fcwu/docker-ubuntu-vnc-desktop/master/screenshots/lxde.png?v1" width=700/>
2137

22-
**Ubuntu Version**
38+
### Ubuntu Flavors
2339

2440
Choose your favorite Ubuntu version with [tags](https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc/tags/)
2541

@@ -30,91 +46,84 @@ Choose your favorite Ubuntu version with [tags](https://hub.docker.com/r/dorowu/
3046
- xenial: Ubuntu 16.04 (deprecated)
3147
- trusty: Ubuntu 14.04 (deprecated)
3248

33-
VNC Viewer
34-
------------------
49+
## VNC Viewer
3550

3651
Forward VNC service port 5900 to host by
3752

38-
```
53+
```shell
3954
docker run -p 6080:80 -p 5900:5900 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
4055
```
4156

4257
Now, open the vnc viewer and connect to port 5900. If you would like to protect vnc service by password, set environment variable `VNC_PASSWORD`, for example
4358

44-
```
59+
```shell
4560
docker run -p 6080:80 -p 5900:5900 -e VNC_PASSWORD=mypassword -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
4661
```
4762

4863
A prompt will ask password either in the browser or vnc viewer.
4964

50-
HTTP Base Authentication
51-
---------------------------
65+
## HTTP Base Authentication
5266

5367
This image provides base access authentication of HTTP via `HTTP_PASSWORD`
5468

55-
```
69+
```shell
5670
docker run -p 6080:80 -e HTTP_PASSWORD=mypassword -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
5771
```
5872

59-
SSL
60-
--------------------
73+
## SSL
6174

6275
To connect with SSL, generate self signed SSL certificate first if you don't have it
6376

64-
```
77+
```shell
6578
mkdir -p ssl
6679
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ssl/nginx.key -out ssl/nginx.crt
6780
```
6881

6982
Specify SSL port by `SSL_PORT`, certificate path to `/etc/nginx/ssl`, and forward it to 6081
7083

71-
```
84+
```shell
7285
docker run -p 6081:443 -e SSL_PORT=443 -v ${PWD}/ssl:/etc/nginx/ssl -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
7386
```
7487

75-
Screen Resolution
76-
------------------
88+
## Screen Resolution
7789

7890
The Resolution of virtual desktop adapts browser window size when first connecting the server. You may choose a fixed resolution by passing `RESOLUTION` environment variable, for example
7991

80-
```
92+
```shell
8193
docker run -p 6080:80 -e RESOLUTION=1920x1080 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
8294
```
8395

84-
Default Desktop User
85-
--------------------
96+
## Default Desktop User
8697

8798
The default user is `root`. You may change the user and password respectively by `USER` and `PASSWORD` environment variable, for example,
8899

89-
```
100+
```shell
90101
docker run -p 6080:80 -e USER=doro -e PASSWORD=password -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
91102
```
92103

93-
Deploy to a subdirectory (relative url root)
94-
--------------------------------------------
104+
## Deploy to a subdirectory (relative url root)
95105

96106
You may deploy this application to a subdirectory, for example `/some-prefix/`. You then can access application by `http://127.0.0.1:6080/some-prefix/`. This can be specified using the `RELATIVE_URL_ROOT` configuration option like this
97107

98-
```
108+
```shell
99109
docker run -p 6080:80 -e RELATIVE_URL_ROOT=some-prefix dorowu/ubuntu-desktop-lxde-vnc
100110
```
101111

102112
NOTE: this variable should not have any leading and trailing splash (/)
103113

104-
Sound (Preview version and Linux only)
105-
--------------------------------------
114+
## Sound (Preview version and Linux only)
106115

107116
It only works in Linux.
108117

109118
First of all, insert kernel module `snd-aloop` and specify `2` as the index of sound loop device
110119

111-
```
120+
```shell
112121
sudo modprobe snd-aloop index=2
113122
```
114123

115124
Start the container
116125

117-
```
126+
```shell
118127
docker run -it --rm -p 6080:80 --device /dev/snd -e ALSADEV=hw:2,0 dorowu/ubuntu-desktop-lxde-vnc
119128
```
120129

@@ -127,8 +136,9 @@ Following is the screen capture of these operations. Turn on your sound at the e
127136
[![demo video](http://img.youtube.com/vi/Kv9FGClP1-k/0.jpg)](http://www.youtube.com/watch?v=Kv9FGClP1-k)
128137

129138

130-
Generate Dockerfile from jinja template
131-
-------------------
139+
## Generate Dockerfile from jinja template
140+
141+
WARNING: Deprecated
132142

133143
Dockerfile and configuration can be generated by template.
134144

@@ -140,17 +150,15 @@ Dockerfile and configuration can be generated by template.
140150

141151
Dockerfile and configuration are re-generate if they do not exist. Or you may force to re-generate by removing them with the command `make clean`.
142152

143-
Troubleshooting and FAQ
144-
==================
153+
## Troubleshooting and FAQ
145154

146155
1. boot2docker connection issue, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/2
147156
2. Multi-language supports, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/80
148-
3. Autostart, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/85
157+
3. Autostart, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/85#issuecomment-466778407
149158
4. x11vnc arguments(multiptr), https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/101
150159
5. firefox/chrome crash (/dev/shm), https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/112
151160
6. resize display size without destroying container, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/115#issuecomment-522426037
152161

153-
License
154-
==================
162+
## License
155163

156164
See the LICENSE file for details.

0 commit comments

Comments
 (0)