RedHat Subscription Management

Subscription Management using subscription-manager Register a System subscription-manager register --username <username> --password <password> --auto-attach Disable managed yum repositories subscription-manager config –rhsm.manage_repos=0 Enable a specific channel subscription-manager repos –enable rhel-6-server-optional-rpms Sync RHN Profile rhn-profile-sync From https://access.redhat.com/solutions/253273

Upgrading salt-minion on Windows using Salt

Upgrading the Salt Minion For installation, follow the instructions on the saltstack website Upgrade the Windows salt-minion Login to the salt-master server and cd to the files directory cd /srv/salt/server-base/file Download the latest Version from the SaltStack Website (https://repo.saltstack.com/) wget https://repo.saltstack.com/windows/Salt-Minion-2016.11.1-AMD64-Setup.exe Copy the newest version out to all the Windows servers based on architecture salt […]

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 […]

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