Resize an LVM Partition on VMware

Accommodate growth of a VM by expanding an LVM partition At some point, a “physical volume” may have to be enlarged to accommodate growth on a VM. This is how you grow the filesystem of an existing VMDK without adding an additional disk to your VM. Enlarging a VMDK login to VMware Find the VM […]

Configure a default zone with firewalld

This is not meant as a full primer for firewalld. It is just meant to document changing the default zone. If you are looking for a more in-depth exposure to firewalld try https://www.hogarthuk.com/?q=node/9 Check available zones firewall-cmd --get-zones Check active zone firewall-cmd --get-active-zones Get current zone of interface (assumes it is in the public zone) […]

Send Security Onion logs to a centralized Graylog Server

Overview For anyone that doesn’t know, Security Onion is a custom Linux distribution running on Ubuntu that can be used as a Network Intrusion Detection System (NIDS). Security Onion integrates several configurable apps like BRO IDS, Snort, Suricata, and OSSEC to name a few. By default, there is an integrated ELSA Stack that can be […]

Sorting /etc/passwd and /etc/shadow Files

Sorting /etc/passwd and /etc/shadow files Sorting /etc/passwd and /etc/shadow files [root@server~]# cd /root/ [root@server~]# touch passwd.sorted shadow.sorted [root@server~]# chmod 644 passwd.sorted [root@server~]# chmod 600 shadow.sorted [root@server~]# sort -t: -n -k3,3 /etc/passwd >passwd.sorted [root@server~]# gawk -F: ‘{system(“grep \”^” $1 “:\” /etc/shadow”)}’ passwd.sorted >shadow.sorted [root@server~]# wc /etc/shadow shadow.sorted 211 211 10985 /etc/shadow 211 211 10985 shadow.sorted 422 […]

Setup internal yum repositories for CentOS and RedHat Servers Part 4

This is post 4 of 4 in the series “Setup internal yum repositories for CentOS and RedHat Servers” Setup internal yum repositories for CentOS and RedHat Servers Part 1 Setup internal yum repositories for CentOS and RedHat Servers Part 2 Setup internal yum repositories for CentOS and RedHat Servers Part 3 Setup internal yum repositories […]

Setup internal yum repositories for CentOS and RedHat Servers Part 3

This is post 3 of 4 in the series “Setup internal yum repositories for CentOS and RedHat Servers” Setup internal yum repositories for CentOS and RedHat Servers Part 1 Setup internal yum repositories for CentOS and RedHat Servers Part 2 Setup internal yum repositories for CentOS and RedHat Servers Part 3 Setup internal yum repositories […]

Setup internal yum repositories for CentOS and RedHat Servers Part 2

This is post 2 of 4 in the series “Setup internal yum repositories for CentOS and RedHat Servers” Setup internal yum repositories for CentOS and RedHat Servers Part 1 Setup internal yum repositories for CentOS and RedHat Servers Part 2 Setup internal yum repositories for CentOS and RedHat Servers Part 3 Setup internal yum repositories […]

Setup internal yum repositories for CentOS and RedHat Servers Part 1

This is post 1 of 4 in the series “Setup internal yum repositories for CentOS and RedHat Servers” Setup internal yum repositories for CentOS and RedHat Servers Part 1 Setup internal yum repositories for CentOS and RedHat Servers Part 2 Setup internal yum repositories for CentOS and RedHat Servers Part 3 Setup internal yum repositories […]

Setup SaltStack on CentOS 7

Setup Salt Components on CentOS 7 Setup Note: This guide is basically copied from the salt docs https://docs.saltstack.com/en/latest/topics/installation/rhel.html. The only reason for it to exist is to expand on the RHEL/CENTOS 7 post install specifics for adding firewall rules and enabling the service. Import SaltStack GPG-KEY rpm --import https://repo.saltstack.com/yum/redhat/7/x86_64/latest/SALTSTACK-GPG-KEY.pub Setup SaltStack repo file Edit /etc/yum.repos.d/saltstack.repo vi […]

Setting up a multi-tiered log infrastructure Part 11 -- Cluster Tuning

This is post 11 of 11 in the series “Setting up a multi-tiered log infrastructure” Setting up a multi-tiered log infrastructure Part 1 --- Getting Started Setting up a multi-tiered log infrastructure Part 2 --- System Overview Setting up a multi-tiered log infrastructure Part 3 --- System Build Setting up a multi-tiered log infrastructure Part […]

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com