Last active
August 26, 2016 22:09
-
-
Save cyrex562/6d3f4f2b0a7c6710df5b27a011363b93 to your computer and use it in GitHub Desktop.
package install for ubuntu system setup (server)
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
# apt package install | |
add-apt-repository ppa:nginx/stable | |
add-apt-repository ppa:rwky/redis | |
apt update | |
apt upgrade | |
apt dist-upgrade | |
# dev packages | |
apt install autoconf automake build-essential pkg-config texinfo zlib1g-dev yasm cmake mercurial python3-setuptools libssl-dev \ | |
redis-server redis-tools python3-pip python3-dev supervisor git couchdb libgmp-dev | |
# media packages | |
apt install libass-dev libfreetype6-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev \ | |
libxcb-shm0-dev libxcb-xfixes0-dev libx264-dev libmp3lame-dev libopus-dev | |
# system packages | |
apt install ntp inetutils-traceroute iputils-tracepath iputils-arping libpcap-dev sysdig libffi-dev nginx htop iotop jnettop nmap \ | |
tshark lldpad ladvd avahi-daemon mdns-scan bridge-utils | |
# routing packages | |
bird pimd avahi-daemon olsrd olsrd-plugins dnsmasq | |
# install strongswan from source | |
cd /opt | |
wget https://download.strongswan.org/strongswan-5.5.0.tar.bz2 | |
tar xf strongswan-* | |
cd strongswan-* | |
./configure --prefix=/usr --sysconfdir=/etc | |
make | |
make install | |
# for systems using bottle instead of flask | |
pip3 install psutil jsonpickle gunicorn pycrypto netifaces redis pexpect service_identity pyopenssl bottle couchdb pyyaml | |
# ffmpeg install | |
mkdir -p /opt/ffmpeg_sources | |
cd /opt/ffmpeg_sources/ | |
# clone x265 from repo | |
hg clone https://bitbucket.org/multicoreware/x265 | |
cd x265/build/linux/ | |
cmake -G "Unix Makefiles" -DENABLE_SHARED:bool=off ../../source | |
make && make install | |
# libfdk-aac | |
cd /opt/ffmpeg_sources | |
wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master | |
tar xf fdk-aac.tar.gz | |
cd mstorsjo-fdk-aac-* | |
autoreconf -fiv | |
./configure --disable-shared | |
make && make install | |
# lbvpx | |
cd /opt/ffmpeg_sources | |
wget http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-1.5.0.tar.bz2 | |
tar xf libvpx* | |
cd libvpx-1.5.0/ | |
./configure --disable-examples --disable-unit-tests | |
make | |
make install | |
# x264 | |
cd /opt/ffmpeg_sources/ | |
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2 | |
tar xjvf last_x264.tar.bz2 | |
cd x264-snapshot* | |
./configure --enable-static | |
make && make install | |
# ffmpeg | |
cd /opt/ffmpeg_sources | |
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 | |
tar xf ffmpeg-snapshot.tar.bz2 | |
cd ffmpeg/ | |
./configure --pkg-config-flags="--static" --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree | |
make && make install | |
cd /opt/ffmpeg_sources | |
# asterisk | |
apt-get install subversion libjansson-dev sqlite autoconf automake libtool libxml2-dev libncurses5-dev unixodbc unixodbc-dev \ | |
libasound2-dev libogg-dev libvorbis-dev libneon27-dev libsrtp0-dev libspandsp-dev uuid uuid-dev sqlite3 libsqlite3-dev libgnutls-dev libncurses5-dev | |
mkdir /opt/asterisk_source | |
cd /opt/asterisk_source | |
git clone https://github.com/asterisk/pjproject.git | |
cd pjproject | |
./configure --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr | |
make dep && make && make install | |
cd /opt/asterisk_source | |
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz | |
tar xvfz asterisk-13-current.tar.gz | |
cd asterisk-* | |
./configure | |
contrib/scripts/get_mp3_source.sh | |
make menuselect | |
make && make install && make config && make samples | |
ldconfig | |
cd /var/lib/asterisk/sounds | |
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-wav-current.tar.gz | |
tar xvfz asterisk-extra-sounds-en-wav-current.tar.gz | |
rm -f asterisk-extra-sounds-en-wav-current.tar.gz | |
# Wideband Audio download (Optional) | |
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-g722-current.tar.gz | |
tar xfz asterisk-extra-sounds-en-g722-current.tar.gz | |
rm -f asterisk-extra-sounds-en-g722-current.tar.gz | |
# docker | |
apt-get install apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-get install linux-image-extra-$(uname -r) | |
# edit /etc/apt/sources.list.d/docker.list | |
# add the following line: | |
# deb https://apt.dockerproject.org/repo ubuntu-trusty main | |
apt-get update | |
apt-get install docker-engine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment