Ubuntu – Page 67 – POFTUT

Pip ffi.h Gcc Error

pip is a tool used to install Python modules from a central python repository. While using pip command there may be some error like ffi.h gcc .This error will look like below. #include <ffi.h>                     ^    compilation terminated.    error: command ‘gcc’ failed with exit status 1 Install libffi-dev This problem is related to the libffi libraries. … Read more

How To Get Runnig VM Ip Address in Kvm/Libvirt

There are times when we start virtual machine and want to get ip address quickly without open any GUI or connecting virtual machines console. Here is the tip. virsh domiflist Command #!/bin/bash VMNAME=$1 for mac in `sudo virsh domiflist $VMNAME |grep -o -E “([0-9a-f]{2}:){5}([0-9a-f]{2})”` ; do arp -e | grep $mac  | grep -o -P … Read more

How to Install Ansible and Manage Servers?

Enterprise IT needs more than traditional IT tools. Because there are different architecture and styles in IT infrastructure. In a small company one web server is enough for all but in an enterprise company, there may be 10 – 100 web servers for the department’s different needs. Here one of the most important things is … Read more

Grep and Filter IP Address In Linux

Searching IP address in a text file or a console output may become cumbersome. This little command named grep will help you in this way. Example Data We have a file or output which includes the IP address and we want to extract just IP addresses nothing other. This file is created with a nmap … Read more

How To Run Parallel Jobs/Process/Programs in Bash

We generally run jobs in bash in serial order. Serial order means one command runs and after completion other command starts. There is another way to run jobs which are named parallel. Running parallel means multiple jobs run at the same time side by side. Send Job To The Background We will start with a … Read more

Linux Print History Command Without Line Numbers

Linux history command is used to get previously used commands by the current user. The default size for the history command is 1000 which means that last 1000 command will be stored in history. While listing history of bash line numbers are provided too. This is not expected in some situations. To get history without line … Read more

How To Create and Setup SSH Keys For Passwordless and Public Key Based Authentication In Linux?

How To Create and Setup SSH Keys For Passwordless and Public Key Based Authentication In Linux?

Ssh is a protocol designed to make network connections between hosts secure. Ssh is a defacto standard for Linux and related operating systems. Ssh encrypts the connection between sides. Ssh gives terminal access between host and server. To get a terminal there need to be an authentication process. The authentication process is generally password-based but … Read more