pandora/vm/LXC_README.md

47 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 08:25:29 +00:00
# Installing pan.do/ra inside LXC
2014-02-13 12:45:35 +00:00
2020-04-28 13:32:02 +00:00
1) Install lxc on the host (Ubuntu 18.04):
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
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 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
2020-05-30 01:27:51 +00:00
sudo lxc-create -n pandora -t ubuntu-cloud -- -r focal
2014-02-13 12:45:35 +00:00
or
2023-06-07 20:41:50 +00:00
sudo lxc-create -n pandora -t debian -- -r bullseye
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
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
2016-06-14 18:38:30 +00:00
echo PasswordAuthentication no >> /etc/ssh/sshd_config
2019-10-31 10:10:14 +00:00
apt-get update -qq && apt-get upgrade -y
apt-get -y install curl ca-certificates
2014-09-30 12:29:50 +00:00
locale-gen en_US.UTF-8
2017-11-07 19:18:10 +00:00
update-locale LANG=en_US.UTF-8
export LANG=en_US.UTF-8
2016-06-14 18:38:30 +00:00
cd /root
2017-10-24 18:45:59 +00:00
curl -sL https://pan.do/ra-install > pandora_install.sh
2016-06-14 18:38:30 +00:00
chmod +x pandora_install.sh
2020-05-30 10:28:50 +00:00
export BRANCH=stable # or master
2017-10-24 18:45:59 +00:00
./pandora_install.sh 2>&1 | tee pandora_install.log
2014-02-13 12:45:35 +00:00