This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import os | |
| # These configuration keys can be specified more than once and create lists | |
| KEYS_LIST = ( | |
| 'lxc.apparmor.raw', | |
| 'lxc.cap.drop', | |
| 'lxc.cap.keep', | |
| 'lxc.environment', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Check version | |
| sudo -u postgres psql -X -c "SELECT default_version, installed_version FROM pg_available_extensions WHERE name = 'timescaledb';" zabbix | |
| # Update version | |
| sudo -u postgres psql -X -c "ALTER EXTENSION timescaledb UPDATE;" zabbix | |
| # Check hypertable size | |
| SELECT * FROM hypertable_relation_size_pretty('hypertable'); | |
| # Check chunk size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat <<EOF >/etc/gdm/custom.conf | |
| [daemon] | |
| AutomaticLoginEnable=True | |
| AutomaticLogin=username | |
| DefaultSession=gnome-xorg.desktop | |
| WaylandEnable=false | |
| EOF | |
| cat <<EOF >/etc/X11/xorg.conf.d/99-vmware.conf | |
| Section "Monitor" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dnf install tigervnc-server | |
| sed -e 's/<USER>/username/g' /lib/systemd/system/vncserver@.service >/etc/systemd/system/vncserver@:0.service | |
| systemctl daemon-reload | |
| systemctl enable vncserver@:0.service | |
| systemctl start vncserver@:0.service | |
| firewall-cmd --permanent --zone=public --add-port=5900/tcp | |
| firewall-cmd --reload |
OlderNewer