Linux
Using tcpdump for capture SIP packets
How to capture SIP packets with tcpdump (example) tcpdump -nt -s 0 -A -i eth0 port 5060 -w call.cap Tcpdump will create file call.cap Capture DHCP requests with tcpdump
Linux
How to capture SIP packets with tcpdump (example) tcpdump -nt -s 0 -A -i eth0 port 5060 -w call.cap Tcpdump will create file call.cap Capture DHCP requests with tcpdump
CentOS
In this article i will show how to install tcpdump on Linux (Ubuntu, Redhat) and Capture DHCP requests using tcpdump utility in Linux. DHCP requests can be captured with tcpdump. So first we need install tcpdump utility in our Linux system. Install tcpdump utility Install tcpdump in Ubuntu or Debian
CentOS
How to capture broadcast or multicast packets with tcpdump utility First install tcpdump software: For Ubuntu: # apt-get install tcpdump ForCentOS: # yum install tcpdump Then you can run tcpdump # tcpdump -n "broadcast and multicast" Example output: Discuss article in ArsTech Forum If you like what you are reading, please:
CentOS
VestaCP Upgrade MYSQL 5.6 for CentOS6 rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm You can edit file: /etc/yum.repos.d/mysql-community.repo yum update mysql-server service mysqld restart mysql_upgrade chkconfig mysqld on This will update your MySQL to MySQL 5.6 See also: Upgrade
CentOS
Default VestaCP instillation for CentOS 6.7 comes with PHP5.4 . 1. Install the REMI and EPEL RPM repositories wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm && rpm -Uvh epel-release-latest-6.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && rpm -Uvh remi-release-6*.rpm
CentOS
Fix error: realpath(): open_basedir restriction in effect During Magento installation on VestaCP CentOS you may have problem: [error] PHP Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/admin/web/mydomain.com/public_html:/home/admin/tmp) in /home/admin/web/
Linux
1. Login to MySQL with root credentials $ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 43 Server version: 5.5.49-0ubuntu0.14.04.1 (Ubuntu) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
CentOS
For example we need configure DHCP client on eth0 for getting dynamic IP’ 1. Start editing /etc/sysconfig/network-scripts/ifcfg-eth0 file using text editor: # vi /etc/sysconfig/network-scripts/ifcfg-eth0 Sample configuration: HWADDR=your MAC address DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes Save and close just edited ifcfg-eth0 file 2. Restart
CentOS
How to Create Virtual Interface on CentOS 6 Linux Creating Virtual Interface and Assign Multiple IP Addresses Let’s assume you want create new virtual interface ifcfg-eth0:0 device and assign new IP 10.10.10.20 Network device files are located in /etc/sysconfig/network-scripts/ directory. # cd /etc/sysconfig/
CentOS
How to Remove CentOS old kernels or CentOS freeing up disk space 1. Check currently list of installed Linux kernels with RPM command #rpm -q kernel kernel-2.6.32-573.12.1.el6.i686 kernel-2.6.32-573.18.1.el6.i686 kernel-2.6.32-573.22.1.el6.i686 kernel-2.6.32-573.
Linux
How to find installation date Linux The easiest way – determine when the file system was created # tune2fs -l /dev/sda1 | grep 'Filesystem created:' Filesystem created: Wed Apr 6 11:19:06 2016
Linux
VestaCP Forbidden You don’t have permission to access /vstats/ For fix: chmod 744 /home/admin/web/example.com/stat