This file contains hidden or 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
| cat <<'EOF' | sudo tee /usr/local/bin/oscam_pcscd_monitor.sh > /dev/null | |
| #!/bin/bash | |
| # | |
| # Monitor de oscam y pcscd | |
| # Reinicia pcscd y luego oscam si: | |
| # - pcscd no está activo | |
| # - oscam no está activo | |
| # - oscam está activo pero su API no responde (health check) | |
| # - el log de oscam muestra errores de lector en los últimos 30 s | |
| # |
This file contains hidden or 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
| # Proxmox: Convertir contenedor LXC a máquina virtual KVM | |
| Crear una máquina virtual KVM con disco virtual de similar tamaño al del origen. | |
| Contenedor Original LXC: | |
| Sistema Operativo: Ubuntu 22.04 LTS | |
| Disco Duro: 80 GB | |
| Interfaz de red: 1Gbps | |
| Acceso SSH permitido para root | |
This file contains hidden or 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
| # Requisitos: | |
| # Debian 12 | |
| # Asterisk 22 | |
| # FreePBX 17 | |
| # Instalar dependencias | |
| apt -y install git php8.2-sqlite3 php8.2-soap libapache2-mod-php8.2 php8.2-common php8.2-gd php8.2-cli php8.2-mysql mariadb-server php-pear php-raphf libmcrypt-dev | |
| cd /usrc/src | |
| wget http://ftp.us.debian.org/debian/pool/main/libp/libphp-jpgraph/libphp-jpgraph_1.5.2-13.1_all.deb |
This file contains hidden or 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
| # Requisitos: | |
| # Debian 11 | |
| # Asterisk 22 | |
| # FreePBX 16 | |
| # Instalar dependencias | |
| apt install git php7.4-sqlite3 php7.4-soap libapache2-mod-php7.4 php7.4-common php7.4-gd php7.4-cli php7.4-mysql mariadb-server php-pear php-raphf libmcrypt-dev | |
| # Descargar a2billing | |
| cd /usr/share |
This file contains hidden or 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
| # Debian 12 Bookwrom | |
| # Freepbx / Asterisk installation https://gist.github.com/razametal/18785923be942af78ef8a0984903d5dd | |
| # Enable slin48 (for L16@48000) and opus (for OPUS@48000) in Freepbx -> Settings -> Asterisk Sip Settings | |
| apt-get install -y --no-install-recommends build-essential git wget ca-certificates pkg-config libopus-dev libssl-dev zlib1g-dev gperf ccache make php-cli cmake clang libc++-dev libc++abi-dev libsqlite3-dev libpulse-dev | |
| # libopenssl1.1 | |
| cd /usr/src | |
| wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/openssl_1.1.1w.orig.tar.gz | |
| tar zvxf openssl_1.1.1w.orig.tar.gz |
This file contains hidden or 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
| # Asterisk 22 / FreePBX 17 en Debian 12 Bookworm | |
| apt -y install build-essential git curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev libjansson-dev libxml2-dev uuid-dev default-libmysqlclient-dev htop sngrep lame ffmpeg mpg123 vim expect pkg-config libedit-dev cmake | |
| apt -y install linux-headers-`uname -r` openssh-server apache2 mariadb-server mariadb-client bison flex php8.2 php8.2-curl php8.2-cli php8.2-common php8.2-mysql php8.2-gd php8.2-mbstring php8.2-intl php8.2-xml php-pear curl sox sqlite3 automake libtool autoconf unixodbc-dev uuid libasound2-dev libogg-dev libvorbis-dev libicu-dev libcurl4-openssl-dev odbc-mariadb libical-dev libneon27-dev libsrtp2-dev libspandsp-dev sudo libtool-bin python-dev-is-python3 unixodbc wget software-properties-common nodejs npm ipset iptables fail2ban php-soap libncurses-dev libblocksruntime-dev xmlstarlet libopusfile-dev libopus-dev | |
| cd /usr/src | |
| wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22-current.tar.gz | |
| tar xvf aste |