Disable Netdata Email Notification

To disable email notifcation from netdata, run

Find

Replace with

By default, it open using nano, if you want to use vim to edit, select vim as default editor with

See netdata

find files by size

On a server, i wanted to find all log files that are larger than 1 GB in size, to do this, run

Example

To find files older than 100 days, run

See find

ubuntu-software-updates

Install drivers on Ubuntu

To install drivers on Ubuntu using command line, run

This list all drivers available for your hardware. You can install a driver with apt. In this cuase, i have 2 drivers available

First driver is recommended by Ubuntu. To install, run

Install Driver using Software & Updates

Start software and updates application.

Click on Additional Drivers tab. You will see available drivers for your computer.

virsh list

To list all VM on a KVM server, run

Example

See virsh

virsh nodeinfo

To see information about a KVM node, run

Example

See virsh

virsh

virsh command is used to manage KVM vps. It is part of libvirt package.

http://libvirt.org

To list KVM virtual machines, run

Start a VM

To shutdown a VM, run

To delete a VM, run

Connect to Remote Server

This will take your SSH key.

List All VM

List All Running VM

Get Info About a VM

Change Memory of a VM

Find

Replace With

Load configuration

Start VM

See kvm

LXD container snapshot and restore

lxc allow you to take snapshot, restore snapshot of a container.

Here we create a snapshot, then delete the /etc folder from the container. Now the container is useless. Restore the container from snapshot to get it work again.

lxc list containers

Install LXD on Ubuntu

LXD is tool to manage LXC (Linux Containers). lxd allow you to create and manage light weight linux containers, it is like docker, but more like an actual virtual machine. LXD is more user friendly than using LXC directly, have more features like clustering of servers.

On Ubuntu/Debian, run

Before you start using lxd, run

Just press enter for all questions. Defaults should work. lxd is demaon, only used one time during “lxd init”. After this, you will be using lxc command for everything.

To create a container, run

To list all containers, run

lxc list containers

To stop a VM, run

To start VM,