November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Tomcat 8 on CentOS 7

The instructions below are assuming you’re logged in as root, if you are logged in as another user remember to prepend sudo to the commands shown below. Install the necessary packages First of all update your server and install the necessary packages using the following commands: yum -y update yum -y install curl libcap-devel yum […]

Install Rootkit Hunter Centos 7 / 6 / 5

Rootkit Hunter (rkhunter) is a Unix-based tool that scans for rootkits, backdoors and possible local exploits. Rootkits are self-hiding toolkits secretly installed by a malicious intruder to allow that user to gain access to the server. Rootkit Hunter offers protection by comparing SHA-1 hashes of important files with known good ones in a online database […]

REDHAT 7 and CENTOS 7 Features

[gview file=”http://rmohan.com/wp-content/uploads/2015/08/7-linux-roadmap.pdf”]

[gview file=”http://rmohan.com/wp-content/uploads/2015/08/Red-Hat-7-PPT.pdf”]

CentOS 7 – Redhat Installation Best practice

Partitioning

By separating file systems into various partitions, you can fine tune permissions and functionality. Doing so will provide you greater granularity for permissions, as well as adding a layer of security for any potential bad guys to work through.

Steve Grubb suggests, and quite rightly so, that areas where users have write privileges be […]

Add date to bash history

Need to add date to bash history, knowing when some commands were fired.

Before the change:

root@host# history 1 ifconfig 2 ifup eth0 3 ifconfig 4 shutdown -r now

root@host# history 1 ifconfig 2 ifup eth0 3 ifconfig 4 shutdown -r now

Now, make appripriate changes in your bash profile:

echo ‘export HISTTIMEFORMAT=”%d/%m/%y %T “‘ […]

Tweak EXT4 mount options for performance

Need to change default EXT4 mount options to tweek performance

DEFAULT EXT4 mount options (Centos 6.3):

Shell [root@server ~]# cat /etc/fstab<br /> dev/sda1 / ext4 defaults 0 1 1 2 [root@server ~]# cat /etc/fstab dev/sda1 / ext4 defaults 0 1

… meaning …

Shell [root@server ~]# cat /proc/mounts | grep ext4<br /> /dev/sda1 / […]

Converting Your Keypair File

Purpose

The keypair you create will be in the .pem format. If you plan on using PuTTy to SSH to a Linux instance from a Windows computer you will need to convert that keypair file to the .ppk format. This article will show you those steps.

Notes

Your original private key pair file (.pem) is […]

Installation IBM MQ 7.5 ON RHEL 7 and 6

WebSphere MQ is an IBM messaging solution which enable applications to communicate each other asynchronously. Application A for example need not to be connected direct to application B to exchange information moreover application B need not to be running for the application A to communicate. Application A simply place the message in container called queue […]

Oracle 12C database on Rhel 7 Centos 7 Fedora

Install Oracle Database 12c On CentOS7

Add a host file entry

[root@oracledb ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.60 oracledb.rmohan.com oracledb

[root@oracledb ~]# hostnamectl Static hostname: oracledb.rmohan.com Icon name: computer-vm Chassis: vm Machine ID: 4145c21ef6ec4ca3a6a4ea34087a5552 Boot ID: a0d067b346df44f98ba7248578bfde3b Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS […]

Why does yum return error: [Errno 256] No more mirrors to try

Issue yum update fails with the error : [Errno 256] No more mirrors to try yum update fails with :- Error Downloading Packages: InstallMedia: [Errno 256] No more mirrors to try. yum fails with : Error Downloading Packages: ftp-0.17-35.el5.x86_64:failure:ftp-0.17-35.el5.x86_64.rpm from Red5repo55:[Errno 256] No more mirrors to try. [[6]]” (code -1) Packages Scheduled yum fails […]