Entries by admin

Change reverse ip ptr record with pdnsutil

For Powerdns 4.7 You need to change reverse ip record for 192.168.1.11,So login to powerdns server via ssh an type; pdnsutil replace-rrset 1.168.192.in-addr.arpa 11 PTR 3600 “rdns.abc.com”   System should now answer like this. Current records for 11.1.168.192.in-addr.arpa IN PTR will be replaced New rrset: 11.1.168.192.in-addr.arpa. 3600 IN PTR rdns.abc.com   Also you can check […]

mount /tmp as a separate filesystem

# mkdir -p /root/images/ # dd if=/dev/zero of=/var/tmpfile bs=1 count=0 seek=4G # mkfs.ext4 /var/tmpfile # mount -o loop,rw,nodev,nosuid,noexec /var/tmpfile /tmp # chmod 1777 /tmp # mount -o rw,noexec,nosuid,nodev,bind /tmp /var/tmp # vi /etc/fstab /var/tmpfile /tmp ext4 rw,noexec,nosuid,nodev,bind 0 0 /tmp /var/tmp none rw,noexec,nosuid,nodev,bind 0 0  

Elasticsearch, Fluentd, Kibana

After setting up the EFK (Elasticsearch, Fluentd, Kibana) stack on Kubernetes, Fluentd collects logs from Kubernetes pods and sends them to Elasticsearch for log collection. This process is explained step-by-step below: Fluentd ConfigurationFluentd collects logs generated by pods in Kubernetes. By default, Fluentd monitors and collects logs in Kubernetes’ /var/log/containers directory. Fluentd is run as […]

Reset a Windows guest admin password in KVM

If you forget the Windows 10 administrator password you used in KVM, you can reset your password by performing an operation on the qcow image. First, you should install guestfish on your Linux KVM host..Installation steps;     sudo apt install libguestfs-tools     I did it with the command. Then;   sudo guestfish -i […]

odbc and php mssql support for cloudlinux

For your Cloudlinux or a different Redhat based server, add the appropriate version repo below to your server. #RHEL 7 and Oracle Linux 7 #curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/mssql-release.repo #RHEL 8 and Oracle Linux 8 # curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/mssql-release.repo #RHEL9 # curl https://packages.microsoft.com/config/rhel/9/prod.repo | sudo tee /etc/yum.repos.d/mssql-release.repo Delete any potentially conflicting […]

Phalcon Php Framework 3.x Installation

Phalcon 3.x (old version) installation steps on Cyber Panel + Ubuntu 20 server 1.Install the pecl and pear plugins for the php version you want. apt install lsphp72-pecl lsphp72-pear   2. Download Phalcon 3.4.5 tar file. wget https://github.com/phalcon/cphalcon/archive/refs/tags/v3.4.5.tar.gz tar zxvf v3.4.5.tar.gz cd cphalcon-3.4.5/build/ ./install   3.If all steps are successful, add the ini file Create […]

Centos /Cloudlinux 7 error restarting a systemd service

Unable to register authentication agent ** (pkttyagent:478736): WARNING **: 18:16:34.777: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0) # groupadd -g 23 nohidproc # usermod -a -G nohidproc polkitd # mount -o remount,rw,hidepid=2,gid=nohidproc /proc # systemctl restart polkit     […]