command

How to change the hostname of a Linux system

hange the hostname on a running system On any Linux system you can change its hostname with the command ‘hostname‘ (surprised?)… Here are some quick usages of the command line hostname: hostname without any parameter it will output the current hostname of the system. hostname –fqd it will output the fully qualified domain name (or [...]

How to Install Mtop (MySQL Monitoring Tool) on RHEL

Mtop is a little perl utility that shows in real time statistics of your MySQL server. It allows you to quickly identify problems related to mysql poor performance, using an interface similar to the normal ‘top’ command. If you are using Debian then the installation is trivial as mtop is in the debian packages and [...]

How to enable IP Forwarding in Linux

By default any modern Linux distributions will have IP Forwarding disabled. This is normally a good idea, as most peoples will not need IP Forwarding, but if we are setting up a Linux router/gateway or maybe a VPN server (pptp or ipsec) or just a plain dial-in server then we will need to enable forwarding. [...]

Howto change the MySQL root password

ere is a quick tip that will show several methods to change the mysql root password (that is normally empty at mysql initial install). Method 1: using the SET PASSWORD command: mysql -u root mysql> SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(‘newpass’); Method 2: using mysqladmin mysqladmin -u root password “newpass” if there was already a [...]

How to Install Memcached 1.2.2 on RHEL/Centos using DAG rpms

Add DAG/rpmforge repository to your system. In case you don’t have already the DAG repository added to your yum/up2date sources, this is the first thing you should do. You can find some useful information on how you can do this on older post of Cornelius. Once you have this working, you can proceed forward with [...]

How to Install Pear Beta Packages

Here is a quick tip that will show several methods how you can install pear beta packages. Normally if you will try to install a pear package that has not released yet a stable version, you will receive an error like: pear install Translation2 Failed to download pear/Translation2 within preferred state “stable”, latest release is [...]

How to Mount remote folders via SSH

This document describes how to install and use sshfs, a FUSE based filesystem that uses SSH to mount remote folders. Since it is based on FUSE (userspace filesystem framework for Linux) your kernel will need to have the fuse module available. FUSE is included in kernel newer than 2.6.14, so I will assume that you [...]

10 Nagios Web Frontends

Here is a list of 10 nagios 2.x web frontends that you might find useful if you are looking for a web interface to administer your nagios configuration. 1. Centreon / Oreon – http://www.centreon.com/ Centreon is a network, system, applicative supervision and monitoring tool, it is based upon the most effective Open Source monitoring engine [...]

How to Backup your MySQL databases manually with mysqldump

MySQL provides us the tool required to do this: mysqldump. As the name implies, this can make a dump of one database or even to all the databases on the server. You can see all the options on its help manual or on the mysql site. Basically this is used like: mysqldump [OPTIONS] database [tables] [...]

How to Configure PIX−to−PIX−to−PIX IPSec (Hub and Spoke)

Introduction This configuration allows a central Cisco Secure PIX Firewall to communicate with networks behind two other PIX Firewall boxes through VPN tunnels over the Internet or any public network using IPsec. The two outlying networks have no need to communicate with each other, but there is connectivity to the central network. The two outlying [...]

PIX Terminology and Background Information

Cisco PIX Firewall BasicsThe following diagram shows a multi-port PIX connected to various networks. Cisco PIX Firewall Basics PIX terminology: we generally refer to the user segment as the Inside subnet. The interface connected to the Internet router is the outside subnet. As shown, we probably have DMZ (De-Militarized Zone) subnet, the subnet where we [...]

How to Configuring Cisco PIX to Use a Syslog Server

Most Cisco devices use the syslog protocol to manage system logs and alerts. But unlike their PC and server counterparts, Cisco devices lack large internal storage space for storing these logs. To overcome this limitation, Cisco devices offer the following two options: * Internal buffer— The device’s operating system allocates a small part of memory [...]

How To Install phpBB Forum in 5 Steps

Introduction to phpBB phpBB is a stable, open-source, bulletin board script available as a free download from phpbb.com [2]. It allows you to set up an unlimited number of forums and categories. Users, moderators and user groups with varying permissions can be created. In short, it provides everything you’d expect of a bulletin board service. [...]

How to Tune Nagios For Maximum Performance

Optimization Tips: 1. Graph performance statistics with MRTG. In order to keep track of how well your Nagios installation handles load over time and how your configuration changes affect it, you should be graphing several important statistics with MRTG. This is really, really, really useful when it comes to tuning the performance of a Nagios [...]

How to Secure Nagios – Best Practices

Best Practices Use a Dedicated Monitoring Box. I would recommend that you install Nagios on a server that is dedicated to monitoring (and possibly other admin tasks). Protect your monitoring server as if it were one of the most important servers on your network. Keep running services to a minimum and lock down access to [...]