-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
98 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Обновление postgres | ||
|
||
Место надо - размер инстанса x 2 | ||
|
||
``` | ||
yum install postgresql16-server postgresql16 postgresql16-contrib -y | ||
/usr/pgsql-13/bin/postgresql-13-setup initdb | ||
su - postgres | ||
/usr/pgsql-13/bin/pg_upgrade --old-bindir=/usr/pgsql-15/bin --new-bindir=/usr/pgsql-16/bin --old-datadir=/var/lib/pgsql/15/data --new-datadir=/var/lib/pgsql/16/data --check | ||
``` | ||
|
||
Если всё OK, то выполняем: | ||
``` | ||
/usr/pgsql-13/bin/pg_upgrade --old-bindir=/usr/pgsql-15/bin --new-bindir=/usr/pgsql-16/bin --old-datadir=/var/lib/pgsql/15/data --new-datadir=/var/lib/pgsql/16/data | ||
``` | ||
## Обновление TomescaleDB | ||
|
||
``` | ||
yum install timescaledb-2-postgresql-16 -y | ||
``` | ||
|
||
Проверить версию timescaledb исползуемую в БД. | ||
Выполнить на БД источнике (в нашем случае 15) | ||
|
||
SQL> \c zabbix; | ||
SQL> SELECT extversion FROM pg_extension where extname = 'timescaledb'; | ||
|
||
Если установленный модуль не соответствует версии в БД и выдаёт подобную ошибук | ||
> could not load library "$libdir/timescaledb-2.X.X": ERROR: could not access file "$libdir/timescaledb-2.X.X": No such file or directory | ||
> In database: zabbix | ||
То необходимо подключиться на psql -X zabbix обновить на последнюю имеющуюся версию: | ||
SQL> ALTER EXTENSION timescaledb UPDATE; | ||
|
||
Рестартовать старый инстанс postgres. | ||
Подключиться к БД и проверить версию. | ||
``` | ||
psql zabbix | ||
``` | ||
|
||
SQL> \dx |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Install RPM Package: | ||
``` | ||
yum install tigervnc-server | ||
``` | ||
|
||
run command as user in case root, or vncpasswd directly from user: | ||
``` | ||
runuser -l username -c "vncpasswd" | ||
# Password: | ||
# Verify: | ||
# Would you like to enter a view-only password (y/n)? n | ||
``` | ||
|
||
Configure service: | ||
``` | ||
cp -fv "/lib/systemd/system/[email protected]" "/etc/systemd/system/vncserver_username@:1.service" # :1 - x server number, :1, :2, :3, :5 ... | ||
sed -i 's/<USER>/username/g' "/etc/systemd/system/vncserver_username@:1.service" | ||
sed -i 's|"/usr/bin/vncserver ${INSTANCE}"|"/usr/bin/vncserver ${INSTANCE} -geometry 1200x675"|g' /usr/bin/vncserver_wrapper | ||
# -geometry 1200x675 - virtual desktop resolution !!! GLOBAL ATTRIBUTE !!! | ||
# refresh systemctl unit files | ||
systemctl daemon-reload | ||
# enable service at startup | ||
systemctl enable vncserver_username@:1.service | ||
# run service | ||
systemctl start vncserver_username@:1.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Перепаковка DEB пакета # | ||
|
||
Extract: | ||
``` | ||
dpkg-deb --raw-extract firewalld | ||
``` | ||
|
||
Build package: | ||
``` | ||
dpkg-deb --build --root-owner-group firewalld | ||
``` | ||
|
||
Install package: | ||
``` | ||
dpkg -i firewalld.deb | ||
apt -f install | ||
``` | ||
|