≡ Menu

UNIX

How to install and configure Jails on FreeNAS Corral 10

I recently installed or upgraded to FreeNAS Corral (version 10). However, I noticed that there is no support for FreeBSD jails as of 26/March/2017. How do I install and configure traditional FreeBSD jails on FreeNAS Corral (version 10)?
[click to continue…]

How to get common name (CN) from SSL certificate using openssl command

I configured and installed a TLS/SSL certificate in /etc/ssl/ directory on Linux server. I was wondering if can I find out the common name (CN) from the certificate using the Linux or Unix command line option?
[click to continue…]

How to enable the gzip/deflate in nginx server on Linux or Unix system

I am a new Linux system admin and how can I enable gzip compression on nginx web server for JS/CSS/HTML files?
[click to continue…]

How to find all hard links in a directory on Linux

I have a file named /etc/passwd i and I would like to find all hard links to this file in a directory. How do I find out all other hard links to the /etc/passwd in /backups/ directory? How can find all hard links to a given file using Linux or Unix command line option?
[click to continue…]

How to set rsync speed limit from eating all bandwidth with –bwlimit option

The rsync command is eating all my bandwidth from a backup script and generating tons of I/O. How do I set a limit for file transfer speed of rsync command on Linux or Unix-like system? How can I keep my rsync script from using all of my bandwidth?
[click to continue…]

How to display cpu wise usage using top command on FreeBSD Unix operating system

I recently switched from Linux to FreeBSD. On Linux, I press 1 which show me a breakdown of CPU usage per CPU, but it is not working on FreeBSD. How do I find out the usage of individual CPU core usage using the top command on FreeBSD operating system?
[click to continue…]

How to create a new config file in Ansible playbook

I wanted to create a file named /etc/apt/apt.conf.d/1000-force-ipv4-transport with the value set to ‘Acquire::ForceIPv4 true;’ on 20 cloud servers hosted in AWS. I already setup Ansible playbook to automate stuff. How do I create a new file using Ansible playbook? Is it possible to create a complex file with many lines of text (say squid.conf) using Ansible IT automation tool?
[click to continue…]

How to install Ansible on Apple MacOS X using command line

How do I install the Ansible software to automate apps and IT infrastructure from my Apple Macbook pro running MacOS X?
[click to continue…]

How to delete or remove a MySQL/MariaDB user account on Linux or Unix

I created a MySQL / MariaDB user account using this page. Now, I have deleted my wordpress blog and I want to delete that user account including database too. How do I delete or remove a MySQL or MariaDB user account on Linux or Unix-like system using mysql command line option?
[click to continue…]

PHP Fatal error: Call to undefined function curl_init() in /home/httpd/a/includes/functions.php(1)

I setup a LEMP (Linux, Nginx,MySQL, PHP ) stack. But, getting the following error in /var/log/nginx/error.log file:
    PHP Fatal error: Call to undefined function curl_init() in /home/httpd/a/includes/functions.php(1)
How do I solve this problem on Linux server?
[click to continue…]