Latest Entries »

首先声明:不需要升级KERNEL内核。centos8自带BBR功能,只是未开启。

1、正在运行的系统生效:
sysctl -w net.ipv4.tcp_congestion_control=bbr

2、重启后也能生效:
echo “net.ipv4.tcp_congestion_control = bbr” >> /etc/sysctl.conf

3、验证当前设置:
sysctl -a | egrep -e congestion
net.ipv4.tcp_allowed_congestion_control = reno cubic bbr
net.ipv4.tcp_available_congestion_control = reno cubic bbr
net.ipv4.tcp_congestion_control = bbr

PS:开启BBR对新建立链接立即生效,对已建立链接的,需要重新建立链接才能生效。

显示当前链接使用的拥塞控制算法:
ss -tin

https://access.redhat.com/solutions/3713681

一、环境初始化
# 开启Ubuntu’s universe 更新源
sudo apt-add-repository universe
# 更新源最新的包版本信息
apt update
# 改主机名
sudo hostnamectl set-hostname meet.example.org
# 改主机名文件设置Fully Qualified Domain Name (FQDN)
vi /etc/hosts
127.0.0.1 localhost meet.example.org
# 测试主机名解析
ping “$(hostname)”
# 添加Jitsi 更新源
curl https://download.jitsi.org/jitsi-key.gpg.key | sudo sh -c ‘gpg –dearmor > /usr/share/keyrings/jitsi-keyring.gpg’
echo ‘deb [signed-by=/usr/share/keyrings/jitsi-keyring.gpg] https://download.jitsi.org stable/’ | sudo tee /etc/apt/sources.list.d/jitsi-stable.list > /dev/null
# 更新源最新包信息
sudo apt update
# 开通防火墙权限
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 4443/tcp
sudo ufw allow 10000/udp
sudo ufw allow 22/tcp
sudo ufw enable
# 检验防火墙策略是否生效
sudo ufw status verbose

二、安装、部署、优化、排错、附加组件
# 安装Jitsi Meet
sudo apt install jitsi-meet
# 免费证书自动续期,选装,非必须
sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
# 修改内核参数
/etc/systemd/system.conf
DefaultLimitNOFILE=65000
DefaultLimitNPROC=65000
DefaultTasksMax=65000
# 检验内核参数是否生效
systemctl show –property DefaultLimitNPROC
systemctl show –property DefaultLimitNOFILE
systemctl show –property DefaultTasksMax
# 排错时,常用日志路径
/var/log/jitsi/jvb.log
/var/log/jitsi/jicofo.log
/var/log/prosody/prosody.log
# 附加功能安装sip-gateway,安装时将提示输入SIP的帐号密码
sudo apt install jigasi

======================
1、JITSI所用端口说明
80 TCP – for SSL certificate verification / renewal with Let’s Encrypt
443 TCP – for general access to Jitsi Meet
4443 TCP – for fallback network video/audio communications (when UDP is blocked for example)
10000 UDP – for general network video/audio communications
22 TCP – if you access you server using SSH (change the port accordingly if it’s not 22)

2、更换个性设置
Logos Change
/usr/share/jitsi-meet/images/watermark.png
Favicon Change
/usr/share/jitsi-meet/images/favicon.ico
Change welcome page content
/usr/share/jitsi-meet/libs/app.bundle.min.js

PS:
https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-quickstart
https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-manual
https://gitlab.talview.com/meet/lib-jitsi-meet-v1/tree/59fc3642a6bc612ac0366d118718e942153b85c5
http://www.xmanong.com/project/12272

让xscreensaver随机自启

1、安装
sudo pacman -S xscreensaver

2、配置屏保
xscreensaver-demo

3、编辑启动文件
vi ~/.config/systemd/user/xscreensaver.service
[Unit]
Description=XScreenSaver
[Service]
ExecStart=/usr/bin/xscreensaver -nosplash
[Install]
WantedBy=default.target

4、加入自启动项
systemctl –user enable xscreensaver

#!/bin/bash
i=1

# 硬盘数量,除系统盘之外是12块
while [ $i -lt 13 ]
do
# 若不足2位数,则左侧补0
k=`printf “%02d” $i`
# ready for convert ascii value to char
u=$((97+$i))
# 系统盘是sda,%c格式化为单个字符
#j=`echo $i|awk ‘{printf “%c”,97+$i}’`
#j=echo $u|awk ‘{printf(“%c”,$1)}’
j=$(printf \\x`printf %x $u`)

