Netifaces is a python module maintained by Alastair and opalmer, I have been benefited by this module a lot. It is easy to use and there are a lot of possibilities with this module. Here are some examples of usage and finally there will be a code of automatic mac address changer without user to … Continue reading [python]Netifaces module
So I have installed Centos, I was logged in as a normal user which i created during installation, but my normal user is not added to the sudo, so I need to login as root su -, then I run usermod -aG wheel your_username where your_username has to be replaced with your actual username, there … Continue reading [linux]Add normal user to run sudo in centos
So i was using an image which is CentOS-8-x86_64-1905-boot.iso, there is an installation source which you need to select, so I went to this site to find out the address of the mirror. I found the one nearest to me by using the kickstart one. See below for what i mean. As usual... Centos expects … Continue reading [linux]Installation source for installing CentOS 8
The Tufin securechange vm got an expanded storage of 1TB more, however I cannot see it immediately with the fdisk -l command. I need to rescan it using echo "1" > /sys/class/block/sda/device/rescan, then do fdisk -l, you will see the /dev/sda with the full disk (after expanded). It works immediately..
I have just installed Centos 7 with the minimal installation options, lots of things which were taken for granted by me were not installed, one of them is netstat. In the repo there is no software package that names as netstat. To find out netstat is by which software package. So netstat is part of … Continue reading Installing netstat on Centos 7 minimal installation
I have been wanted to do linux kernel hardening a long time ago. I first heard about grsecurity from my friend William who is a security enthusiast. I have read several guides on how to patch the kernel source code but by far this article is the best. I am using CentOS 6.4 for the … Continue reading OS: Patching the linux kernel with grsecurity patch
There are times when disabling SELinux is required for some webapp to work. You can modify the SELinux from /etc/selinux/config Modifying the config file will make SELinux to be enabled (default), permissive or disabled upon boot up. To temporarily disable SELinux use setenforce 0 command.