forked from 0x2620/pandora
30 lines
849 B
Text
30 lines
849 B
Text
== Installing pan.do/ra inside LXC ==
|
|
|
|
1) Install lxc on the host (Ubuntu 14.04 or later):
|
|
|
|
sudo apt-get install lxc
|
|
|
|
2) Create a new container, use different names if installing multiple instances:
|
|
|
|
sudo lxc-create -n pandora -t ubuntu -- -r xenial
|
|
|
|
3) Install pan.do/ra in container:
|
|
|
|
sudo lxc-start -n pandora -d
|
|
|
|
4) Attach to container and install pan.do/ra
|
|
|
|
sudo lxc-attach -n pandora --clear-env
|
|
apt-get update -qq
|
|
apt-get -y install curl
|
|
sed -i s/ubuntu/pandora/g /etc/passwd /etc/shadow /etc/group
|
|
mv /home/ubuntu /home/pandora
|
|
echo "pandora:pandora" | chpasswd
|
|
echo PasswordAuthentication no >> /etc/ssh/sshd_config
|
|
locale-gen en_US.UTF-8
|
|
|
|
cd /root
|
|
curl -L https://pan.do/ra-install > pandora_install.sh
|
|
chmod +x pandora_install.sh
|
|
./pandora_install.sh | tee pandora_install.log
|
|
|