# 每个物理硬盘整块分成一个区
parted -s /dev/sd$j mklabel gpt
parted /dev/sd$j mkpart primary ext4 0% 100%
# 格式化磁盘
mkfs.ext4 /dev/sd${j}1

# 建立挂载点目录
mkdir /mnt/disk${k}
# 导入挂载硬盘信息
mountfs=”/dev/sd${j}1 /mnt/disk${k} ext4 defaults 0 0″

# 写入分区表
echo $mountfs >>/etc/fstab

i=$(($i+1))
done
echo “It’s mounting all of the disk, wait a min, plz”
# 挂载fstab里所有的磁盘
mount -a
echo “SUCCESS, CONGRATULATIONS!”

#!/bin/bash
# 业务IP
IP=10.131.0.117
GW=10.131.0.251
# 心跳IP
HB=172.17.0.117
# 业务网卡
ETH1=eno1
ETH2=ens6f0
# 心跳网卡
ETH3=eno2
ETH4=ens6f1

modprobe –first-time bonding
#modprobe bonding

cd /etc/sysconfig/network-scripts/
mkdir bak
mv ifcfg-$ETH1 ifcfg-$ETH2 ifcfg-$ETH3 ifcfg-$ETH4 bak/

cat < /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
#NAME=bond0
TYPE=Bond
BONDING_MASTER=yes
IPADDR=$IP
PREFIX=24
GATEWAY=$GW
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=6 miimon=100"
NM_CONTROLLED="no"
USERCTL=no
EOF

cat < /etc/sysconfig/network-scripts/ifcfg-bond1
DEVICE=bond1
#NAME=bond1
TYPE=Bond
BONDING_MASTER=yes
IPADDR=$HB
PREFIX=24
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=6 miimon=100"
NM_CONTROLLED="no"
USERCTL=no
EOF

cat < /etc/sysconfig/network-scripts/ifcfg-$ETH1
DEVICE=$ETH1
#NAME=bond0-slave1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
NM_CONTROLLED="no"
EOF

cat < /etc/sysconfig/network-scripts/ifcfg-$ETH2
DEVICE=$ETH2
#NAME=bond0-slave2
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
NM_CONTROLLED="no"
EOF

cat < /etc/sysconfig/network-scripts/ifcfg-$ETH3
DEVICE=$ETH3
#NAME=bond1-slave1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
MASTER=bond1
SLAVE=yes
NM_CONTROLLED="no"
EOF

cat < /etc/sysconfig/network-scripts/ifcfg-$ETH4
DEVICE=$ETH4
#NAME=bond1-slave2
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
MASTER=bond1
SLAVE=yes
NM_CONTROLLED="no"
EOF

systemctl restart network
echo $IP
ping -c 3 $GW

Dim x, y, time

Randomize

x = Int((30 – (-30) + 1) * Rnd + (-30))

y = Int((10 – (- 10 ) + 1) * Rnd + (- 10 ))

time = Int((200 – (- 1 ) + 1) * Rnd + (- 1 ))

IfColor 8, 754, “14100e”, 0 Then

MoveTo 200, 310

LeftClick 1

End If

IfColor 490, 490, “1400dc”, 0 Then

MoveTo 357 + x, 485 + y

LeftClick 1

Delay 1000 + time

End If

IfColor 1228, 89, “ff7a00”, 0 Then

MoveTo 1228 + y, 89 + y

LeftClick 1

End If

IfColor 720, 59, “ff7a00”, 0 Then

MoveTo 174 + x, 147 + y

LeftClick 1

Delay 3000 + time

MoveTo 330 + x, 633 + y

LeftClick 1

Delay 3000 + time

MoveTo 894 + x, 220 + y

LeftClick 1

Delay 3000 + time

End If

IfColor 404, 126, “2f3bff”, 0 Then

Delay 1000 + time

MoveTo 206 + x, 195 + y

LeftClick 1

Delay 2000 + time

MoveTo 96 + x, 312 + y

LeftClick 1

Delay 2000 + time

MoveTo 705 + x, 188 + y

LeftClick 1

Delay 2000 + time

IfColor 769, 615, “ff7a00”, 0 Then

MoveTo 265 + x, 615 + y

LeftClick 1

Else

MoveTo 639 + x, 615 + y

LeftClick 1

End If

Delay 2000 + time

