≡ Menu

Easy

How to install wget on RHEL/CentOS 7 using yum

I am trying to download a file using ‘wget http://url’ syntax, but I am getting an error:
bash: wget: command not found

How do I fix this problem? How can I install wget on a CentOS/RHEL 7 or 6 server using yum command?
[click to continue…]

Sysadmin because even developers need heroes!!!

{ 1 comment }

How to add to bash $PATH permanently on Linux

I am a new Linux and bash shell user. How do I permanently set $PATH on Linux? How can I permanently add a directory to shell PATH on Linux?
[click to continue…]

{ 2 comments }

How to setup HTTP Strict Transport Security With Lighttpd Web Server

HTTP Strict Transport Security (HSTS) is a security feature that lets your web site tell client browsers that it should only be communicated with using HTTPS only. How can I setup HSTS using lighttpd web server on Linux or Unix-like system?
[click to continue…]

{ 0 comments }

Linux kvm exit from a virsh console command

I installed KVM on Ubuntu server as described here. However, I am unable to get out of a ‘virsh console domain’ command. How can I exit from a “virsh console” connection over ssh based session?
[click to continue…]

{ 0 comments }

How to remove all old and outdated brew packages on MacOS

I am using Homebrew to install packages on MacOS Sierra or Mac OS X. I noticed multiple version of bash or curl installed in /usr/local/Cellar/bash/. How can I delete an outdated version of brew packages and only keep the latest version on my system?
[click to continue…]

{ 2 comments }

How to use curl command with http/2 on MacOS X

I am using a MacOS sierra (version 10.12.1). How do I use curl command with http2/ protocol? I am getting an error that read as follows:

            curl -I --http2 https://google.com
            curl: (1) Unsupported protocol

How do I solve this problem and use cURL with HTTP/2 on Mac OS X or MacOS Sierra?
[click to continue…]

{ 1 comment }

How to automatically mount zfs file system on Linux/Unix/FreeBSD

I have created a zfs file system called data/vm_guests on Ubuntu Linux server. After the server reboot, zpools do not automatically mount at /data/vm_guests. It is failing my KVM guest machines. How can I mount my ZFS (zpool) automatically after the reboot?
[click to continue…]

{ 1 comment }