Debian 9 - Verto Communicator quick start
# get nodejs from source, needed for npmapt-get updateapt-get -y install apache2 curlcurl -sL https://deb.nodesource.com/setup_11.x | bash -apt-get updateapt-get -y install nodejs# get FreeSWITCH source codegit clone https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch# build Verto Communicatorcd /usr/src/freeswitch/html5/verto/verto_communicatornpm install -g grunt grunt-cli bowernpm installbower --allow-root installgrunt build# copy contents of dist folder to a web directorymkdir -p /var/www/html/vccp -r /usr/src/freeswitch/html5/verto/verto_communicator/dist/* /var/www/html/vc/# update password to match what in vars.xmlsed -i 's/1234/12345/' /var/www/html/vc/config.json# enable secure web browsinga2enmod ssla2ensite default-ssl.confsystemctl restart apache2cd /usr/local/freeswitch/certsopenssl req -x509 -newkey rsa:4096 -keyout self.key -out self.crt -subj "/C=US/ST=freeswitch/L=freeswitch/O=freeswitch/OU=freeswitch/CN=freeswitch" -nodes -days 365 -sha256sed -i 's/\t\tSSLCertificateFile\t\/etc\/ssl\/certs\/ssl-cert-snakeoil.pem/\t\t#SSLCertificateFile\t\/etc\/ssl\/certs\/ssl-cert-snakeoil.pem\n\t\tSSLCertificateFile \/etc\/ssl\/certs\/server.crt/' /etc/apache2/sites-available/default-ssl.confsed -i 's/\t\tSSLCertificateKeyFile \/etc\/ssl\/private\/ssl-cert-snakeoil.key/\t\t#SSLCertificateKeyFile \/etc\/ssl\/private\/ssl-cert-snakeoil.key\n\t\tSSLCertificateKeyFile \/etc\/ssl\/private\/server.key/' /etc/apache2/sites-available/default-ssl.confmv /usr/local/freeswitch/certs/wss.pem /usr/local/freeswitch/certs/wss.pem.origcp self.crt /etc/ssl/certs/server.crtcp self.key /etc/ssl/private/server.keycat /etc/ssl/certs/server.crt > /usr/local/freeswitch/certs/wss.pemcat /etc/ssl/private/server.key >> /usr/local/freeswitch/certs/wss.pemservice apache2 restartservice freeswitch restart