DA过期 Directadmin License has expired

Centos5 老古董上的 Directadmin 还在服役,登录控制面板提示: License has expired 检查License并未过期,原因是TLSv1.1与TLSv1.2无法在Centos5上正常工作,导致 Directadmin 无法正常更新License
  1. [root@hostname scripts]# ./getLicense.sh $client_id $license_id
  2. --2020-03-06 01:50:58--  https://www.directadmin.com/cgi-bin/licenseupdate?lid=$license_id&uid=$client_id
  3. Resolving www.directadmin.com... 216.144.255.179
  4. Connecting to www.directadmin.com|216.144.255.179|:443... connected.
  5. Unable to establish SSL connection.
  6. Error downloading the license file
  7. Error determining IP via myip.directadmin.com
  8. Trying license relay server...
  9. --2020-03-06 01:50:59--  https://license.directadmin.com/licenseupdate.php?lid=$license_id&uid=$client_id
  10. Resolving license.directadmin.com... 69.162.69.58, 185.42.221.168
  11. Connecting to license.directadmin.com|69.162.69.58|:443... connected.
  12. Unable to establish SSL connection.
  13. Error downloading the license file from relay server as well.
  14. Error determining IP via myip.directadmin.com
登录服务器
  1. echo 1 > /root/.insecure_download && chattr +i /root/.insecure_download ; cd /usr/local/directadmin/scripts && ./getLicense.sh $client_id $license_id && service directadmin restart || killall -TERM directadmin ; service directadmin start

ssh禁止在ipv6上监听

  1. root@localhost:~# netstat -nltp
  2. Active Internet connections (only servers)
  3. Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
  4. tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      5866/sshd
  5. tcp6       0      0 :::22                   :::*                    LISTEN      5866/sshd
  6.  
  7. root@localhost:~# echo -ne '#ipv6 disallow\nAddressFamily inet\n' >> /etc/ssh/sshd_config
  8.  
  9. root@localhost:~# service ssh restart
  10. ssh stop/waiting
  11. ssh start/running, process 6208
  12. root@localhost:~# netstat -nltp
  13. Active Internet connections (only servers)
  14. Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
  15. tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      6208/sshd

debian error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

  1. root@localhost:~# phantomjs --version
  2. "/usr/lib/phantomjs/phantomjs: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory"
  3.  
  4. root@localhost:~# strip --remove-section=.note.ABI-tag /usr/lib64/libQt5Core.so.5
  5.  
  6. root@localhost:~# phantomjs --version
  7. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  8. qt.qpa.screen: QXcbConnection: Could not connect to display :99
  9. Could not connect to any X display.
  10.  
  11. #xvfb (short for X virtual framebuffer) 虚拟显示服务,跑在内存里
  12. #方法1:使用xvfb-run直接运行
  13. root@localhost:~# xvfb-run phantomjs --version
  14. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  15. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  16. 2.1.1
  17.  
  18. #方法2:
  19. root@localhost:~# (Xvfb :99 &) ; export DISPLAY=:99
  20.  
  21. root@localhost:~# phantomjs --version
  22. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  23. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  24. 2.1.1

dante socks5代理 多IP出口

  1. wget https://www.inet.no/dante/files/dante-1.3.2.tar.gz
  2. ./configure && make && make install
  3. /usr/local/sbin/sockd -f /your_path/danted.conf -D
  4.  
  5. #danted.conf
  6.  
  7. internal: $IP port = $port
  8. external: $IP
  9. external.rotation: same-same
  10. #method: username none #anonymous
  11. method: username #username and password with OS
  12. user.privileged: root
  13. user.notprivileged : nobody
  14. logoutput: /var/log/danted.log
  15. client pass {
  16. from: 0.0.0.0/0 to: 0.0.0.0/0
  17. log: connect disconnect
  18. }
  19. pass {
  20. from: 0.0.0.0/0 to: 0.0.0.0/0 port gt 1023
  21. command: bind
  22. log: connect disconnect
  23. }
  24. pass {
  25. from: 0.0.0.0/0 to: 0.0.0.0/0
  26. command: connect udpassociate
  27. log: connect disconnect
  28. }
  29. block {
  30. from: 0.0.0.0/0 to: 0.0.0.0/0
  31. log: connect error
  32. }

ansible ERROR! module rhevm has a documentation error formatting or is missing documentation

  1. [root@localhost ~]# ansible-doc -l
  2. [DEPRECATION WARNING]: docker is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this 
  3. rationale..
  4. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  5.  [ERROR]: unable to parse /usr/lib/python2.6/site-packages/ansible/modules/extras/cloud/misc/rhevm.py
  6.  
  7. ERROR! module rhevm has a documentation error formatting or is missing documentation
  8.  
  9. [root@localhost ~]# sed '/^deprecation_warnings/s/True/False/' /etc/ansible/ansible.cfg -i
  10. [root@localhost ~]# mv /usr/lib/python2.6/site-packages/ansible/modules/extras/cloud/misc/rhevm.py /usr/lib/python2.6/site-packages/ansible/modules/extras/cloud/misc/rhevm.py.def