CHROOT INSTALL

mkdir /newos
mount /dev/system/newos /newos
apt-get update
apt-get dist-upgrade
debootstrap --arch amd64 precise /newos http://archive.ubuntu.com/ubuntu
mount --bind /dev /newos/dev
chroot /newos/

Then once you are in the chroot….

sudo mount -t proc proc /proc && sudo mount -t sysfs sysfs /sys
apt-get update
apt-get install language-pack-en
apt-get install linux-image-server
cp -rfp /etc/apt/sources.list /etc/apt/sources.list-minimal
cat < /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs) main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-updates main restricted universe multiverse
#deb http://archive.canonical.com/ubuntu $(lsb_release -cs) partner
_F
apt-get update
apt-get install libvirt-bin build-essential autoconf automake ssh vim man \
python-software-properties mdadm lvm2 smartmontools nmap ntp traceroute \
durep thttpd thttpd-util
apt-get -f install
addgroup --system admin
useradd -s /bin/bash -g admin -m -k /dev/null administrator
passwd root
passwd administrator
ssh-keygen -t rsa -b 4096
ssh-keygen -t dsa
sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list \
http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && \
sudo apt-get --quiet update
sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring
add-apt-repository ppa:shiki/mediainfo
add-apt-repository ppa:stebbins/handbrake-releases
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A8A515F046D7E7CF
cat <_F > /etc/apt/sources.list.d/getdeb.list
#deb http://archive.getdeb.net/ubuntu $(lsb_release -cs)-getdeb apps
_F
rm -rf /etc/apt/sources.list.d/*.save
sudo apt-get --quiet update
apt-get install w64codecs libdvdcss2 aacgain aacplusenc x264 \
libavdevice-extra-53 libavfilter-extra-2 libavformat-extra-53 \
libavutil-extra-51 libpostproc-extra-52 libswscale-extra-2 \
mencoder mplayer ffmpeg
apt-get install nvidia-current