Merge branch 'readme_update'

This commit is contained in:
Brian Seymour 2021-01-22 02:34:35 -06:00
commit d07d98c955
3 changed files with 29 additions and 1 deletions

View File

@ -127,7 +127,7 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
nvm install --lts
nvm use --lts
sudo pacman -S lxc libvirt unzip
pacman -S lxc libvirt unzip
```
</details>

24
var/archive.txt Normal file
View File

@ -0,0 +1,24 @@
# make piston image
lxc-clone -KMP /mnt/piston_image piston piston
sed -i 's/\/mnt\/piston_image/\/var\/lib\/lxc/' piston/config
tar -czf piston.tar.gz piston/
# restore piston image
cd /var/lib/lxc
tar -xzf piston.tar.gz
```
# get piston image
cd /var/lib/lxc
wget whatever url
tar -xzf piston.tar.gz
sed -i "s/virtbr0/$(ip a | grep br0: | cut -d' ' -f2 | sed 's/://gi')/" piston/config
# start piston
cd /path/to/piston/lxc
./start
```

View File

@ -242,6 +242,10 @@ chmod -R o-w *
rm -rf /home/ubuntu
chmod 777 /tmp
# disable cron
systemctl stop cron
systemctl disable cron
# leave container
exit