sudo killall openvpn
cPanel set hostname ssl certificate
/usr/local/cpanel/bin/checkallsslcerts –verbose
If checkallsslcerts is doing nothing
rm /var/cpanel/ssl/disable_auto_hostname_certificate
rm /var/cpanel/ssl/disable_service_certificate_management
linux set editor vim
export VISUAL=vim
mysql uptime days
SELECT
VARIABLE_VALUE AS Uptime_seconds,
NOW() AS "Now",
NOW() - INTERVAL VARIABLE_VALUE SECOND AS "Up since",
DATEDIFF(NOW(), NOW() - INTERVAL VARIABLE_VALUE SECOND) AS "Uptime_days"
FROM performance_schema.session_status
WHERE VARIABLE_NAME = 'Uptime';
openvpn3 fedora
dnf copr enable dsommers/openvpn3
dnf install openvpn3-client
openvpn3 config-import --config /pat/to/my.ovpn
openvpn3 session-start --config /pat/to/my.ovpn
brave fedora
sudo dnf install dnf-plugins-core
sudo dnf config-manager –add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
sudo rpm –import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
sudo dnf install brave-browser
Error: /usr/bin/apt-get failed, exitcode=100
Downloading packages
Failed to register the CT: PRL_ERR_VZCTL_OPERATION_FAILED (Details: Creating OS template cache for ubuntu-20.04-x86_64 template
tune2fs 1.42.9 (28-Dec-2013)
Setting maximal mount count to -1
Setting error behavior to 2
Setting interval between checks to 0 seconds
E: Unable to determine a suitable packaging system type
Error: /usr/bin/apt-get failed, exitcode=100
Error: Failed to umount ploop image /vz/tmp//vzpkg.2WxExF/cache-private/root.hdd: Error in ploop_umount_image (ploop.c:2804): Image /vz/tmp/vzpkg.2WxExF/cache-private/root.hdd/root.hds is not mounted 40
VE_PRIVATE is not set
Creation of Container private area failed
service vz restart
telnet timeout
echo 'QUIT' | nc -w SECONDS YOUR_HOST PORT; echo $?
No match for argument: vlc Error: Unable to find a match: vlc
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-34.noarch.rpm
sudo dnf install vlc
Status not available – monit http interface is not enabled, please add the ‘set httpd’ statement
monit status
Status not available – monit http interface is not enabled, please add the ‘set httpd’ statement
vim /etc/monit/monitrc
set httpd port 2812 and
use address 0.0.0.0
allow 0.0.0.0/0.0.0.0
monit -t
service monit reload
mysql change root auth_socket
UPDATE mysql.user SET plugin = 'mysql_native_password', authentication_string = PASSWORD('changeme') WHERE User = 'root';
FLUSH PRIVILEGES
show database collocation mysql
SELECT SCHEMA_NAME 'database', default_character_set_name 'charset', DEFAULT_COLLATION_NAME 'collation' FROM information_schema.SCHEMATA;
docker remove dangling images
docker images --quiet --filter=dangling=true | xargs --no-run-if-empty docker rmi
systemd for nginx
vim /lib/systemd/system/nginx.service
[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Magento install Could not validate a connection to Elasticsearch. No alive nodes found in your cluster
php bin/magento module:disable {Magento_Elasticsearch,Magento_Elasticsearch6,Magento_Elasticsearch7}