Linux
Restarting an interface in Ubuntu Server
Restarting an interface in Ubuntu Server How to restart a network in Ubuntu Server without reboot sudo ifdown eth0 && sudo ifup eth0
Linux
Restarting an interface in Ubuntu Server How to restart a network in Ubuntu Server without reboot sudo ifdown eth0 && sudo ifup eth0
Windows
Windows 10 Installation: How to Fix 80240020 Installer Bug Navigate to the C:WindowsSoftwareDistributionDownload folder and erase all the data in it. Click on the Start button, search CMD and right click on the icon and choose Run as Administrator. The command prompt will appear on the screen. Type wuauclt.
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
CentOS
Install Apache, MySQL, PHP (LAMP) stack On CentOS 6 LAMP is software bundle of web service solution stacks, named as an acronym of the names of its original four components: the Linux operating system, the Apache HTTP Server, the MySQL relational database management system (RDBMS), and the PHP programming language.
CentOS
When trying to Upgrade from Webmin 1.740 to 1.750 on CentOS 6 you may have error: error: Failed dependencies: perl(Net::SSLeay) is needed by webmin-1.750-1.noarch For resolve problem: you just need install perl-Net-SSLeay package # yum install perl-Net-SSLeay Fix Webmin Error: Failed dependencies: perl(Data::Dumper)
Linux
cacerts keystore default password Default Java keystore , the cacerts and password is: ‘changeit‘
CentOS
Installing htop on CentOS 6, RHEL, Scientific Linux Htop is an interactive system-monitor process-viewer for Linux. It is designed as an alternative to the Unix program top. It shows a frequently updated list of the processes running on a computer, normally ordered by the amount of CPU usage. Unlike top,