Thursday, October 19, 2017
jenkins AWSADMINZ

Jenkins not starting on CentOS 7 / RHEL 7

Today i was installing Jenkins on a CentOS7 systems. After installing it via Jenkins yum repository, the service was not stating. The java was already installed on the server. Issue You have installed...
NTFS-mount-fix-linux-ubuntu

The disk contains an unclean file system (0, 0). NTFS error on Linux

Issue You are trying to mount an NTFS partition and the console is trowing the below error. Lets see how to fix this. The disk contains an unclean file system (0, 0). Metadata kept...
NixVPN VPN Device

OpenVPN with CSF firewall rules

We are a big fan of OpenVPN when it comes to security. Many organizations have already switched to OpenVPN from PPTP etc. NixVPN is my favorite VPN software to host it on...
jailed-vsftp

VSFTP chroot jail users – Limit FTP users access to home directory

Lets see how we can configure a secure FTP server on CentOS  RHEL 6 / 7 First, you need to install the vsftp package on your server yum install -y vsftpd Once installed, lets start editing...
sudo-su

Disable SU access for sudo users

Some times you need to disable sudo su - access on your environment so that the users will use sudo command always and they will not switch to any other users...
sudo

How to log all sudo commands

Some times it's necessary to log all the sudo commands run in your environment. Let'ss see how to achieve this. Edit the sudoers file by running visudo visudo Add the below line...
redis-300dpi

How to clear Memcache and redis without restarting the service

How to clear memcache and redis without restarting service. Clear Memcache telnet 172.25.16.191 11211 Trying 172.25.16.191... Connected to 172.25.16.191. Escape character is '^]'. flush_all OK quit Connection to localhost closed by foreign host. Clear Redis Cache # redis-cli -h 172.25.16.191 172.25.16.191:6379 >...
mysql-repair

Last_SQL_Error: Error Table is marked as crashed and should be repaired

Today we had an issue with our Master-Master replication. Master2 was throwing the below error and the replication was stopped Last_SQL_Errno: 145 Last_SQL_Error: Error 'Table './exampledb/exampletable' is marked as crashed and should be...
mysql-master-master

Got fatal error 1236 from master – MySQL – Broken Master – Master Replication

Scenario You have a MySQL Master-Master replication setup, Lets say Master1 (LIVE) and Master2 (DR Warm Standby) Master2 server has been restarted for some reason. Now Master1 LIVE (the slave of...
bash-coming-to-windows

How to install native BASH on Windows 10 – Not a VM ;)

Native Bash is available now in Windows 10 as Windows 10’s Anniversary Update . Lets see how we can install it. Enable Developer mode in Windows 10 from settings >> Home, or search...