Why HTTPS for Everything?

last updated in Categories Link

HTTPS enables privacy and integrity by default. It is going to be next big thing. The internet’s standards bodies, web browsers, major tech companies, and the internet community of practice have all come to understand that HTTPS should be the baseline for all web traffic. Ultimately, the goal of the internet community is to establish encryption as the norm, and to phase out unencrypted connections. Investing in HTTPS makes it faster, cheaper, and easier for everyone.

Free SSL certificate for all

You can get your free ssl cert with Let’s Encrypt project. It is a certificate authority that launched on April 12, 2016 that provides free X.509 certificates for Transport Layer Security (TLS) encryption. See how to configure and use Let’s Encrypt TLS on a Ubuntu or Debian Linux:

In this tutorial, I will explain how to use Let’s Encrypt to install a free SSL certificate for Nginx web server along with how to properly deploy Diffie-Hellman on your nginx server to get SSL labs A+ score.

Awesome Git Commands & Best Practices Cheat Sheet For Sysadmin and DevOPS

last updated in Categories Link

git-cheat-sheetGit is a version control system (VCS) for tracking changes in computer files and coordinating work on those files among multiple people. It is primarily used for software development, but it can be used to keep track of changes in any files.

This cheat-sheet is useful for both sysadmins and programmers/devops peeps. You can download larger version by visiting this url.

A list of online tutorials and resources to help you learn bash shell

last updated in Categories Link

Bash (Bourne-Again SHell) is a Linux and Unix-like system shell or command language interpreter. It is a default shell on many operating systems including Linux and Apple MacOS X. Shell scripts are a fundamental part of the Unix programming environment.

Here are a list of tutorials and helpful resources to help you learn bash scripting and bash shell itself. You should read the following documents if you are interested in learning the basics of shell scripting.

Issue #1

last updated in Categories Link

News and updates from Linux/Unix and FOSS world

Free books

Tutorials

Touch ID Support for sudo in MacOS Terminal for MacBook Pro

last updated in Categories Link

Well, that was fast. Touch ID is a fingerprint recognition security feature, designed and released by Apple. It is currently available on the iPhone 5s/6/7 and Macbook pro-2016 editions. Many consider it as a huge security win for the MacBook Pro’s. This sounds amazing feature for command line users.

Say hello to sudo-touchid

sudo-touchid is a fork of sudo with Touch ID support on macOS (powered by the LocalAuthentication framework). Once compiled, it will allow you to authenticate sudo commands with Touch ID in the Terminal on supported Macs (such as the late 2016 MacBook Pros). Since Darwin sources for macOS 10.12 are not available yet, this project is based on sudo sources corresponding to OS X 10.11.6 and obtained from opensource.apple.com.

=> Download and usage information.

Find the oldest file in Unix or Linux file system

last updated in Categories Link

So I wanted to know the oldest file on my Debian Linux box.

find / -type f -printf '%T+ %p\n' | sort | head -n 1
Here is an another example for /etc/
find /etc/ -type f -printf '%T+ %p\n' | sort | head -n 10

Find the top 10 oldest file in a directory tree on GNU/Linux
Find the top 10 oldest file in a directory tree on GNU/Linux

So find command finds all files in / and print it with a special format. The %T+ (in -printf) means file’s last modification date and time in separated by +, for example ‘2004-04-28+22:22:05.0’. This is a GNU extension and may not work on other BSD/find or any other version of find. The %p indicts the file name. The sort command sorted input and passed it to head to display the oldest file on my GNU/Linux system. The sort command sorted input and passed it to head to display the oldest file on my GNU/Linux system. Cool, eh?

(Credit: Ubuntu forums).

Forcefully mark down pfSense wan gateway as down

last updated in Categories Link

From the article:

I have two internet connections (fiber and 4G LTE) configured in load balanced mode using pfSense FreeBSD based firewall. One of my wan connection is running out of bandwidth quota. How can I force and turn off this interface to save bandwidth until month end and enable it again from next billing cycle?

Read more…

virsh destroy && virsh undefine = Delete a guest VM on Linux KVM after creating it with virt-install

last updated in Categories Link

If you created a KVM guest from the command line with first install. Say, after sometimes you do not need a guest VM. However, how do you I delete this KVM guest from the command line? The answer is simple:

virsh destroy VM_NAME && virsh undefine VM_NAME

Of course as usual stuff in IT may get complicated. See “how to delete a guest on Linux KVM for more info“.

Get 2x faster performance & 50% better memory consumption than PHP 5.6 by using PHP 7 on Debian and Ubuntu Linux

last updated in Categories Link

So PHP 7 provides 2x faster performance and 50% better memory consumption than PHP version 5.6. How do you install PHP 7 on Ubuntu Linux version 14.04 LTS server? How do I install PHP 7 with PHP-FPM in along with Nginx web server or Lighttpd or Apache 2 server? How can I install PHP 7 on Debian 8.x or 7.x server? See

  1. How to install PHP 7 on Debian Linux 8.6/7.x [jessie/wheezy]
  2. How to install PHP 7 on Ubuntu Linux 14.04 LTS