In Linux there has a number of useful bandwidth monitoring tools such as nload, netwatch, iftop, trafshow, bandwidthd, vnstat. If all you need is a basic overview of your total bandwidth usage, iptables is all you really need. Usually we use iptables for setting firewall and port forwardings, but iptables also provides packet and byte ...
Logrotate
Log files are important for Linux system security and trouble shooting. Log files tend to grow, and if a log grows too much you compress it and takes the backup. Logrotate enables you to do this in a much better way. The process that is in charge of compressing and rotating these logfiles is called logrotate and it is executed once per day upon Debian installations.
Here you will find the logrotate driver script. Every day this script ...
Haproxy
HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It is particularly suited for web sites crawling under very high loads while needing persistence or Layer7 processing. Supporting tens of thousands of connections is clearly realistic ...
Monitoring services using Mon
mon is a general-purpose scheduler and alert management tool used for monitoring service availability and
triggering alerts upon failure detection.
Mon uses some Linux command and services such as ping command to check host connectivity and mail servers for sending mail, so you must install postfix ...
Monit is a utility for managing and monitoring processes, files, directories and devices on a Unix system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. E.g. monit can start a process if it does not run, restart a process if it does not respond and stop a process if it ...
Introduction
When screen is called, it creates a single window with a shell in it and then gets out of your way so that you can use the program as you normally would. Then, at any time, you can create new windows with other programs in them (including more shells), kill existing windows, view a list of windows, turn output logging on and off, copy-and-paste text between windows, view the scroll back history, switch between windows in ...
Install these packages with apt:
php5
php5-cli
php5-dev
php5-sqlite
php-pear
$ sudo apt-get install php5 php5-cli php5-dev php5-sqlite php-pear
Test if Apache and PHP are up and running typing in the browser:
http://localhost/
You should see something like:
Apache/2.0.55 (Ubuntu) PHP/5.1.2-1ubuntu1 Server at localhost ...
Using the command dd you can create swap file.
dd - convert and copy a file
First of all check the current swap size using the command 'free'
$ free
Output
total used free shared buffers cached
Mem: 1025620 1009140 16480 0 2252 465116
-/+ buffers/cache: 541772 483848
Swap: 2096440 18924 2077516
Create a directory called 'swap' under slash '/'
$ sudo mkdir ...
21 June 2008

Posted by Shahid
Linux
If you get an error message like below.
perl: warning: Setting locale failed.
perl: warning: Please check that your locales settings:
LANGUAGE = "en_JP:en",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ...
Recovering MySQL Password and Permission Problems
If you garble your GRANT commands or forget passwords and find that you don't have access to the critical mysql table even as the root user don't panic. You can access MySQL without password. Superuser can access MySQL using mysqld_safe command and you can change mysql password. ...