Solved: Create virtual environment with python 3 in linux

Once you have installed python 3.6 as described in the last post you can create virtual environment to work with it.

  • First let’s install the package of virtual environment for python 3.

Continue reading “Solved: Create virtual environment with python 3 in linux”

Udemy Black Friday Sale! Top Courses From $9.99

Solved: Install Python 3 in Linux and set it as default

In this post we will show you how to install python 3 in a Linux box. We have Centos 7 installed in our server.

Check installed python version

Most of the Linux versions by default have python installed. So let’s check the current version.

Udemy Black Friday Sale! Top Courses From $9.99
[ec2-user@cloudvedas ~]$ python --version
 Python 2.7.5
[ec2-user@cloudvedas ~]$

As we can see from the above output, currently we have Python 2 installed and we need Python 3 so let’s install it.

Continue reading “Solved: Install Python 3 in Linux and set it as default”

Solved: How to reset root password in Redhat Linux or CentOS

In this post we will discuss how to reset the root password of a Redhat linux server if you forgot it.

  • Reboot the server
  • While you are at boot menu press “Up or Down” arrow key to prevent system from booting.
  • Select the boot device and press “e” to edit it.(refer Image 1)

Continue reading “Solved: How to reset root password in Redhat Linux or CentOS”

Udemy Black Friday Sale! Top Courses From $9.99

Solved: How to use nmcli for adding new IP and managing network in Redhat Linux

In our last post we have seen how to use nmtui for network management. In this post we will see how to use nmcli for doing the same activity.

“nmcli” is a command line interface. Benefit with both nmtui and nmcli is that you don’t have to update the network configuration files manually. All the required changes are done by nmtui and nmcli themselves.

Good thing with nmcli is that you don’t have to install any extra package like nmtui. nmcli is generally included with NetworkManager.

Udemy Black Friday Sale! Top Courses From $9.99

Continue reading “Solved: How to use nmcli for adding new IP and managing network in Redhat Linux”

Solved: How to change hostname using nmtui or nmcli in redhat linux

In our last post we have seen how to change hostname manually or with hostnamectl .

In this post we will discuss how to change hostname with nmtui and nmcli tools.

Udemy Black Friday Sale! Top Courses From $9.99

Continue reading “Solved: How to change hostname using nmtui or nmcli in redhat linux”

Solved: How to change hostname in Redhat Linux

In this post we will see how to change hostname in Redhat Linux 4, 5, 6 and 7 .

For changing the hostname you should have root access. To switch to root do:-

sudo su -

If you want to change the hostname temporarily do as below:-

Udemy Black Friday Sale! Top Courses From $9.99

Continue reading “Solved: How to change hostname in Redhat Linux”