MakeYourLaws/MakeYourLaws — pull request #4 by phihag (2012-05-09 20:11:53+00:00)
Title: Installation instructions for debian/Ubuntu

Currently, it is relatively hard to install MakeYourLaws, especially for Ruby novices. This pull request documents a couple of commands that can be used to install MakeYourLaws on a brand-new debian system.

To get said brand-new debian system, one can use the following commands:

sudo apt-get install -yqq deboostrap
sudo killall mysqld
if mountpoint -q myl-root/proc; then sudo umount myl-root/proc; fi
sudo debootstrap squeeze myl-root
sudo chroot myl-root

mount -t proc proc proc
useradd myl -s /bin/bash
mkdir -p /home/myl
chown phihag /home/myl
apt-get update -qq
apt-get install -qqy sudo
echo 'myl ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers
echo 'locales locales/locales_to_be_generated string en_US.UTF-8 UTF-8' | LC_ALL=C debconf-set-selections
echo 'locales locales/default_environment_locale string en_US' | LC_ALL=C debconf-set-selections
LC_ALL=C apt-get install -yqq locales strace htop
dpkg-reconfigure --default-priority locales
su myl
cd

This will set up a new [chroot](http://en.wikipedia.org/wiki/Chroot), and go into it.