MoveTo 639 + x, 241 + y

LeftClick 1

Delay 4000 + time

MoveTo 190 + x, 717 + y

LeftClick 1

Delay 2000 + time

LeftClick 1

End If

IfColor 750,714, “f4eeee”,0 then

MoveTo 640 + x, 714 + y

LeftClick 1

Delay 120 + time

End If

IfColor 1091,710,”fd7900″,0 Then

MoveTo 1091 + x + x, 710 + y

LeftClick 1

Delay 4001

End If

IfColor 642,307,”6430ff”,2 Then

MoveTo 707 + x, 583 + y

LeftClick 1

Delay 2001 + time

MoveTo 745 + x, 713 + y

LeftClick 1

Delay 2012 + time

MoveTo 627 + x, 245 + y

LeftClick 1

Delay 2052 + time

MoveTo 512 + x, 414 + y

LeftClick 1

Delay 2031 + time

MoveTo 716 + x, 446 + y

LeftClick 1

Delay 6047 + time

MoveTo 716 + x, 537 + y

LeftClick 1

Delay 2013 + time

MoveTo 1092 + x, 714 + y

LeftClick 1

Delay 2087 + time

End If

IfColor 705,605,”f1decb”,0 Then

MoveTo 705 + x, 605 + y

LeftClick 1

Delay 102 + time

End If

IfColor 62,77,”301e00″,0 Then

MoveTo 884 + x * 5, 364 + y * 15

LeftClick 1

Delay 102 + time

End If

IfColor 329,660,”301e00″,0 Then

MoveTo 884 + x * 5, 364 + y * 15

LeftClick 1

Delay 102 + time

End If

IfColor 706, 500, “F1DECB”, 0 Then

MoveTo 706 + x, 500 + y

LeftClick 1

Delay 102 + time

End If

IfColor 738, 553, “F1DECB”, 0 Then

MoveTo 738 + x, 553 + y

LeftClick 1

Delay 1102 + time

MoveTo 722 + x, 711 + y

LeftClick 1

Delay 1202 + time

End If

IfColor 722, 459, “F1DECB”, 0 Then

MoveTo 722 + x, 459 + y

LeftClick 1

Delay 104 + time

End If

Delay 100 + time

==================
BY B站hoassi支持自动闪退重进,图标放第二行第一列

Dim x, y, time

Randomize

x = Int((30 – (-30) + 1) * Rnd + (-30))

y = Int((10 – (- 10 ) + 1) * Rnd + (- 10 ))

time = Int((200 – (- 1 ) + 1) * Rnd + (- 1 ))

IfColor 1200, 50, “ffffff”, 0 Then

MoveTo 200, 310

LeftClick 1

End If

IfColor 44, 71, “2A00E0”, 0 Then

MoveTo 357 + x, 485 + y

LeftClick 1

Delay 1000 + time

End If

IfColor 1228, 89, “ff7a00”, 0 Then

MoveTo 1228 + y, 89 + y

LeftClick 1

End If

IfColor 727, 66, “3C081A”, 0 Then

MoveTo 174 + x, 147 + y

LeftClick 1

Delay 3000 + time

MoveTo 935 + x, 365 + y

LeftClick 1

Delay 3000 + time

MoveTo 637 + x, 386 + y

LeftClick 1

Delay 3000 + time

End If

IfColor 404, 126, “2f3bff”, 0 Then

Delay 1000 + time

MoveTo 206 + x, 195 + y

LeftClick 1

Delay 2000 + time

MoveTo 96 + x, 312 + y

LeftClick 1

Delay 2000 + time

MoveTo 705 + x, 188 + y

LeftClick 1

Delay 2000 + time

IfColor 769, 615, “ff7a00″, 0 Then

MoveTo 265 + x, 615 + y

LeftClick 1

Else

MoveTo 639 + x, 615 + y

LeftClick 1

End If

Delay 2000 + time

MoveTo 639 + x, 241 + y

LeftClick 1

Delay 4000 + time

MoveTo 190 + x, 717 + y

LeftClick 1

Delay 2000 + time

LeftClick 1

End If

IfColor 1091,710,”fd7900″,0 Then

MoveTo 1091 + x + x, 710 + y

LeftClick 1

Delay 4001

End If

IfColor 642,307,”6430ff”,2 Then

MoveTo 707 + x, 583 + y

LeftClick 1

Delay 2001 + time

