Linux

How to Report CPU utilization using sar command

You can display today’s CPU activity, with sar command:# sarOutput: Linux 2.6.9-42.0.3.ELsmp (dellbox.xyz.co.in) 01/13/2007 12:00:02 AM CPU %user %nice %system %iowait %idle 12:10:01 AM all 1.05 0.00 0.28 0.04 98.64 12:20:01 AM all 0.74 0.00 0.34 0.38 98.54 12:30:02 AM all 1.09 0.00 0.28 0.10 98.53 12:40:01 AM all 0.76 0.00 0.21 0.03 99.00 12:50:01 [...]

How to Display the utilization of each CPU individually using mpstat

If you are using SMP (Multiple CPU) system, use mpstat command to display the utilization of each CPU individually. It report processors related statistics. For example, type command:# mpstatOutput: Linux 2.6.15.4 (debian) Thursday 06 April 2006 05:13:05 IST CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s 05:13:05 IST all 16.52 0.00 2.87 1.09 [...]

How to Use htop to Monitor System Processes on Ubuntu

The first great thing about htop is that it will show you your usage per CPU, as well as a meaningful text graph of your memory and swap usage right at the top. I find this much easier to understand at a glance than the default output from top. Installing htop on Ubuntu Installing on [...]

How to Install Imap on Centos

The Internet Message Access Protocol (IMAP) is one of the two most prevalent Internet standard protocols for e-mail retrieval, the other being the Post Office Protocol.  Virtually all modern e-mail clients and mail servers support both protocols as a means of transferring e-mail messages from a server, such as those used by Gmail,to a client, [...]

How to Installing IMAP on Red Hat Linux

You can download the latest version of IMAP from here. You should get the file called imap-4.6.BETA.tar.Z or similar. I am usingimap-4.6.BETA.tar.Z for this installation. Installing IMAP Uncompress and unpack the download. uncompress imap-4.6.BETA.tar.Z tar xvf imap-4.6.BETA.tar  Now we have to compile it. For a standard Red Hat 5.x installation the slx directive to make will [...]

utf8_mime2text() has new signature, but U8T_CANONICAL is missing.

When i was compiling php on a fedora machine i was getting the follwoing error ./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache/bin/apxs –with-mysql=/usr/bin/mysql –with-curl=/usr/local/curl –with-libxml-dir=/usr/local/libxml2 –with-libexpat-dir=/usr/lib –enable-soap –enable-zip  –enable-ftp –with-xsl=/usr/local/libxslt  –with-gd=/usr –with-jpeg-dir=/usr/local/jpeg6 –with-zlib-dir=/usr/local/lib –with-png-dir=/usr/local/lib –with-freetype-dir=/usr/local/freetype –enable-pdo=/usr/local –with-pdo-mysql=/usr/bin/mysql –enable-mbstring –with-imap –with-imap-ssl –with-kerberos utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. After [...]

How To Enable Secure (SSL) IMAP & POP3 With Self-Signed Certificate

First you need to find the location to place the certificate and key file. Open dovecot.conf file (Location: /etc/dovecot.conf) and search for pem. You will find two lines like: #ssl_cert_file = /etc/pki/dovecot/certs/dovecot.pem #ssl_key_file = /etc/pki/dovecot/private/dovecot.pem These indicate the default location of the key and certificate file. Note: You are likely to find that there is [...]

How To Install IMAP & POP3 Server For Fedora Core 4

You can use the dovecot package that comes with Fedora Core 4. The process is simple. su chkconfig –levels 35 dovecot on service dovecot start In plain english this is what you are doing above: – Logging in a root – Configuring dovecot to start as service for level 3 (console based) and 5 (GUI [...]

How to install Rkhunter in Linux

security system is perfect and it is always good to have some forms of intrusion detection just incase somebody does get in you can be notified. Do not immediatly get worried if in an email you get a positive, many of them are false and from upgrades. I would first suggest running “rkhunter -c” from [...]

How to check if a server is hacked

The first step is to look at rkhunter and see if it reports anything that is bad. If rkhunter reports that the server has been rooted it is probably going to best to reimage the server once the method of intrusion has been determined. Download and unzip rkhunter —–command—– cd /usr/local/src/ wget http://downloads.rootkit.nl/rkhunter-1.2.1.tar.gz tar -zxf [...]

How to disable direct root login

While directly logging into a server as root is certainly easy it is not the best choice from a security standpoint. Disabling direct root logins is not something that instantly makes a server impervious but it does help fight against petty brute force script kiddies. There are two options when disabling direct root login, one [...]

How to Reinstall the Boot Loader on Redhat

In many cases, the GRUB boot loader can mistakenly be deleted, corrupted, or replaced by other operating systems. The following steps detail the process on how GRUB is reinstalled on the master boot record: Boot the system from an installation boot medium. Type linux rescue at the installation boot prompt to enter the rescue environment. Type chroot [...]

How to Change Runlevels at Boot Time under Red Hat Enterprise Linux

Under Red Hat Enterprise Linux, it is possible to change the default runlevel at boot time. To change the runlevel of a single boot session, use the following instructions: When the GRUB menu bypass screen appears at boot time, press any key to enter the GRUB menu (within the first three seconds). Press the a key [...]

How to configure GRUB menu in Redhat – Configuration File Structure

The GRUB menu interface configuration file is /boot/grub/grub.conf. The commands to set the global preferences for the menu interface are placed at the top of the file, followed by stanzas for each operating kernel or operating system listed in the menu. The following is a very basic GRUB menu configuration file designed to boot either Red [...]

How to Prepare for an NFS install in Redhat

For NFS installation it is not necessary to mount the iso image. It is sufficient to make the iso image itself available via NFS. You can do this by moving the iso image or images to the NFS exported directory: For DVD: mv /location/of/disk/space/RHEL5.iso /export/directory/ For CDROMs: mv /location/of/disk/space/disk*.iso /export/directory/ Ensure that the /export/directory directory is exported via NFS via [...]