Архів категорії: Без категорії

ESP8266 first launch in Linux Mint

For flashing firmware you need connect GPIO0 to GND and CH_PD to VCC I have this TTL converter Bus 003 Device 026: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port But they have 5v output, so i used 5v to 3.3v converter Prepare notebook for flashing Go to https://github.com/themadinventor/esptool and download esptool wget https://github.com/themadinventor/esptool/archive/master.zip install… Читати далі »

Cisco 7940 за NAT

http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cuipph/7960g_7940g/5_0/sip/english/administration/guide/5_0/7960setS.html Some general advice on how to get 7940/7960 going in standalone SIP via NAT. 1. Give your 7940 a static IP. 2. Forward ports 5060-5062 TCP and UDP and 16384 to 16399 UDP to the static IP of the 7940. 3. Make configuration file adjustments as follows: Set voip_control_port: 5061 ; NAT/Firewall Traversal- 0=Disabled,… Читати далі »

Vagrant: libvirt library not found in default locations (RuntimeError)

vagrant plugin install vagrant-libvirt Installing the ‘vagrant-libvirt’ plugin. This can take a few minutes… Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is: An error occurred while installing ruby-libvirt… Читати далі »

Mysql 5.7: ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords.

В версии mysql 5.7 теперь нужно обязательно указывать время жизни пароля для root пользователя. Это может застать в расплох в самый неподходящий момент, особенно во время рестарта приложения. Чтобы этого избежать рекомендуэтся задать время его жизни такими способами. Установиль дефолтное значение через конфиг: Задаем 180дней [mysqld] default_password_lifetime=180 Безлимитные пароли: [mysqld] default_password_lifetime=0

Генерация паролей в консоли Linux

Для этого можно использовать простенькую програмку makepasswd sudo apt-get install makepasswd Использовать makepasswd довольно просто makepasswd –chars 16 –count 7 88mCpPSqU8TW92cI 3HPpuSnFEGPwAyij rEaYNRPbhBByPtwT WhgoJAKs2iCYhYpr PCsMx7A9JY3SGRVr Hd4PU9vRIKhnhG8L 1QQNpn3JAo086oJW

Percona xtrabackup или переносим базу на другой сервер

С помощью утилит от percona можно поднять копию большой базы на другом сервере намного быстрее, чем штатными методами mysql dump/restore Сначала установим Percona XtraBackup и те зависимости, которые нужны. Установку будем проводить на Centos 6 wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.2.12/binary/redhat/6/x86_64/Percona-XtraBackup-2.2.12-r8726828-el6-x86_64-bundle.tar tar xvf Percona-XtraBackup-2.2.12-r8726828-el6-x86_64-bundle.tar yum install -y perl-DBD-MySQL yum install -y perl-Time-HiRes yum install -y rsync rpm -ivh percona-xtrabackup-2.2.12-1.el6.x86_64.rpm… Читати далі »