Linux
Cacti Host Status Unknown
Cacti Host Status Unknown If the status of your device remains ‘Unknown’, ensure that you have added graphs to that device. If there are no graphs, Cacti will not poll the device, and the status will remain ‘Unknown’.
Linux
Cacti Host Status Unknown If the status of your device remains ‘Unknown’, ensure that you have added graphs to that device. If there are no graphs, Cacti will not poll the device, and the status will remain ‘Unknown’.
Linux
Remove CD-ROM from apt-get repositories in Debian 8 You need remove or comment the reference to the CD/DVD from the /etc/apt/sources.list example: # deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ – Official amd64 DVD Binary-1 20150906-11:13]/ jessie contrib main Login to your system sudo nano
CentOS
How do I check a reverse PTR record From linux type: dig -x xx.yy.zz.aa xx.yy.zz.aa = The IP address you’re trying to resolve You’ll get an answer with your authority of aa.zz.yy.xx.in-addr.arpa and server resolving to this address.
CentOS
7 Ping Very Useful Examples Ping command is used to find out whether the peer host/gateway is reachable. 1. Increase or Decrease the Time Interval Between Packets You can increase or decrease this using option -i as shown below. Decrease Ping Time Interval – wait 0.2 seconds before sending
CentOS
Nslookup Command Examples To Check DNS Records Find out the domain IP address / A record [root@web ~]# nslookup arstech.net Server: 213.136.95.11 Address: 213.136.95.11#53 Non-authoritative answer: Name: arstech.net Address: 213.136.71.197 Find out the domain MX record [root@web ~]# nslookup
Linux
Restarting an interface in Ubuntu Server How to restart a network in Ubuntu Server without reboot sudo ifdown eth0 && sudo ifup eth0
CentOS
Install nslookup on CentOS For install nslookup, dig, host you need bind-utils pakage. Just run the command: sudo yum install bind-utils
Asterisk
Fail2ban Unban Single Host run: iptables -L For example we need to unban 10.110.11.16 Then get the actual jails list: fail2ban-client status Unban command is: fail2ban-client set jailname unbanip m.y.i.p For unban 10.110.11.16 IP from asterisk jail run command: fail2ban-client set
CentOS
Increase File Upload Size in PHP-Nginx How to fix “[error] client intended to send too large body” in Ubuntu Edit php.ini: vi /etc/php5/fpm/php.ini Set: upload_max_filesize = 10M post_max_size = 12M Then change Nginx config file: vi /etc/nginx/nginx.conf Set: http { #... client_
CentOS
Install Rkhunter (Rootkit Hunter) in RHEL, CentOS Rkhunter is rootkit scanner for Linux systems. This tool scans for rootkits, backdoors and local exploits by running tests like: – MD5 hash compare – Look for default files used by rootkits – Wrong file permissions for binaries – Look for suspected strings in LKM and KLD
Linux
Apt-Get Install Apache Tomcat 7 on Ubuntu 14.04 sudo apt-get update sudo apt-get install tomcat7 tomcat7-docs tomcat7-admin tomcat7-examples then type: http://your_ip_address:8080 in your browser, and you will see next screen-shot: If you see “It works!” your tomcat successfully installed Install Java Development Kit (Optional) sudo
Linux
How to enable mod_rewrite for Apache a2enmod rewrite then restart apache2 server: /etc/init.d/apache2 restart or service apache2 restart