dnsmasq is free software providing Domain Name System (DNS) caching, a Dynamic Host Configuration Protocol (DHCP) server, router advertisement and network boot features, intended for small computer networks.
-
Run the following in powershell as admin
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
-
Install a distro (ex: Ubuntu 18.04 LTS - https://www.microsoft.com/store/apps/9N9TNGVNDL3Q)
-
Open your distro you installed via the start menu, let it setup
-
Update and upgrade
sudo apt-get update
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
#!/bin/env python3 | |
import sys | |
import shlex | |
import json | |
from subprocess import Popen | |
from subprocess import PIPE | |
get_pid = shlex.split("pgrep -c [k]amailio") | |
uac_cmd = shlex.split("/usr/sbin/kamctl rpc uac.reg_dump") | |
check_name = "uac_reg_" |
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
mount /dev/md2 /mnt | |
mount -o rbind /dev /mnt/dev | |
mount -t proc proc /mnt/proc | |
mount -t sysfs sys /mnt/sys | |
chroot /mnt |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
https://blog.alexellis.io/test-drive-k3s-on-raspberry-pi/
Set the GPU memory split to 16mb
Add this to /boot/cmdline.txt cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
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
Nov 7 13:38:06 sbc1 /usr/sbin/kamailio[6140]: INFO: <script>: Received message | |
'OPTIONS sip:sbc-d01.MYDOMAIN.EXAMPLE:5061;transport=tls SIP/2.0 | |
FROM: <sip:sip-du-a-eu.pstnhub.microsoft.com:5061>;tag=8eb9b958-72f0-4827-a3be-ec9f825f7649 | |
TO: <sip:sbc-d01.MYDOMAIN.EXAMPLE> | |
CSEQ: 1 OPTIONS | |
CALL-ID: 9cca2786-b6df-4b3e-882b-db1dfe2de040 | |
MAX-FORWARDS: 70 | |
VIA: SIP/2.0/TLS 52.114.75.24:5061;branch=z9hG4bKa01fb94a | |
CONTACT: <sip:sip-du-a-eu.pstnhub.microsoft.com:5061> | |
CONTENT-LENGTH: 0 |
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
#!KAMAILIO | |
####### Include Local Config If Exists ######### | |
import_file "kamailio-local.cfg" | |
# Content of kamailio-local.cfg | |
listen=udp:172.20.xx.xxx:5060 # CORRECT THIS | |
listen=tls:212.xx.xx.xxx:5061 # CORRECT THIS | |
#!define DBURL "text:///etc/kamailio/database" | |
#!define WITH_NAT |
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
kamailio -DD -E -f /etc/kamailio/kamailio.cfg 2>&1 | tee -a LOGFILE | |
cat LOGFILE | grep -v 'core/re.c:' > LOGFILE.txt | |
0(28227) INFO: <core> [core/ppcfg.c:83]: pp_subst_add(): ### added subst expression: !MY_HTTP_ADDR!tcp:127.0.0.1:8080!g | |
0(28227) INFO: tls [tls_init.c:503]: init_tls_compression(): disabling compression... | |
0(28227) INFO: <core> [core/sctp_core.c:75]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module | |
0(28227) WARNING: <core> [core/socket_info.c:1394]: fix_hostname(): could not rev. resolve 212.XX.XX.XX | |
0(28227) WARNING: <core> [core/socket_info.c:1394]: fix_hostname(): could not rev. resolve 172.20.120.83 | |
0(28227) WARNING: <core> [core/socket_info.c:1394]: fix_hostname(): could not rev. resolve 172.20.120.83 | |
0(28227) WARNING: <core> [core/socket_info.c:1394]: fix_hostname(): could not rev. resolve 212.XX.XX.XX |
NewerOlder