Setup VNC Server (x11vnc) on Linux Mint 18

This tutorial was adapted from here.

1. Remove the default Vino server:

sudo apt-get -y remove vino

2. Install x11vnc:

sudo apt-get -y install x11vnc

3. Create the directory for the password file:

sudo mkdir /etc/x11vnc

4. Create the encrypted password file:

sudo x11vnc —storepasswd /etc/x11vnc/vncpwd

You will be asked to enter and verify the password. Then press Y to save the password file.

5. Create the systemd service file for the x11vnc service:

sudo xed /lib/systemd/system/x11vnc.service — если создать так не получиться то вручную через touch

Copy/Paste this code into the empty file:

[Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target

6: Reload the services:

sudo systemctl daemon-reload

7. Enable the x11vnc service at boot time:

sudo systemctl enable x11vnc.service

8. Start the service:

Either reboot or

sudo systemctl start x11vnc.service

fail2ban

fail2ban-client status [filter] для проверки статуса фильтра
Проверка фильтра fail2ban-regex path_to_log path_to_conf

Пример фильтра для wordpress-login

[Definition]

failregex = .*/wp-login.php.*200.*
ignoreregex =

Проверка статуса:

fail2ban-client status [имя фильтра]

git submodules

git pull --recurse-submodules

— обновить локальные данные

git submodule update --recursive --remote

— обновить коммиты

git submodule update --init --recursive

— инициализация

Локализация в ExtJS

В файл app.json добавить

requires:[
...
"ext-locale"
...
],
locale: "ru",
...
"overrides": [
...
"${app.dir}/locale/${app.locale}"
...
]

Создать в корне проекта папку locale и добавить туда папку с значением свойства locale и создаем там файлы

Пример:

Ext.define('Ext.locale.ru.form.field.Date', {
    override: 'Ext.form.field.Date',
    config: {
        format: 'd.m.Y H:i:s',
        submitFormat: 'Y-m-d H:i:sO'
    }
});