pandora/vm/LXD_README.md

37 lines
1007 B
Markdown
Raw Normal View History

2019-07-06 08:52:01 +00:00
# Preparations
you will need at least 2GB of free disk space to install pan.do/ra
2019-07-06 08:52:36 +00:00
# Installing pan.do/ra inside LXD
2019-07-06 08:52:01 +00:00
2020-05-30 01:27:51 +00:00
1) Install lxd on the host (Ubuntu 18.04 or later, Debian/10):
2019-07-06 08:52:01 +00:00
2020-05-30 01:27:51 +00:00
sudo snap install lxd
2019-07-06 08:52:01 +00:00
2) Create a new container, use different names if installing multiple instances:
2020-05-30 01:27:51 +00:00
sudo lxc launch ubuntu:20.04 pandora
2019-07-06 08:52:01 +00:00
or
2019-07-06 12:46:24 +00:00
sudo lxc launch images:debian/10 pandora
2019-07-06 08:52:01 +00:00
3) Attach to container and install pan.do/ra
sudo lxc exec pandora bash
apt-get update -qq && apt-get upgrade -y
apt-get -y install curl ca-certificates
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
update-locale LANG=en_US.UTF-8
export LANG=en_US.UTF-8
cd /root
curl -sL https://pan.do/ra-install > pandora_install.sh
chmod +x pandora_install.sh
./pandora_install.sh 2>&1 | tee pandora_install.log