Tag Archives: linux

How to disable IPv6 on CentOS 7

We will be disabling IPv6 in kernel module. First, check IPv6 is enabled or not ifconfig -a | grep inet6 if you see inet6 in the output, you have IPv6. Let’s disable it. Edit /etc/default/grub file and add ” ipv6.disable=1″ to GRUB_CMDLINE_LINUX GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=”$(sed ‘s, release .*$,,g’ /etc/system-release)” GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT=”console” GRUB_CMDLINE_LINUX=”crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb Read More

Posted in Linux | Tagged , , , | Leave a comment

SSH Login Without Password

You can login to a remote Linux machine without entering a password. First, we need to create public and private keys using ssh-key-gen on the localhost. ssh-keygen   Now, we have two files in the .ssh directory “id_rsa” as private key file and “id_rsa.pub” as public key file.

Posted in Linux | Tagged , , , , | Leave a comment

Installing python3.9 and pip on CentOS 7

Firstly, install the requsite packages. sudo yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel   Once that is done, download python3.9 or newer version. wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz Extract it. tar -xvf Python-3.9.6.tgz Move into the directory and configure with following command.

Posted in Linux, Uncategorized | Tagged , , , , , | Leave a comment