Redirect port to guest in libvirt
If you want to redirect ports from WAN to quest Virtual Machine than you may do this: Go to edit VM from Virsh virsh edit my-vm-name In header add xmlns Change interface type to user to this:
If you want to redirect ports from WAN to quest Virtual Machine than you may do this: Go to edit VM from Virsh virsh edit my-vm-name In header add xmlns Change interface type to user to this:
git clone –mirror https://bitbucket.org/exampleuser/repository-to-mirror.git # Make a bare mirrored clone of the repository cd repository-to-mirror.git git remote set-url –push origin https://github.com/exampleuser/mirrored # Set the push location to your mirror git push –mirror
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,… Читати далі »
Все гениальное просто 🙂 при mkdir нужен ключ -p mkdir -p /usr/local/dir1/dir2/dir3/VIP В результате создастся структура каталогов даже если еще нет dir*
for d in *\ *; do mv “$d” “${d// /}”; done
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 теперь нужно обязательно указывать время жизни пароля для root пользователя. Это может застать в расплох в самый неподходящий момент, особенно во время рестарта приложения. Чтобы этого избежать рекомендуэтся задать время его жизни такими способами. Установиль дефолтное значение через конфиг: Задаем 180дней [mysqld] default_password_lifetime=180 Безлимитные пароли: [mysqld] default_password_lifetime=0
Для этого можно использовать простенькую програмку makepasswd sudo apt-get install makepasswd Использовать makepasswd довольно просто makepasswd –chars 16 –count 7 88mCpPSqU8TW92cI 3HPpuSnFEGPwAyij rEaYNRPbhBByPtwT WhgoJAKs2iCYhYpr PCsMx7A9JY3SGRVr Hd4PU9vRIKhnhG8L 1QQNpn3JAo086oJW
С помощью утилит от 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… Читати далі »
Создаем новый ключ rsa с помощью которого будем ходить на удаленный сервер ssh-keygen -t rsa -f ~/.ssh/newKey -C “myuser@email.domain” В ~/.ssh/ создаем файл config с таким содержимым