Skip to content

Instantly share code, notes, and snippets.

@ehowardtillit
Created September 30, 2012 23:10
Show Gist options
  • Save ehowardtillit/2bf8e9ac14bc0b28ef6b to your computer and use it in GitHub Desktop.
Save ehowardtillit/2bf8e9ac14bc0b28ef6b to your computer and use it in GitHub Desktop.
LXC at PMM
# LXC
# What is lxc
# LXC vs the others (perf bench)
# installing
After installing a barebones Debian Squeeze we install LXC
....
Then we install some things on the containers:
apt-get install -y vim dialog apt-utils
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
apt-get -y --force-yes install locales
dpkg-reconfigure locales
apt-get --no-install-recommends install -y adduser apt-utils iproute netbase sudo iputils-ping iptables rsyslog
apt-get install --no-install-recommends -y openssh-blacklist openssh-blacklist-extra openssh-server
apt-get install -y net-tools ifupdown sockstat
apt-get install -y wget less lsof screen apt-utils nano telnet inetutils-ping psmisc
echo "deb http://ftp.fr.debian.org/debian/ squeeze main non-free contrib" > /etc/apt/sources.list
echo "deb-src http://ftp.fr.debian.org/debian/ squeeze main non-free contrib" >> /etc/apt/sources.list
echo "" >> /etc/apt/sources.list
echo "deb http://security.debian.org/ squeeze/updates main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://security.debian.org/ squeeze/updates main contrib non-free" >> /etc/apt/sources.list
echo "" >> /etc/apt/sources.list
echo "# squeeze-updates, previously known as 'volatile'" >> /etc/apt/sources.list
echo "deb http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free" >> /etc/apt/sources.list
echo "" >> /etc/apt/sources.list
echo "# Dotdeb" >> /etc/apt/sources.list
echo "deb http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list
echo "deb-src http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | sudo apt-key add -
apt-get update
apt-get upgrade
@ehowardtillit
Copy link
Author

add "container_name" to hosts file.
apt-get install -y php5-cli libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-mysql php5-sqlite php5-xsl php5-suhosin php5-apc
apt-get install -y mysql-server mysql-client
apt-get -y autoremove

@ehowardtillit
Copy link
Author

apt-get install -y git

@ehowardtillit
Copy link
Author

apt-get install -y man

@ehowardtillit
Copy link
Author

apt-get install -y curl

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