pandora/vm/LXC_README.txt

30 lines
818 B
Text
Raw Normal View History

2014-02-13 12:45:35 +00:00
== Installing pan.do/ra inside LXC ==
2015-09-03 17:34:31 +00:00
1) Install lxc on the host (Ubuntu 14.04 or later):
2014-02-13 12:45:35 +00:00
2014-09-30 12:29:50 +00:00
sudo apt-get install lxc
2014-02-13 12:45:35 +00:00
2014-02-13 13:22:57 +00:00
2) Create a new container, use different names if installing multiple instances:
2014-02-13 12:45:35 +00:00
2015-09-03 17:33:48 +00:00
sudo lxc-create -n pandora -t ubuntu -- -r trusty
2014-02-13 12:45:35 +00:00
2014-02-13 13:22:57 +00:00
3) Install pan.do/ra in container:
2014-02-13 12:45:35 +00:00
2015-09-20 16:50:02 +00:00
sudo lxc-start -n pandora -d
2014-02-13 12:45:35 +00:00
2015-09-20 16:50:02 +00:00
4) Attach to container and install pan.do/ra
2014-02-13 12:45:35 +00:00
2015-09-20 16:50:02 +00:00
sudo lxc-attach -n pandora --clear-env
2015-09-03 17:57:58 +00:00
apt-get update -qq
apt-get -y install curl
2014-09-30 12:29:50 +00:00
cd /root
2015-09-20 16:50:02 +00:00
curl -L https://pan.do/ra-install > pandora_install.sh
chmod +x pandora_install.sh
2014-09-30 12:29:50 +00:00
sed -i s/ubuntu/pandora/g /etc/passwd /etc/shadow /etc/group
mv /home/ubuntu /home/pandora
echo "pandora:pandora" | chpasswd
locale-gen en_US.UTF-8
dpkg-reconfigure locales
2015-09-20 16:50:02 +00:00
./pandora_install.sh | tee pandora_install.log
2014-02-13 12:45:35 +00:00