pandora/vm/LXC_README.md

46 lines
1.3 KiB
Markdown
Raw Normal View History

# Preparations
you will need at least 2GB of free disk space to install pan.do/ra
2018-03-16 13:55:29 +05:30
# Installing pan.do/ra inside LXC
2014-02-13 12:45:35 +00:00
2017-03-17 01:21:24 +01:00
1) Install lxc on the host (Ubuntu 16.04 or later):
2014-02-13 12:45:35 +00:00
2014-09-30 14:29:50 +02:00
sudo apt-get install lxc
2014-02-13 12:45:35 +00:00
1.1) On Debian you have to configure the a network for LXC before creating a container
Simplest setup is this one here:
https://wiki.debian.org/LXC/SimpleBridge#Using_lxc-net
2014-02-13 18:52:57 +05:30
2) Create a new container, use different names if installing multiple instances:
2014-02-13 12:45:35 +00:00
2016-06-14 20:38:30 +02:00
sudo lxc-create -n pandora -t ubuntu -- -r xenial
2014-02-13 12:45:35 +00:00
or
sudo lxc-create -n pandora -t debian -- -r stretch
2014-02-13 18:52:57 +05:30
3) Install pan.do/ra in container:
2014-02-13 12:45:35 +00:00
2015-09-20 17:50:02 +01:00
sudo lxc-start -n pandora -d
2014-02-13 12:45:35 +00:00
2015-09-20 17:50:02 +01:00
4) Attach to container and install pan.do/ra
2014-02-13 12:45:35 +00:00
2015-09-20 17:50:02 +01:00
sudo lxc-attach -n pandora --clear-env
2017-08-15 13:32:47 +02:00
apt-get update -qq && apt-get upgrade -y
apt-get -y install curl ca-certificates
2014-09-30 14:29:50 +02:00
sed -i s/ubuntu/pandora/g /etc/passwd /etc/shadow /etc/group
mv /home/ubuntu /home/pandora
echo "pandora:pandora" | chpasswd
2016-06-14 20:38:30 +02:00
echo PasswordAuthentication no >> /etc/ssh/sshd_config
2014-09-30 14:29:50 +02:00
locale-gen en_US.UTF-8
2017-11-07 20:18:10 +01:00
update-locale LANG=en_US.UTF-8
export LANG=en_US.UTF-8
2016-06-14 20:38:30 +02:00
cd /root
2017-10-24 20:45:59 +02:00
curl -sL https://pan.do/ra-install > pandora_install.sh
2016-06-14 20:38:30 +02:00
chmod +x pandora_install.sh
2017-10-24 20:45:59 +02:00
./pandora_install.sh 2>&1 | tee pandora_install.log
2014-02-13 12:45:35 +00:00