Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fixed to allow reconnections" #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
FROM ubuntu:trusty
MAINTAINER Sean Payne <seantpayne+docker@gmail.com>

MAINTAINER paimpozhil@gmail.com
RUN apt-get update -y
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get install -y git x11vnc wget python python-numpy unzip Xvfb firefox openbox geany
RUN cd /root && git clone https://github.com/kanaka/noVNC.git
ADD startup.sh /startup.sh

RUN apt-get update -y && \
apt-get install -y git x11vnc wget python python-numpy unzip Xvfb firefox openbox geany menu && \
cd /root && git clone https://github.com/kanaka/noVNC.git && \
cd noVNC/utils && git clone https://github.com/kanaka/websockify websockify && \
cd /root && \
chmod 0755 /startup.sh && \
apt-get autoclean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/*

RUN chmod 0755 /startup.sh
CMD /startup.sh
EXPOSE 6080
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ Especially useful if you have to give access to your friends who come over for f

## How to use
```
docker run -td -p 6080:6080 zerodivide1/docker-novnc
docker run -td -p 6080:6080 paimpozhil/docker-novnc

#Or if you like to build yourself
git clone https://github.com/zerodivide1/docker-novnc.git
git clone https://github.com/paimpozhil/docker-novnc.git
cd docker-novnc
docker build -t novnc .
docker run -td -p 6080:6080 novnc
Expand All @@ -43,12 +43,17 @@ apt-get commands

ex: apt-get install libreoffice-base libreoffice-gtk libreoffice-calc

## To DO

Setup a LXDE version for a more desktop like setup

Add Authentication for VNC.

## Support

* http://docker.com for all the docker based support.
### http://dockerteam.com for all the docker based support.


## Credits

* [NoVNC](http://kanaka.github.io/noVNC/)
* [Original docker-novnc project](https://github.com/paimpozhil/docker-novnc)
#### NoVNC http://kanaka.github.io/noVNC/
7 changes: 3 additions & 4 deletions startup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
export DISPLAY=:1
Xvfb :1 -screen 0 1600x900x16 &
sleep 5
Xvfb :1 -screen 0 1280x1024x16 &
openbox-session&
x11vnc -display :1 -nopw -listen localhost -xkb -ncache 10 -ncache_cr -forever &
cd /root/noVNC && ln -s vnc_auto.html index.html && ./utils/launch.sh --vnc localhost:5900
x11vnc -display :1 -bg -nopw -listen localhost -xkb -ncache 10 -ncache_cr
cd /root/noVNC && ./utils/launch.sh --vnc localhost:5900