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  

rhel7 root user password cracking

Edit current kernel version into the grub menu bar, and finally add rd.break parameters linux6

linux16 /vmlinuz-3.10.0-327.el7.x86_64 root=/dev/mapper/rhel-root ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet rd.break Use ctrl + x to reboot the system to start

Remount the ‘root’ file system, and change into the / sysroot

mount -oremount,rw /sysroot chroot /sysroot Changing the root password

echo […]

Booting into single user mode and changing root password Centos / Redhat 7

During boot, press “e” at the grub loader. Scroll down using the arrow keys to the line starting with “linux”. It would look like this. linux16 /vmlinuz-3.10.0…… Remove the following from that line. “rhgb” and “quiet“. Add the following to the end of the line. “init=/bin/sh“. Press ctrl+x to continue the boot process. Once the […]

allow NFS access on Centos 7 and RHEL 7

Enable NFS server systemctl enable nfs-lock.service systemctl enable nfs-server.service systemctl start nfs-lock.service systemctl start nfs-server.service cat >/etc/firewalld/services/mountd.xml <<EOD <?xml version=”1.0″ encoding=”utf-8″?> <service> <short>mountd</short> <description>Mount Lock Daemon</description> <port protocol=”tcp” port=”20048″/> <port protocol=”udp” port=”20048″/> </service> EOD cat >/etc/firewalld/services/rpc-bind.xml <<EOD <?xml version=”1.0″ encoding=”utf-8″?> <service> <short>rpc-bind</short> <description>Remote Procedure Call Bind</description> <port protocol=”tcp” port=”111″/> <port protocol=”udp” port=”111″/> </service> EOD restorecon […]

Install tomcat and Apache centos 7

yum install gcc-c++

yum install openssl-devel.x86_64

cd /usr/local/src

wget http://mirror.nus.edu.sg/apache//httpd/httpd-2.4.18.tar.gz wget http://ftp.ps.pl/pub/apache//apr/apr-1.5.2.tar.gz wget http://ftp.ps.pl/pub/apache//apr/apr-util-1.5.4.tar.gz

tar xvfz apr-1.5.1.tar.gz

tar xvfz apr-util-1.5.3.tar.gz

tar xvfz httpd-2.4.18.tar.gz

tar xvf pcre-8.35.tar.bz2

cd /usr/local/src/apr-1.5.1

./configure –prefix=/usr/local/apr

make

make install

cd /usr/local/src/apr-util-1.5.3

./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr

make

make install

cd /usr/local/src/pcre-8.35

./configure –prefix=/usr/local

make

make install

cd /usr/local/src/httpd-2.4.18

./configure –prefix=/usr/local/apache \

–enable-rule=SHARED_CORE \

[…]

MYSQL on CENTOS 7

Install MySQL on CentOS 7 Introduction MySQL is a popular open source relational database. The popularity of MySQL means there is an abundance of information online and well documented client libraries available. MySQL supports many common database features such as replication, partitioning, triggers, views, and stored procedures. A plugin storage architecture allows support for multiple […]

SSH timeouts make with CentOS 7

I like using CentOS on my servers and desktop machine. After I start using, my ssh connections terminate so quickly

like using CentOS on my servers and desktop machine. After I start using, my ssh connections terminate so quickly if I do not type anything at terminal in a few minutes, may be seconds. It […]

Disable IPv6 In CentOS 7

entOS Linux release 7.0.1406 (Core)

Verify Centos Version cat /etc/centos-release

I’ve discovered bugs in some install packages. One such package is Zimbra. To work around these bugs, IPv6 and associated dependencies need to be disabled.

To disable IPv6 in a CentOS 7 installation, perform the following tasks:

Task 1 Navigate to and create a file […]

Zimbra 8.6 on Linux CentOS 7.0

Configure DNS Entries on your local DNS server Setup DNS A Record Ensure you have a Reverse lookup zone Setup MX Record

Configure Host Settings Login as root user su root

Install pre-requisites yum install wget make nc sudo sysstat libtool-ltdl glibc perl-core ntp unzip libaio

Set hostname hostname mail.yourdomain.com

Edit hostname file nano /etc/hostname […]

Centos 6.7 apache2.4.x

Centos 6.7 apache2.4.x compile and install and configure virtual hosts, SSL access, user-based access control

apache2.4 new features

Loadable MPMs At compile time can be made ??of a plurality of removable of MPM. The choice of MPM can also be configured at run time.

Event MPM full support Event MPM. This is just test version […]

How to install redis server on CentOS 7 / RHEL 7

How to install redis server on CentOS 7 / RHEL 7

wget -r –no-parent -A ‘epel-release-*.rpm’ http://dl.fedoraproject.org/pub/epel/7/x86_64/e/ rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-*.rpm

or

yum install epel-release

install redis server

Now use yum command to install redis server

yum install redis

Two important redis server configuration file’s path 1. /etc/redis.conf 2. /etc/redis-sentinel.conf

To start redis server

systemctl start […]