Skip to content

Instantly share code, notes, and snippets.

@HokieGeek
Last active March 23, 2016 10:05
Show Gist options
  • Save HokieGeek/7e42f3eff4587ae730c6 to your computer and use it in GitHub Desktop.
Save HokieGeek/7e42f3eff4587ae730c6 to your computer and use it in GitHub Desktop.
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"]
@HokieGeek
Copy link
Author

@HokieGeek
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment