diff --git a/linux/apas02.html b/linux/apas02.html index d3c6dd88ba..bd352a180f 100644 --- a/linux/apas02.html +++ b/linux/apas02.html @@ -1,6 +1,6 @@ 1.2. 参考文档Home | 简体中文 | 繁体中文 | 杂文 - | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

1.2. 参考文档

+ | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

1.2. 参考文档

http://www.faqs.org/docs/Linux-HOWTO/Bash-Prog-Intro-HOWTO.html

http://xiaowang.net/bgb-cn/index.html

diff --git a/linux/apas05.html b/linux/apas05.html index 11fdae1d8e..f9d582e7a7 100644 --- a/linux/apas05.html +++ b/linux/apas05.html @@ -1,6 +1,6 @@ 1.5. Common Vulnerabilities and ExposuresHome | 简体中文 | 繁体中文 | 杂文 - | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

1.5. Common Vulnerabilities and Exposures

+ | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

1.5. Common Vulnerabilities and Exposures

https://cve.mitre.org/index.html diff --git a/linux/apas07.html b/linux/apas07.html index 90ff8c0d09..d88ff22de5 100644 --- a/linux/apas07.html +++ b/linux/apas07.html @@ -1,6 +1,6 @@ 1.7. Redhat DocHome | 简体中文 | 繁体中文 | 杂文 - | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About

知乎专栏

1.7. Redhat Doc

+ | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

1.7. Redhat Doc

http://docs.redhat.com/docs/zh-CN/index.html diff --git a/linux/apas08.html b/linux/apas08.html index 1ce94f5f1c..6b3207a417 100644 --- a/linux/apas08.html +++ b/linux/apas08.html @@ -1,6 +1,6 @@ 1.8. System reduceHome | 简体中文 | 繁体中文 | 杂文 - | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About

知乎专栏

1.8. System reduce

+ | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

1.8. System reduce

采用最小化安装后仍有很多不必要的软件

diff --git a/linux/appendix.html b/linux/appendix.html
index a70e352c56..809d998b68 100644
--- a/linux/appendix.html
+++ b/linux/appendix.html
@@ -1,8 +1,8 @@
 
-附录 1. 附录Home | 简体中文 | 繁体中文 | 杂文
-		| Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

附录 1. 附录

+附录 1. 附录Home | 简体中文 | 繁体中文 | 杂文 + | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

附录 1. 附录

-

1.1. 贡献用户列表

+

1.1. 贡献用户列表

刘军 QQ: 470499989, 470499989@qq.com

@@ -14,7 +14,7 @@ -
\ No newline at end of file diff --git a/linux/homeassistant/ch172s03.html b/linux/homeassistant/ch173s03.html similarity index 97% rename from linux/homeassistant/ch172s03.html rename to linux/homeassistant/ch173s03.html index 649dda9ae9..99c6860078 100644 --- a/linux/homeassistant/ch172s03.html +++ b/linux/homeassistant/ch173s03.html @@ -1,6 +1,6 @@ -172.3. Python 开发接口Home | 简体中文 | 繁体中文 | 杂文 - | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

172.3. Python 开发接口

+173.3. Python 开发接口Home | 简体中文 | 繁体中文 | 杂文 + | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

173.3. Python 开发接口

安装包

@@ -13,7 +13,7 @@
 	
 			
 		
-
\ No newline at end of file diff --git a/linux/sbc/RaspberryPi.html b/linux/sbc/RaspberryPi.html index 59223f76cd..33dd0f64cc 100644 --- a/linux/sbc/RaspberryPi.html +++ b/linux/sbc/RaspberryPi.html @@ -1,13 +1,13 @@ -第 169 章 Raspberry PiHome | 简体中文 | 繁体中文 | 杂文 - | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

第 169 章 Raspberry Pi

+第 170 章 Raspberry PiHome | 简体中文 | 繁体中文 | 杂文 + | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

第 170 章 Raspberry Pi

https://www.raspberrypi.org/

-

169.1. 配置工具

+

170.1. 配置工具

-

169.1.1. rpi-update

+

170.1.1. rpi-update

 			
@@ -18,7 +18,7 @@
 	
-
\ No newline at end of file diff --git a/linux/voip/asterisk.html b/linux/voip/asterisk.html index 0f90ad3ce7..08c12fbb2e 100644 --- a/linux/voip/asterisk.html +++ b/linux/voip/asterisk.html @@ -1,20 +1,20 @@ -168.5. Asterisk (OpenSource Linux PBX that supports both SIP and H.323)Home | 简体中文 | 繁体中文 | 杂文 - | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

168.5. Asterisk (OpenSource Linux PBX that supports both SIP and H.323) +168.6. Asterisk (OpenSource Linux PBX that supports both SIP and H.323)Home | 简体中文 | 繁体中文 | 杂文 + | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

168.6. Asterisk (OpenSource Linux PBX that supports both SIP and H.323)

http://www.asteriskpbx.com/

-

168.5.1. Redhat/CentOS/RockyLinux/AlmiLinux

+

168.6.1. Redhat/CentOS/RockyLinux/AlmiLinux

 			
-[root@testing ~]# dnf install asterisk asterisk-pjsip
+[root@netkiller ~]# dnf install asterisk asterisk-pjsip
 			
 		
 			
-[root@testing ~]# ls /etc/asterisk/
+[root@netkiller ~]# ls /etc/asterisk/
 acl.conf              cdr.conf              dnsmgr.conf       modules.conf           say.conf
 adsi.conf             cdr_custom.conf       dsp.conf          musiconhold.conf       sla.conf
 aeap.conf             cdr_manager.conf      dundi.conf        muted.conf             smdi.conf
@@ -27,19 +27,19 @@
 asterisk.conf         cli_permissions.conf  indications.conf  res_parking.conf       users.conf
 ccss.conf             codecs.conf           logger.conf       res_stun_monitor.conf  vpb.conf
 cdr_beanstalkd.conf   confbridge.conf       manager.conf      rtp.conf
-[root@testing ~]#
+[root@netkiller ~]#
 			
 		
 			
-[root@testing ~]# cp /etc/asterisk/asterisk.conf{,.original} 
+[root@netkiller ~]# cp /etc/asterisk/asterisk.conf{,.original} 
 			
 		
 			
-[root@testing ~]# cp /etc/asterisk/extensions.conf{,.original} 
+[root@netkiller ~]# cp /etc/asterisk/extensions.conf{,.original} 
 
-[root@testing ~]# cat /etc/asterisk/extensions.conf
+[root@netkiller ~]# cat /etc/asterisk/extensions.conf
 [from-internal]
 exten = 100,1,Answer()
 same = n,Wait(1)
@@ -49,8 +49,8 @@
 		
 			
-[root@testing ~]# cp /etc/asterisk/pjsip.conf{,.original}			
-[root@testing ~]# cat /etc/asterisk/sip.conf
+[root@netkiller ~]# cp /etc/asterisk/pjsip.conf{,.original}			
+[root@netkiller ~]# cat /etc/asterisk/sip.conf
 [general]
 context=default
 
@@ -65,8 +65,8 @@
 		
 			
-[root@testing ~]# vim /etc/asterisk/pjsip.conf
-[root@testing ~]# cat /etc/asterisk/pjsip.conf
+[root@netkiller ~]# vim /etc/asterisk/pjsip.conf
+[root@netkiller ~]# cat /etc/asterisk/pjsip.conf
 [transport-udp]
 type=transport
 protocol=udp
@@ -95,9 +95,9 @@
 		
 			
-[root@testing ~]# systemctl enable asterisk
-[root@testing ~]# systemctl start asterisk
-[root@testing ~]# systemctl status asterisk
+[root@netkiller ~]# systemctl enable asterisk
+[root@netkiller ~]# systemctl start asterisk
+[root@netkiller ~]# systemctl status asterisk
 ● asterisk.service - Asterisk PBX and telephony daemon.
      Loaded: loaded (/usr/lib/systemd/system/asterisk.service; disabled; preset: disabled)
      Active: active (running) since Sat 2025-03-01 18:34:36 CST; 10s ago
@@ -108,21 +108,21 @@
      CGroup: /system.slice/asterisk.service
              └─3321189 /usr/sbin/asterisk -f -C /etc/asterisk/asterisk.conf
 
-Mar 01 18:34:38 testing asterisk[3321189]: [Mar  1 18:34:38] WARNING[3321189]: loader.c:2487 load_modules: Module 'app_>
-Mar 01 18:34:38 testing asterisk[3321189]: [Mar  1 18:34:38] WARNING[3321189]: loader.c:2487 load_modules: Module 'app_>
-Mar 01 18:34:38 testing asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: Error loading >
-Mar 01 18:34:38 testing asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: Error loading >
-Mar 01 18:34:38 testing asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: Failed to reso>
-Mar 01 18:34:38 testing asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: res_stir_shake>
-Mar 01 18:34:38 testing asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: cdr_syslog dec>
-Mar 01 18:34:38 testing asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: Failed to reso>
-Mar 01 18:34:38 testing asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: res_http_media>
-Mar 01 18:34:38 testing asterisk[3321189]: Asterisk Ready.
+Mar 01 18:34:38 netkiller asterisk[3321189]: [Mar  1 18:34:38] WARNING[3321189]: loader.c:2487 load_modules: Module 'app_>
+Mar 01 18:34:38 netkiller asterisk[3321189]: [Mar  1 18:34:38] WARNING[3321189]: loader.c:2487 load_modules: Module 'app_>
+Mar 01 18:34:38 netkiller asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: Error loading >
+Mar 01 18:34:38 netkiller asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: Error loading >
+Mar 01 18:34:38 netkiller asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: Failed to reso>
+Mar 01 18:34:38 netkiller asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: res_stir_shake>
+Mar 01 18:34:38 netkiller asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: cdr_syslog dec>
+Mar 01 18:34:38 netkiller asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: Failed to reso>
+Mar 01 18:34:38 netkiller asterisk[3321189]: [Mar  1 18:34:38] ERROR[3321189]: loader.c:2508 load_modules: res_http_media>
+Mar 01 18:34:38 netkiller asterisk[3321189]: Asterisk Ready.
 			
 		
 			
-[root@testing ~]# ss -lnp | grep asterisk
+[root@netkiller ~]# ss -lnp | grep asterisk
 u_str LISTEN 0      2                                                              /run/asterisk/asterisk.ctl 30717648               * 0    users:(("asterisk",pid=3322611,fd=5))
 
 udp   UNCONN 0      0                                                                                 0.0.0.0:56265            0.0.0.0:*    users:(("asterisk",pid=3322611,fd=8))
@@ -136,7 +136,7 @@
 		
 			
-[root@testing ~]# asterisk -rx "pjsip list auths"
+[root@netkiller ~]# asterisk -rx "pjsip list auths"
 
   I/OAuth:  <AuthId/UserName.............................................................>
 ==========================================================================================
@@ -147,7 +147,7 @@
 			
 		
-

168.5.2. 源码安装 asterisk-22

+

168.6.2. 源码安装 asterisk-22

 			
@@ -160,7 +160,7 @@
 			
 		
-

168.5.3. Ubuntu

+

168.6.3. Ubuntu

 			
@@ -199,11 +199,11 @@
 			
 		
-

168.5.4. RasPBX – Asterisk for Raspberry Pi

+

168.6.4. RasPBX – Asterisk for Raspberry Pi

http://www.raspberry-asterisk.org/

-

168.5.5. 配置文件

+

168.6.5. 配置文件

配置文件说明

@@ -262,12 +262,12 @@
 		
 		
-

168.5.6. 拨号规则设置

+

168.6.6. 拨号规则设置

extensions.conf

 			
-[root@testing ~]# cat /etc/asterisk/extensions.conf
+[root@netkiller ~]# cat /etc/asterisk/extensions.conf
 [from-internal]
 exten = 100,1,Answer()
 same = n,Wait(1)
@@ -296,11 +296,11 @@
 			
 		
-

168.5.7. pjsip

+

168.6.7. pjsip

 			
-testing*CLI> pjsip show auths
+netkiller*CLI> pjsip show auths
 
   I/OAuth:  <AuthId/UserName.............................................................>
 ==========================================================================================
@@ -309,12 +309,12 @@
 
 Objects found: 1
 
-testing*CLI> 			
+netkiller*CLI> 			
 			
 		
 			
-testing*CLI> dialplan show 6001@from-internal
+netkiller*CLI> dialplan show 6001@from-internal
 There is no existence of 'from-internal' context
 Command 'dialplan show 6001@from-internal' failed.
 			
@@ -331,16 +331,16 @@
 		
-

168.5.8. 配置例子

+

168.6.8. 配置例子

-

168.5.8.1. sip.conf

+

168.6.8.1. sip.conf

 			
-[root@testing ~]# cat /etc/asterisk/sip.conf
+[root@netkiller ~]# cat /etc/asterisk/sip.conf
 [general]
 context=default
 bindport=5060
@@ -446,7 +446,7 @@
 			
 			
 			
-[root@testing ~]# cat /etc/asterisk/extensions.conf
+[root@netkiller ~]# cat /etc/asterisk/extensions.conf
 [general]
 static=yes
 writeprotect=no
@@ -478,11 +478,11 @@
 			
 			
-

168.5.8.2. pjsip.conf

+

168.6.8.2. pjsip.conf

 			
-[root@testing asterisk]# cat pjsip.conf
+[root@netkiller asterisk]# cat pjsip.conf
 [transport-udp]
 type=transport
 protocol=udp
@@ -574,7 +574,7 @@
 			
-
\ No newline at end of file diff --git a/linux/voip/opensips.html b/linux/voip/opensips.html index 8ad0a8004e..0a553712e5 100644 --- a/linux/voip/opensips.html +++ b/linux/voip/opensips.html @@ -1,13 +1,13 @@ -168.4. OpenSIPSHome | 简体中文 | 繁体中文 | 杂文 - | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

168.4. OpenSIPS

OpenSER SIP Server 已经更名为 OpenSIPS

+168.5. OpenSIPSHome | 简体中文 | 繁体中文 | 杂文 + | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

168.5. OpenSIPS

OpenSER SIP Server 已经更名为 OpenSIPS

OpenSER SIP Server 已经更名为 OpenSIPS

http://www.openser.org/ 域名将跳转至 http://www.opensips.org/

-

168.4.1. 安装 OpenSIPS

+

168.5.1. 安装 OpenSIPS

-

168.4.1.1. Rocky Linux / AlmiLinux

+

168.5.1.1. Rocky Linux / AlmiLinux

安装 yum 源

@@ -25,16 +25,16 @@
 			

查看配置文件

 			
-[root@testing ~]# ls /etc/opensips/
+[root@netkiller ~]# ls /etc/opensips/
 dictionary.opensips  opensips.cfg  scenario_callcenter.xml  tls
 
-[root@testing ~]# cp /etc/opensips/opensips.cfg{,.original} 
+[root@netkiller ~]# cp /etc/opensips/opensips.cfg{,.original} 
 			
 			

检查配置文件

 			
-[root@testing ~]# opensips -C
+[root@netkiller ~]# opensips -C
 Mar  1 17:44:51 [3320338] INFO:core:fix_poll_method: using epoll as the IO watch method (auto detected)
 Listening on
              udp: 0.0.0.0 [0.0.0.0]:5060
@@ -46,14 +46,14 @@
 			

安装包

 			
-[root@testing ~]# dnf install opensips-auth-modules opensips-berkeley-module
+[root@netkiller ~]# dnf install opensips-auth-modules opensips-berkeley-module
 			
 			
 			
-[root@testing etc]# lsof -i:5060
+[root@netkiller etc]# lsof -i:5060
 COMMAND      PID     USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
 opensips 3328387 opensips   46u  IPv4 30784823      0t0  UDP localhost:sip
 opensips 3328388 opensips   46u  IPv4 30784823      0t0  UDP localhost:sip
@@ -67,7 +67,7 @@
 			
 			
-

168.4.1.2. centos 6.5 默认安装

+

168.5.1.2. centos 6.5 默认安装

centos 6.5 环境默认 opensips 包含如下软件包版本为1.7

# yum search opensips

@@ -155,7 +155,7 @@ # /etc/init.d/opensips start

-

168.4.1.3. 使用 yum.opensips.org 源安装

+

168.5.1.3. 使用 yum.opensips.org 源安装

安装 yum.opensips.org 源

@@ -280,7 +280,7 @@
 			
-

168.4.1.4. 编译安装

+

168.5.1.4. 编译安装

centos 环境

@@ -291,10 +291,10 @@
 			

-

168.4.2. 数据库部署

+

168.5.2. 数据库部署

你只能选择其中一种作为opensips的数据库

-

168.4.2.1. DBTEXT

+

168.5.2.1. DBTEXT

配置数据库

@@ -315,7 +315,7 @@
 INFO: creating DBTEXT extra tables at: /etc/opensips/dbtext ...
 			
-

168.4.2.2. MySQL

+

168.5.2.2. MySQL

# vim /etc/opensips/opensipsctlrc

@@ -388,7 +388,7 @@
 new user '1001' added
 			
-

168.4.2.3. PGSQL

+

168.5.2.3. PGSQL

# vim /etc/opensips/opensipsctlrc

@@ -402,7 +402,7 @@
 ETCDIR="/etc/opensips"
 			
-

168.4.2.4. Berkeley DB

+

168.5.2.4. Berkeley DB

 # grep -v ^# opensipsctlrc | grep -v ^$
@@ -434,7 +434,7 @@
 opensipsctl start
 		
-

168.4.3. 测试 opensips

+

168.5.3. 测试 opensips

首先创建一些账号

@@ -458,7 +458,7 @@
 1002
 		
-