Category: CentOS

Install AWS SSM agent on CentOS 7 on Prem

Under Systems Manager go to Hybrid Activation’s and create activation Get activation code and ID Download ssm manager with this link replacing region names with your region wget https://s3.us-east-2.amazonaws.com/amazon-ssm-us-east-2/latest/linux_amd64/amazon-ssm-agent.rpm Replace the placeholder values with the Activation Code and Activation ID generated when you create a managed-instance activation, and with the identifier of the AWS Region

Collecting Logs from Amazon EC2 CentOS Instances

Create IAM roles or users that enable the agent to collect metrics from the server and optionally to integrate with AWS Systems Manager. Install the agent package. Modify the CloudWatch agent configuration file and specify the metrics that you want to collect. Install and start the agent on your servers. As you install the agent

How to enable PolicyD on Zimbra server

Lets take a look at how to activate policyd 1. Enable policy su – zimbra zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd 2. Activate web interface Activate Policyd WebUI ( must run as root ) cd /opt/zimbra/data/httpd/htdocs/ ln -s /opt/zimbra/common/share/webui/ . 3. Edit configuration file edit /opt/zimbra/common/share/webui/includes/config.php #$DB_DSN=”sqlite:////tmp/cluebringer.sqlite”; #$DB_DSN=”mysql:host=localhost;dbname=cluebringer”; $DB_DSN=”sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb”; $DB_USER=”root”; 4. Setup .htaccess file

CentOS 7 Deploy samba share with AD integration

We will use SAMBA and WINBIND to setup shares and to join Microsoft domain Install all necessary packages using yum manager. yum -y install samba-winbind samba-winbind-clients pam_krb5 krb5-workstation mdadm samba samba-client realmd Join your windows domain. In our case the name of the domain is lab.local realm join --user=administrator --client-software=winbind lab.local Start winbind service and

Linux system monitoring and statistics gathering

We will look at some Linux commands which will help us monitor system performance, gather statistics and view historical resource usage. Monitoring connections with ss command ss should be preinstalled for most modern Linux distributions Show established TCP connection ss -t Show established UDP connections ss -u Show ports listening for TCP connections ss -ltn

Install SoftEther server on Linux CentOS 7.2

We will take a look at hot to install SoftEther VPN on CentOS 7 and connect to it from Windows system running VPN manager. 1. We install CentOS 7 minimal with firewalld and selinux disabled. Make sure gcc is installed with all updates yum update -y yum install gcc 2. Download softether-vpnserver* package for Linux

How to install zabbix monitoring tool on CentOS7

This is very quick how to on installing zabbix on CentOS 7. Install LAMP ' yum -y install httpd systemctl start httpd systemctl enable httpd yum -y install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum -y install mod_php72w php72w-cli php72w-common php72w-devel php72w-pear php72w-gd php72w-mbstring php72w-mysql php72w-xml php72w-bcmath yum -y install mariadb-server systemctl start mariadb systemctl enable mariadb

Integrate FreeIPA with Windows 2016 Active Directory

In this LAB we will setup Trust based integration between FreeIPA and Windows 2016 Active Directory Forest Lab Information Windows 2016 Standard CentOS 7.5.1804 FreeIPA 4.5.4 Windows domain-win.poc.lab IPA domain-lin.poc.lab Kerberos realm names = WIN.POC.LAB ; LIN.POC.LAB Required Firewall ports TCP ports: 80, 88, 443, 389, 636, 88, 464, 53, 135, 138, 139, 445, 1024-1300

Authenticate CentOS7 to Active Directory

Here we look at the steps we need to take to authenticate CentOS7 to Active Directory 1. Install the following packages yum install sssd realmd oddjob oddjob-mkhomedir adcli samba-common samba-common-tools krb5-workstation openldap-clients policycoreutils-python -y 2. Verify correct SRV records dig -t SRV _ldap._tcp.ad.example.com 3. Join your windows domain with account that has permissions to join

Linux CenstOS 7 and Windows 2012 R2 Authentication integration

This article will show how to integrate Windows 2012 R2 Domain with CentOS 7 or RedHat 7. After completing this steps user will be able to login to Linux system with windows AS credentials. Installing Identity Management for UNIX on Windows 2012 R2 DC by using a command line Run powershell as administrator and execute