Last active
May 18, 2016 04:49
-
-
Save lhcpig/3fdd2f8cdc47b20e9c52 to your computer and use it in GitHub Desktop.
This file contains 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
# Firefox over VNC | |
# | |
# VERSION 0.1 | |
# DOCKER-VERSION 0.2 | |
from ubuntu:12.04 | |
# make sure the package repository is up to date | |
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
run apt-get update | |
# Install vnc, xvfb in order to create a 'fake' display and firefox | |
run apt-get install -y x11vnc xvfb firefox | |
run mkdir /.vnc | |
# Setup a password | |
run x11vnc -storepasswd 1234 ~/.vnc/passwd | |
# Autostart firefox (might not be the best way to do it, but it does the trick) | |
run bash -c 'echo "firefox" >> /.bashrc' |
This file contains 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
yum install docker-io | |
#if can not run docker | |
yum install device-mapper-devel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment