This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#permissions | |
sudo chmod -R a+rwX folder/ | |
sudo chown -R node:node folder/ | |
#systemd | |
sudo systemctl enable <service-name> | |
sudo systemctl daemon-reload | |
sudo systemctl start|stop <service-name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vlc -vvv file:///home/danny/Downloads/test.mp3 --sout '#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:standard{access=http,dst=:8080/test.mp3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#this maybe better, still testing | |
# wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo | |
# mv linuxtech.repo /etc/yum.repos.d | |
# yum -y install vlc vlc-devel | |
yum -y install git pkgconfig pcsc-lite-devel | |
#ragel | |
cd /usr/local/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/local/src | |
git clone https://github.com/OpenZWave/open-zwave.git | |
cd open-zwave | |
wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.42.tar.gz | |
tar -zxvf libmicrohttpd-0.9.42.tar.gz -C libmicrohttpd | |
cd libmicrohttpd | |
apt-get install libmicrohttpd10 | |
./configure && make && make install | |
cd ../ | |
git clone https://github.com/OpenZWave/open-zwave-control-panel.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm | |
yum clean all | |
yum install -y freeswitch-config-vanilla | |
yum install sox freeswitch-sounds* | |
rename the new conf folder to conf.factory | |
clone the config and scripts to the new fs folder | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<input type="text" "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sL https://deb.nodesource.com/setup | sudo bash - | |
sudo apt-get install -y nodejs | |
hash -r | |
sudo apt-get install -y npm git openjdk-7-jre-headless | |
wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add - | |
sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main" | |
sudo apt-get update && sudo apt-get install elasticsearch | |
sudo update-rc.d elasticsearch defaults 95 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#git remote rm origin | |
#git remote add origin https://freeswitch.org/stash/scm/fs/freeswitch.git | |
#may need to do this | |
git config --global http.proxy <http-proxy-server> | |
#and | |
export http_proxy=<http-proxy-server> | |
cd /usr/local/src | |
yum -y install htop git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel net-snmp-devel patch libogg unixODBC-devel mysql-connector-odbc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do | |
read -p "If you already have compiled FreeSWITCH you will need to manually edit the configure file to set enable_core_odbc_support=yes, are you sure you want to continue? (y/n)" yn | |
case $yn in | |
[Yy]* ) break;; | |
[Nn]* ) exit;; | |
* ) echo "Please answer yes to continue to installing ODBC and compiling FreeSWITCH, answer no to abort this process.";; | |
esac | |
done | |
yum -y install unixODBC-devel mysql-connector-odbc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#functions | |
function func_java6() { | |
export JAVA_HOME=$JAVA6_HOME | |
echo $JAVA_HOME | |
} | |
function func_java7() { | |
export JAVA_HOME=$JAVA7_HOME | |
echo $JAVA_HOME | |
} |