Skip to content

Instantly share code, notes, and snippets.

@HokieGeek
Last active November 2, 2015 13:17
Show Gist options
  • Save HokieGeek/99d5fa45a409f28be439 to your computer and use it in GitHub Desktop.
Save HokieGeek/99d5fa45a409f28be439 to your computer and use it in GitHub Desktop.
FROM centos:5
RUN echo "exec gnome-session" > ~/.xinitrc && chmod 777 ~/.xinitrc
RUN yum --nogpgcheck -y install gnome-desktop gnome-session gnome-terminal x11vnc xorg-x11-server-Xvfb
RUN mkdir ~/.vnc && x11vnc -storepasswd 1234 ~/.vnc/passwd
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