[Ubuntu][L2TP-VPN] reconnect VPN

ref: https://askubuntu.com/questions/679059/auto-reconnect-to-vpn-on-disconnect

在 Ubuntu 22.04 設定 L2TP 後, 每10分鐘會離線, 就不再重連線;
依照上述網站提供的方法, 可保持連線, 也不用特別去寫 shell script

nmcli connection modify <Your VPN connection name> connection.autoconnect-retries 0
nmcli connection modify <Your VPN connection name> vpn.persistent yes

ssh from Rocky9 to CentOS 6

question

https://serverfault.com/questions/1125843/error-in-libcrypto-connecting-rhel-9-server-to-centos-6-via-sftp-ssh

# update-crypto-policies --set LEGACY
Setting system policy to LEGACY

[Samsung][Gear VR] Oculus Media plugin issue

REF: https://communityforums.atmeta.com/t5/Get-Help/Samsung-gear-vr-update-Oculus-Media-Plugin-error/td-p/1111933

I found a solution. It is not about cache or clear data. It is about to cheat installer. Installer must think that it did it itself. To do it. You need go to settings on your phone and uninstall everything with OCULUS in name to buy some time to switch during installation.  Then download OCULUS MEDIA PLUGIN APK. But don’t install it ! Put your gear vr and setup will run. Now is important. When installer will start download other components, switch screen to files and run APK. It must be installed same time when installer is downloading other components. Then it think it downloaded and installed OCULUS MEDIA PLUGIN itself and setup is going on. Point of deleting other components is only to buy a time to switch screen to run APK.

Good luck guys. Sad thing is, it mean there is no update at all, because you use same old APK and everything is working. So why they did it ? Maybe to convince you to buy new hardware 

[Cacti][轉文] cacti不能实时刷新流量图_cacti关于流量图时间选择失效的bug

資料來源: https://blog.csdn.net/weixin_39746652/article/details/111954379

TITLE: cacti不能实时刷新流量图_cacti关于流量图时间选择失效的bug

weixin_39746652

于 2020-12-24 09:30:50 发布

319
收藏
文章标签: cacti不能实时刷新流量图
版权
事故详情

2020年9月13日晚,Cacti时间过滤器出现BUG,致全球Cacti用户受影响,具体故障现象为 选择时间过滤后没效果,最近时间也无效,点击没反应,经过Github官方反馈得知,由于时间戳设置的问题,导致图形过滤器出现故障。

存在BUG的版本:

=0.8.7<1.2.10

0.8.7至1.2.10所有版本,均会出现此故障

不受影响的版本:

=1.2.10后所有版本,<0.8.7前所有版本

问题分析

Cacti从0.8.7版本开始,也就是说在2007年(13年前)设置了时间戳的值为1600000000,转换成时间为2020-09-13 20:26:40,表示在2020年9月13日20点26分40秒后,选择过滤图形时间会导致失效,图形过滤器出现BUG。

3.修复方法

0.8.7版本至1.0.0版本修复方法如下:

修改当前web根目录下的graph_xport.php和graph_image.php两个文件,查找1600000000,每个文件中会有两个这个值,将其全部改成2088385563,修改后无需重启任何服务,直接刷新当前浏览器即可!

if (!empty($_GET[“graph_start”]) && $_GET[“graph_start”] < 1600000000) {

$graph_data_array[“graph_start”] = $_GET[“graph_start”];

}

if (!empty($_GET[“graph_end”]) && $_GET[“graph_end”] < 1600000000) {

$graph_data_array[“graph_end”] = $_GET[“graph_end”];

}

1.0.0版本至1.2.10版本修复方法如下:

修改当前web根目录下的graph_image.php、graph_json.php、graph_xport.php、remote_agent.php这四个文件,查找1600000000,将其全部改成2088385563,修改后无需重启任何服务,直接刷新当前浏览器即可!

if (!isempty_request_var(‘graph_start’) && get_request_var(‘graph_start’) < 1600000000) {

$graph_data_array[‘graph_start’] = get_request_var(‘graph_start’);

}

if (!isempty_request_var(‘graph_end’) && get_request_var(‘graph_end’) < 1600000000) {

$graph_data_array[‘graph_end’] = get_request_var(‘graph_end’);

}

为什么要改成2088385563?

其实此BUG,官方在1.2.10版本时已经修复了,因为时间没到,一直没触发BUG。

官方在1.2.10版本中将1600000000改成了FILTER_VALIDATE_MAX_DATE_AS_INT变量,此变量定义的值是2088385563,也就是说在2036-03-06 11:06:03后,还会出现时间戳故障。

所以说这个2088385563值不是固定的,你也可以改成2600000000,不过我相信2088385563这个值已经够用了,我们可以来预测一下2036年Cacti还会更新么?

注释:本文转载至吴昊博客
————————————————
版权声明:本文为CSDN博主「weixin_39746652」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_39746652/article/details/111954379

[alfresco][solr4] 頁面出現”無法取得標籤”

先說原因: 在 alfresco-globle.properties 裡, 之前設定了 solr.port = 8080 以及 solr.secureComms=none, 但並沒有發現會有標籤TAG顯示的問題, 後來回復原本的設定, 重跑 Alfresco 服務即可

除了上述可見情況, 也可能會發生在USER的儀表板中, 出現 “無法取得資料”等狀況。

後記: 在 alfresco-global.properties 看到 solr4 被設定成 secureComms=none, 以及 solr4.port=8080, 而造成搜尋失常, 有動作但沒結果;
改回 https, solr4.port.ssl=8443 ,之後, 又可以在 alfresco裡正常搜尋了

[tensorflow] 版本對應表

https://www.tensorflow.org/install/source?hl=zh-tw

[ELK][logstash][錯誤排除]log資料無法進elasticsearch

https://its-security.blogspot.com/2020/01/logstash-log-elasticsearch-default.html

解決方案如上

←Older