MoveTo 745 + x, 713 + y

LeftClick 1

Delay 2012 + time

MoveTo 627 + x, 245 + y

LeftClick 1

Delay 2052 + time

MoveTo 512 + x, 414 + y

LeftClick 1

Delay 2031 + time

MoveTo 716 + x, 446 + y

LeftClick 1

Delay 6047 + time

MoveTo 716 + x, 537 + y

LeftClick 1

Delay 2013 + time

MoveTo 1092 + x, 714 + y

LeftClick 1

Delay 2087 + time

End If

IfColor 705,605,”f1decb”,0 Then

MoveTo 705 + x, 605 + y

LeftClick 1

Delay 102 + time

End If

IfColor 62,77,”301e00″,0 Then

MoveTo 884 + x * 5, 364 + y * 15

LeftClick 1

Delay 102 + time

End If

IfColor 329,660,”301e00″,0 Then

MoveTo 884 + x * 5, 364 + y * 15

LeftClick 1

Delay 102 + time

End If

IfColor 706, 500, “F1DECB”, 0 Then

MoveTo 706 + x, 500 + y

LeftClick 1

Delay 102 + time

End If

IfColor 738, 553, “F1DECB”, 0 Then

MoveTo 738 + x, 553 + y

LeftClick 1

Delay 1102 + time

MoveTo 722 + x, 711 + y

LeftClick 1

Delay 1202 + time

End If

IfColor 722, 459, “F1DECB”, 0 Then

MoveTo 722 + x, 459 + y

LeftClick 1

Delay 104 + time

End If

Delay 100 + time

=================
BY B站hoassi支持自动闪退重进,图标放在左边第一列第二行

Dim x, y, time

Randomize

x = Int((30 – (-30) + 1) * Rnd + (-30))

y = Int((10 – (- 10 ) + 1) * Rnd + (- 10 ))

time = Int((200 – (- 1 ) + 1) * Rnd + (- 1 ))

IfColor 1200, 50, “ffffff”, 0 Then

MoveTo 200, 180

LeftClick 1

End If

IfColor 226, 287, “7800eb”, 0 Then

MoveTo 357 + x, 485 + y

LeftClick 1

Delay 1000 + time

End If

IfColor 1228, 89, “ff7a00”, 0 Then

MoveTo 1228 + y, 89 + y

LeftClick 1

End If

IfColor 720, 59, “ff7a00”, 0 Then

Delay 2000 + time

MoveTo 174 + x, 147 + y

LeftClick 1

Delay 3000 + time

IfColor 331, 388, “ffffff”, 0 Then

MoveTo 1057 + x, 629 + y * 2

LeftClick 1

Delay 3000 + time

End If

End If

IfColor 723, 192, “fe7900”, 0 Then

IfColor 764, 192, “fefefe”, 0 Then

IfColor 678, 192, “fefefe”, 0 Then

MoveTo 809 + x, 365 + y * 5

LeftClick 1

Delay 3000 + time

End If

End If

End If

IfColor 404, 126, “2f3bff”, 0 Then

Delay 1000 + time

IfColor 206, 195, “ffffff”, 0 Then

MoveTo 206 + x, 195 + y

LeftClick 1

Delay 2000 + time

MoveTo 96 + x, 312 + y

LeftClick 1

Delay 3000 + time

MoveTo 747 + x, 186 + y

LeftClick 1

Delay 3000 + time

End If

IfColor 30, 615, “FFFFFF”, 0 Then

MoveTo 30 + x, 545 + y

LeftClick 1

Else

MoveTo 639 + x, 545 + y

LeftClick 1

End If

Delay 2000 + time

MoveTo 1111 + x, 717 + y

LeftClick 1

Delay 6000 + time

MoveTo 639 + x, 450 + y

LeftClick 1

Delay 2000 + time

MoveTo 156 + x, 717 + y

LeftClick 1

End If

IfColor 260,211,”2f3bff”,0 Then

Delay 2001 + time

IfColor 837, 208, “2f3bff”, 0 Then

MoveTo 803 + x, 255 + y*3

LeftClick 1

Delay 213 + time

MoveTo 803 + x, 407 + y*3

LeftClick 1

Delay 209 + time

MoveTo 803 + x, 559 + y*3

LeftClick 1

Delay 230 + time

End If

MoveTo 454 + x, 254 + y*3

LeftClick 1

Delay 231 + time

