pandora/vm/LXC_README.txt

30 lines
804 B
Text
Raw Normal View History

2014-02-13 12:45:35 +00:00
== Installing pan.do/ra inside LXC ==
1) Install lxc on the host (Ubuntu 12.04 or later):
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
2014-09-30 12:29:50 +00:00
sudo lxc-create -n pandora -t ubuntu -- -r precise
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
2014-09-30 12:29:50 +00:00
sudo lxc-start -n pandora
2014-02-13 12:45:35 +00:00
2014-02-13 13:22:57 +00:00
Now login as ubuntu/ubuntu and run the following commands:
2014-02-13 12:45:35 +00:00
2014-09-30 12:29:50 +00:00
sudo su
apt-get update
apt-get -y install avahi-daemon curl
cd /root
curl 'https://wiki.0x2620.org/browser/pandora/vm/firstboot.sh?format=txt' > firstboot.sh
chmod +x firstboot.sh
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
./firstboot.sh
2014-02-13 12:45:35 +00:00