Merge branch 'readme_update'
This commit is contained in:
commit
d07d98c955
|
@ -127,7 +127,7 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
|
||||||
nvm install --lts
|
nvm install --lts
|
||||||
nvm use --lts
|
nvm use --lts
|
||||||
|
|
||||||
sudo pacman -S lxc libvirt unzip
|
pacman -S lxc libvirt unzip
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
```
|
|
@ -242,6 +242,10 @@ chmod -R o-w *
|
||||||
rm -rf /home/ubuntu
|
rm -rf /home/ubuntu
|
||||||
chmod 777 /tmp
|
chmod 777 /tmp
|
||||||
|
|
||||||
|
# disable cron
|
||||||
|
systemctl stop cron
|
||||||
|
systemctl disable cron
|
||||||
|
|
||||||
# leave container
|
# leave container
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue