sudo su sudo -s apt -y install docbook2x npm apt -y update
dd if=/dev/zero of=/swap bs=1024 count=$[1024*1024*4] mkswap /swap swapon /swap swapon -s echo "/swap swap swap defaluts 0 0" >> /etc/fstab
cd ~ && \ wget https://nodejs.org/dist/v8.15.1/node-v8.15.1-linux-x64.tar.gz && \ mkdir -p /usr/local/lib/nodejs && \ tar xf node-v8.15.1-linux-x64.tar.gz -C /usr/local/lib/nodejs && \ echo 'export PATH=/usr/local/lib/nodejs/node-v8.15.1-linux-x64/bin:$PATH' >> ~/.bashrc && \ source ~/.bashrc
apt-get update && apt-get install -y git htop unzip && \ wget https://github.com/open-webrtc-toolkit/owt-server/archive/v4.3.1.zip -O owt-server-4.3.1.zip && \ unzip owt-server-4.3.1.zip cd ~/owt-server-4.3.1 && \ ./scripts/installDepsUnattended.sh && \ npm install -g node-gyp@6.1.0 graceful-fs grunt-cli && \ ./scripts/build.js -t mcu --check
cd ~ && \ wget https://github.com/open-webrtc-toolkit/owt-client-javascript/archive/v4.3.1.zip -O owt-client-javascript-4.3.1.zip && \ unzip owt-client-javascript-4.3.1.zip && \ cd owt-client-javascript-4.3.1/scripts/ && \ npm install && \ grunt
cd ~/owt-client-javascript-5.0/dist/samples/conference npm install npm audit fix
cd ~/owt-server-4.3.1/ && \ ./scripts/pack.js -f -s ~/owt-client-javascript-4.3.1/dist/samples/conference/
cd ~/owt-server-4.3.1/dist && \ ./bin/init-all.sh
cd ~/owt-server-4.3.1/dist && \ ./bin/start-all.sh
cd ~/owt-server-4.3.1/dist && \ ./bin/restart-all.sh
apt-get -y install snapd snap install core snap refresh core snap install --classic certbot ln -s /snap/bin/certbot /usr/bin/certbot
PASSWORD=password openssl pkcs12 -export -out your-domain.pfx -inkey "privkey.pem" -in "cert.pem" -certfile "fullchain.pem" -password "pass:$PASSWORD"
management_api/management_api.toml portal/portal.toml webrtc_agent/agent.toml management_console/management_console.toml
management_api/initcert.js portal/initcert.js webrtc_agent/initcert.js management_console/initcert.js
apt-get -y install coturn systemctl enable coturn systemctl start coturn