April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

ERROR: Installation can not proceed. Please fix your /etc/hosts file – Zimbra

This error took me an hour to solve ERROR: Installation can not proceed. Please fix your /etc/hosts file You need to make sure the hostname is on the first line and should match the hostname of the server. All the documentation I see mentions something like mail.domain.com. This leads to confusion because usually your server […]

Native memory allocation (mmap) failed to map XX bytes for committing reserved memory – JDK 1.8 – CentOS 6.7

While trying to check whether java was working I was repeatedly getting the following error: java -version

# # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory. # Possible reasons: # The system is out of physical RAM […]

Apache’s Mesos and Google’s Kubernetes

Kubernetes is an open source project that brings ‘Google style’ cluster management capabilities to the world of virtual machines, or ‘on the metal’ scenarios. It works very well with modern operating system environments (like CoreOS or Red Hat Atomic) that offer up lightweight computing ‘nodes’ that are managed for you. It is written in Golang […]

Microsoft Core fonts

Install the Microsoft Core fonts This HOW-TO will show you how to install the Microsoft Core Fonts. These steps will download build and install an rpm with the mscorefonts. Open a terminal

su – root cd ~ yum install chkfontpath rpm-build cabextract mkdir rpmbuild cd rpmbuild wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec rpmbuild -bb msttcorefonts-2.0-1.spec rpm -ivh RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm […]

Install Wget On CentOS 6.7 With A Wget Cheat Sheet

this quick and simple article, we will install wget command on a CentOS 6.7 server and we have included a wget cheat sheet. Wget is a free software package for downloading files using HTTP, HTTPS and FTP.

Prerequisites

A CentOS 6.7 server with Root privileges, if you do no have a server and would […]

How to merge contents of 2 files using paste?

This is one of the best command that facilitates the system admin to perform his specific tasks. Below is the list with the examples showing the paste command.

[localhost@localhost ~]$ cat file1 apple orange mango banana

[localhost@localhost ~]$ cat file2 coldplay westlife michael sunibigyana piyush

[localhost@localhost ~]$ paste -s file1 apple orange mango banana

[localhost@localhost […]

Sending SMS Notifications From Nagios

Sending SMS Notifications From Nagios In my last article I have discuses how to install Gnokii for sending/receiving SMS from your computer. Today I’ll explain how we are using Gnokii + Nagios for sending SMS notifications to our cell phones. Its a great way to get notify of the problems while on road.

I assume […]

Searching and File Operations in linux

TOP 10 largest file # find /var -type f -ls | sort -k 7 -r -n | head -10

FIND FILES MORE THAN 5Gb # find /var/log/ -type f -size +5120M -exec ls -lh {} \;

Find all temp files older than a month and delete: # find /usr/home/admin/Maildir/new -mtime +30-type f | xargs /bin/rm […]

use awk command in linux?

1. list content of file myfile # [localhost@localhost ~] $ cat myfile apple orange mango

banana GUAVA ra dish pineapple

2. delete the first line of the file # [localhost@localhost ~] $ sed ‘1d’ myfile orange mango

banana GUAVA ra dish pineapple

3. delete the third line of the file # [localhost@localhost ~] $ sed […]

How To Capture Packets with TCPDUMP?

See the list of interfaces on which tcpdump can listen # /usr/sbin/tcpdump -D

Listen on any available interface # /usr/sbin/tcpdump -i any

Verbose Mode # /usr/sbin/tcpdump -v # /usr/sbin/tcpdump -vv # /usr/sbin/tcpdump -vvv # /usr/sbin/tcpdump -q

Limit the capture to an number of packets N # /usr/sbin/tcpdump -c N

Display IP addresses and port numbers […]