MoveTo 454 + x, 406 + y*3

LeftClick 1

Delay 210 + time

MoveTo 454 + x, 558 + y*3

LeftClick 1

Delay 224 + time

MoveTo 745 + x, 713 + y

LeftClick 1

Delay 2012 + time

MoveTo 627 + x, 245 + y

LeftClick 1

Delay 2052 + time

MoveTo 512 + x, 414 + y

LeftClick 1

Delay 2031 + time

MoveTo 716 + x, 446 + y

LeftClick 1

Delay 6047 + time

MoveTo 716 + x, 537 + y

LeftClick 1

Delay 2013 + time

MoveTo 1113 + x, 719 + y

LeftClick 1

Delay 2087 + time

End If

IfColor 1091,710,”fd7900″,0 Then

MoveTo 1107 + x * 4, 717 + y * 3

LeftClick 1

Delay 2001 + time

End If

IfColor 705,605,”f1decb”,0 Then

MoveTo 705 + x, 605 + y

LeftClick 1

Delay 102 + time

End If

IfColor 37,117,”472344″,2 Then

MoveTo 1091 + x + x, 710 + y

LeftClick 1

Delay 102 + time

End If

IfColor 82,184,”472344″,2 Then

MoveTo 1091 + x + x, 710 + y

LeftClick 1

Delay 110 + time

End If

IfColor 706, 500, “F1DECB”, 0 Then

MoveTo 706 + x, 500 + y

LeftClick 1

Delay 102 + time

End If

IfColor 710, 714, “f4eeee”, 0 Then

MoveTo 638 + x+ x, 717 + y

LeftClick 1

Delay 500 + time

End If

IfColor 738, 553, “F1DECB”, 0 Then

MoveTo 738 + x, 553 + y

LeftClick 1

Delay 1102 + time

MoveTo 722 + x, 711 + y

LeftClick 1

Delay 1202 + time

End If

IfColor 722, 459, “F1DECB”, 0 Then

MoveTo 722 + x, 459 + y

LeftClick 1

Delay 104 + time

End If

IfColor 93, 468, “fe7900”, 0 Then

IfColor 93, 604, “fe7900”, 0 Then

IfColor 183, 714, “fe7900”, 0 Then

MoveTo 183 + x, 714 + y

LeftClick 1

Delay 2000 + time

End If

End If

End If

IfColor 1149, 591, “ff7a00”, 0 Then

IfColor 586, 591, “ff7a00”, 0 Then

IfColor 1101, 591, “ffffff”, 0 Then

MoveTo 920 + x, 400 + y

LeftClick 1

Delay 2000 + time

End If

End If

End If

Delay 100 + time

=========================
BY B站hoassi,APP图标放第一行第一列

PES2020手游刷熟练度教练列表

管理值 阵型 姓名 国籍
750 4231 拉斯洛*伯勒尼 罗马尼亚
730 532 马里乌斯*舒穆迪卡 罗马尼亚
730 4222 艾库特*科贾曼 土耳其
720 4213 伯纳德*沙朗德 瑞士
720 433 卡莱*英厄布里格森 挪威
710 3223 贝尼亚特*圣何塞 西班牙
700 3232 安德烈*加斯帕尔 巴西
700 433 马克*布里斯 比利时
700 4231 埃罗尔*布卢特 土耳其
700 4321 肯特*涅尔森 丹麦
690 4222 金钟夫 韩国
690 4231 迪奥尼西奥*博松 阿根廷
690 4321 胡利奥*里瓦斯 乌拉圭
690 4312 罗伯托*文图拉托 意大利
690 5212 哈基姆*沙克尔 伊拉克
680 4222 热尔松*古斯芒 巴西
670 4321 贝恩德*霍勒巴赫 德国
670 4231 伊斯梅尔*卡塔尔 土耳其
660 4231 胡伦*皮纳塔尔 哥伦比亚
660 4231 阿德里安*洛伦索 哥伦比亚
650 433 克里斯蒂安*尼尔森 丹麦
640 433 彼得*瑟伦森 丹麦
600 3232 赫尔曼*科明 罗马尼亚
600 5221 素拉蓬I*空贴 泰国
590 4231 巴勇*坤南 泰国
580 3241 差萨克*西里普姆 泰国

先试更改用户所有者
takeown /f 111/ /r /a

再试授权
icacls 111/ /grant “administrators:(f)” /t /c

然后就可以完全删掉了。