Last active
March 23, 2016 10:05
-
-
Save HokieGeek/7e42f3eff4587ae730c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:6 | |
## Install the EPEL repo | |
RUN yum -y install wget | |
RUN wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm -O /tmp/epel.rpm | |
RUN yum -y install /tmp/epel.rpm | |
## Install and configure x11vnc | |
RUN yum -y install x11vnc | |
RUN mkdir ~/.vnc | |
RUN x11vnc -storepasswd 1234 ~/.vnc/passwd | |
## Install and configure gnome | |
RUN yum --nogpgcheck -y install gnome-desktop gnome-session gnome-terminal xorg-x11-server-Xvfb | |
RUN echo "exec gnome-session" > ~/.xinitrc | |
RUN chmod 777 ~/.xinitrc | |
## Setup x11vnc command | |
CMD ["x11vnc", "-forever", "-usepw", "-create", "-auth", "/var/lib/gdm/:0.Xauth"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://wiki.centos.org/HowTos/VNC-Server