This file contains 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
# https://www.mercurial-scm.org/ | |
# https://www.mercurial-scm.org/wiki/UnixInstall#System-wide_installation | |
# rooted version :) | |
sudo -i | |
yum list mercurial | |
#Loaded plugins: priorities, update-motd, upgrade-helper | |
#Error: No matching Packages to list | |
yum groupinstall "Development Tools" |
This file contains 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
# ------------------------ | |
# debian | |
# ------------------------ | |
apt-cache policy proftpd-basic | |
apt-get install proftpd | |
proftpd --version | |
proftpd -vv | |
nano /etc/proftpd/proftpd.conf | |
Include /etc/proftpd/conf.d/ |
This file contains 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
-- logs | |
SET log_statement = 'all'; | |
-- list database(s) | |
\l+ [database] | |
-- list schema(s) | |
\dn | |
-- list tables in all schemas |
This file contains 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
# @see https://www.tecmint.com/install-upgrade-kernel-version-in-centos-7/ | |
uname -sr | |
# Linux 3.10.0-1062.12.1.el7.x86_64 | |
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm | |
yum --disablerepo="*" --enablerepo="elrepo-kernel" list available | |
yum --enablerepo=elrepo-kernel install kernel-ml |
This file contains 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
-- List of schemas | |
\dn | |
-- list all tables | |
\dt | |
-- list only tables with "public" schema | |
\dt public.* | |
-- database size |
This file contains 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
# ------------------------ | |
# agent | |
# ------------------------ | |
sudo rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm | |
sudo yum list zabbix-agent | |
sudo yum install zabbix-agent | |
sudo firewall-cmd --zone=public --add-port=10050/tcp | |
sudo firewall-cmd --zone=public --add-port=10050/tcp --permanent | |
sudo semanage permissive -a zabbix_agent_t | |
sudo systemctl enable zabbix-agent.service |
This file contains 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
\z | |
-- Full access | |
GRANT ALL privileges ON DATABASE db TO admin_user; | |
GRANT ALL ON schema public TO admin_user; | |
GRANT ALL ON ALL TABLES IN SCHEMA public TO admin_user; | |
GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO admin_user; | |
-- Read-only access | |
CREATE ROLE readonly; |
This file contains 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
# boot - How can I reinstall GRUB to the EFI partition? - Ask Ubuntu | |
# https://askubuntu.com/a/831241/19938 | |
# Note : sdX = disk | sdXX = efi partition | sdXXX = system partition | |
sudo mount /dev/sdXXX /mnt | |
sudo mount /dev/sdXX /mnt/boot/efi | |
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | |
sudo chroot /mnt | |
grub-install /dev/sdX | |
update-grub |
This file contains 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
# Based on next manuals: | |
# Ubuntu 18.04 LTS: https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ | |
# CentOS 7 - https://www.hyperlearning.ai/en/knowledgebase/blog/centos-7-open-street-map-tile-server | |
# Updated to latest CentOS / deps packages | |
# Dependencies | |
sudo yum install git gdal sqlite geos boost curl libcurl libicu bzip2-devel zlib-devel libxml2-devel python-setuptools proj-devel proj proj-epsg proj-nad libicu-devel gdal-devel sqlite-devel libcurl-devel geos-devel protobuf-devel protobuf-c-devel lua-devel cmake proj boost-thread proj-devel autoconf automake libtool pkgconfig ragel gtk-doc glib2 glib2-devel libtool-ltdl-devel python-devel boost-devel cabextract xorg-x11-font-utils fontconfig perl-DBD-Pg mesa-libGLU-devel | |
sudo yum install cairo pycairo cairo-devel pycairo-devel freetype freetype-devel harfbuzz harfbuzz-devel harfbuzz-icu libjpeg libjpeg-devel libpng libpng-devel libtiff libtiff-devel libwebp libwebp-devel | |
sudo mkdir -p /usr/local/src/osm_tile_server |
This file contains 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
# @see https://postgrespro.ru/docs/postgrespro/11/binary-installation-on-linux.html | |
#------------------------------- | |
# Debian 8/9/10: | |
#------------------------------- | |
sudo apt-get install lsb-release | |
sudo sh -c 'echo "deb http://repo.postgrespro.ru/pgpro-11/debian $(lsb_release -cs) main" > /etc/apt/sources.list.d/postgrespro.list' | |
wget --quiet -O - http://repo.postgrespro.ru/pgpro-11/keys/GPG-KEY-POSTGRESPRO | sudo apt-key add - | |
sudo apt-get update |