Skip to content

Instantly share code, notes, and snippets.

View tontheonelove's full-sized avatar
🏠
Working from home

theonelove tontheonelove

🏠
Working from home
View GitHub Profile
1️⃣ ปรับค่าในฝั่ง Issabel / Asterisk
ไฟล์ sip_general_custom.conf (ถ้าใช้ chan_sip)
ini
; ลดเวลาหมดอายุการลงทะเบียน
defaultexpiry=60
minexpiry=60
maxexpiry=120
; เปิด NAT support
[base]
name=CentOS-$releasever - Base
baseurl=http://archive.kernel.org/centos-vault/7.9.2009/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
How to install Plesk Control Panel on Ubuntu 22
Update your server
#sudo apt update
#sudo apt upgrade
Download and Install Plesk Control Panel on Ubuntu 20.04
#wget http://autoinstall.plesk.com/plesk-installer
Configuring a Centralized Syslog Server with Syslog-ng on Ubuntu 22
Installation of Syslog-ng
#sudo apt-get update
#sudo apt-get install syslog-ng
#systemctl start syslog-ng
Configuring Syslog-ng
How to Set Up SFTP User on Linux
Creating a New SFTP User
#sudo adduser sftpuser
set password
Creating a Directory for SFTP
Installing Odoo 17, Nginx and SSL Certificate on Ubuntu 22.04 Server
Prerequisites
Ubuntu 22.04 server (Official recommendation on minimum server requirements are 1 CPU and 2GB of RAM).
Domain name pointing to the server.
Installing Odoo
#apt update
How to Install Portainer on Debian 12
Update and Upgrade the System
#apt update -y
#apt upgrade -y
Install Required Packages
#apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y
Installing Grafana with Nginx on Ubuntu 22.04
Step 1: Update System Packages:
#sudo apt update && sudo apt upgrade
Step 2: Add the Grafana repository:
#sudo apt install -y apt-transport-https software-properties-common wget
How to Install FreePBX 17 on Debian 12 with Asterisk 21
apt-get update
apt-get upgrade
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
apt -y install git vim curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev build-essential libjansson-dev libxml2-dev uuid-dev expect
apt-get install -y build-essential 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 libncurses5-dev libssl-dev mpg123 libxml2-dev libnewt-dev sqlite3  libsqlite3-dev pkg-config automake libtool autoconf git unixodbc-dev uuid uuid-dev libasound2-dev libogg-dev libvorbis-dev libicu-dev libcurl4-openssl-dev odbc-mariadb libical-dev libneon27-dev libsrtp2-dev  libspandsp-dev sudo subversion libtool-bin python
Install FreeRADIUS and Daloradius on Debian 12
Step 1: Update your Server
#sudo apt -y update
Step 2: Install Database Server
#sudo apt install curl -y
#curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s --