nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

How to install LXD container hypervisor on Ubuntu 16.04 LTS

Posted: 18 Jan 2018 04:58 PM PST


Learn how to setup and use LXD on Ubuntu Linux 16.04 LTS server

The post How to install LXD container hypervisor on Ubuntu 16.04 LTS appeared first on nixCraft.

MySQL reset password for user account

Posted: 18 Jan 2018 04:03 PM PST


I am a new Linux system user. How do I reset a password for a user account named jerry using mysql command line option?

The post MySQL reset password for user account appeared first on nixCraft.

Top 20 OpenSSH Server Best Security Practices

Posted: 18 Jan 2018 04:01 PM PST


This page shows how to secure your OpenSSH server running on a Linux or Unix-like system to improve sshd security.

The post Top 20 OpenSSH Server Best Security Practices appeared first on nixCraft.

How to install and use Nginx on CentOS 7 / RHEL 7

Posted: 18 Jan 2018 02:28 PM PST

How do I install and configure the latest version of Nginx web server on a CentOS 7 or RHEL 7 server using the CLI and host a static site?

The post How to install and use Nginx on CentOS 7 / RHEL 7 appeared first on nixCraft.

How to flush Redis cache and delete everything using the CLI

Posted: 12 Dec 2017 03:50 AM PST

I setup Redis cache for my web app. I want a blank database and get rid of all keys. How can I delete everything in Redis cache? How do I flush my Redis cache using the Linux/Unix command line option?

The post How to flush Redis cache and delete everything using the CLI appeared first on nixCraft.

Update your OpenSSL on FreeBSD 10.x/11.x to fix vulnerabilities

Posted: 09 Dec 2017 10:03 AM PST

FreeBSD includes software from the OpenSSL Project for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. OpenSSL has multiple vulnerabilities on a FreeBSD. Currently, no workaround is available. You need to update OpenSSL on FreeBSD version 10.x and 11.x.

The post Update your OpenSSL on FreeBSD 10.x/11.x to fix vulnerabilities appeared first on nixCraft.

Updated version of Debian Linux 8/9 has been released

Posted: 09 Dec 2017 09:24 AM PST


The Debian project has announced an updated version of Debian 9 (codename "stretch") and Debian 8 (codename "jessie"). One can get new updates merely running the apt command/apt-get command.

The post Updated version of Debian Linux 8/9 has been released appeared first on nixCraft.

Monitor Linux CPU temperature, frequency, power in a graphical way

Posted: 09 Dec 2017 02:35 AM PST


S-tui is a free and open source terminal UI for monitoring your computer. s-tui allows to monitor CPU temperature, frequency, power and utilization in a graphical way from the terminal. It is written in Python and need root permission to use the s-tui. It is useful for:

  1. Watch your CPU temperature/utilization/frequency/power
  2. See performance dips caused by thermal throttling
  3. No need to use X-server. Perfect for headless usage including Raspberry PI

Let us see how to install and use s-tui on a Linux based system.

The post Monitor Linux CPU temperature, frequency, power in a graphical way appeared first on nixCraft.

How to install Redis server on Ubuntu Linux 16.04

Posted: 08 Dec 2017 10:19 AM PST

Redis is a free and open source (BSD licensed) key-value store. It is in-memory data structure store, used as a database, cache and message broker. How can I install Redis server on Ubuntu Linux 16.04 LTS?

The post How to install Redis server on Ubuntu Linux 16.04 appeared first on nixCraft.

How to use KVM cloud images on Ubuntu Linux

Posted: 07 Dec 2017 02:42 AM PST

How do I download and use a cloud image with kvm running on an Ubuntu Linux server? How do I create create a virtual machine without the need of a complete installation on an Ubuntu Linux 16.04 LTS server? How can I use KVM cloud image on Ubuntu?

The post How to use KVM cloud images on Ubuntu Linux appeared first on nixCraft.

How to extract substring in Bash

Posted: 06 Dec 2017 02:27 AM PST

I have a bash shell variable called u="this is a test". How can I extract the "test" string and store into a shell variable?

The post How to extract substring in Bash appeared first on nixCraft.

gtop: Awesome system monitoring dashboard for Linux/macOS Unix terminal

Posted: 06 Dec 2017 12:32 AM PST

I like htop interactive process viewer. Recently I found another one called gtop. It is similar to top, but fancier. Let us see how to install and use gtop on a Linux or macOS Unix based system.

The post gtop: Awesome system monitoring dashboard for Linux/macOS Unix terminal appeared first on nixCraft.

Book review: Mastering Vim Quickly From WTF to OMG in no time

Posted: 18 Nov 2017 02:20 AM PST


The vim editor is a free and open source text editor. It is a clone of vi text editor. Vim is extremely popular among the Linux, macOS and Unix-like system users. Vim has many commands. It comes with a pretty extensive built-in manual too. One might get lost in the built-in manual. Let us see if "Mastering Vim Quickly From WTF to OMG in no time" can help a new or experienced vim user to increase productivity.

The post Book review: Mastering Vim Quickly From WTF to OMG in no time appeared first on nixCraft.

Command line fun: Insult the user when typing wrong bash command

Posted: 17 Nov 2017 01:02 AM PST

You can configure sudo command to insult user when they type the wrong password. Now, it is possible to abuse insult the user when they enter the wrong command at the shell prompt.

The post Command line fun: Insult the user when typing wrong bash command appeared first on nixCraft.

Shell script to setup an LXD (Linux Containers) VM lab for testing purpose

Posted: 30 Apr 2017 09:59 AM PDT

A sample shell script to build an LXD (Linux Containers) VM lab on Ubuntu Linux 16.04 LTS server.

Shell script to mirror backups to another server in pull mode using rsync

Posted: 28 Apr 2017 11:55 AM PDT

A sample shell script to mirror remote server directory in pull mode for offsite backups using rsync command on Linux/Unix-like system.

Linux/Unix bash shell script to purge Cloudflare url/images from the command line

Posted: 28 Apr 2017 05:13 AM PDT

Here is a simple and easy to use bash shell script to purge/delete Cloudflare url/images cache from the command line without using web interface.