/images/avatar.png

Reset Your Linux Root Password

/images/reset-linux-passwd.jpg

A system administrator can easily reset passwords for users who have forgotten theirs. But what happens if the system administrator forgets the root password? This guide will show you how to reset a lost or forgotten root password on a Red Hat-compatible system.


Overview

Please note, if the entire system hard disk has been encrypted with LUKS, you will need to provide the LUKS password when prompted. Also, this procedure is applicable to systems running systemd, which has been the default init system since Fedora 15, CentOS 7, and RHEL 7.

Upgrade Home Assistant

Upgrade Home Assistant to use the latest chart and application version.

Check Existing Chart

helm list
NAME     	NAMESPACE	REVISION	UPDATED                                	STATUS  	CHART                	APP VERSION
emqx     	default  	1       	2020-01-15 09:50:07.876751946 -0500 EST	deployed	emqx-v4.0.0          	v4.0.0     
hass     	default  	3       	2020-01-22 14:40:55.119051419 -0500 EST	deployed	home-assistant-0.9.11	0.101.2    
nextcloud	default  	1       	2019-12-24 16:39:19.78369805 -0500 EST 	deployed	nextcloud-1.9.1      	17.0.0

Update Helm Repo

helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "geneliu" chart repository
...Successfully got an update from the "emqx" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈ 

Upgrade Home Assistant Chart

helm upgrade hass stable/home-assistant -f ./hass.yaml 
Release "hass" has been upgraded. Happy Helming!
NAME: hass
LAST DEPLOYED: Wed Feb  5 13:10:39 2020
NAMESPACE: default
STATUS: deployed
REVISION: 4
TEST SUITE: None
NOTES:
1. Get the application URL by running these commands:
  http://myhome.example.com/

Kubernetes as IoT Base (for Home Assistant, etc.)

I have quite a few applications that are already containerized and managed by Docker Compose. Maintaining the application-level Docker Compose YAML files is a minor task. However, there are a few small pieces of the puzzle that still require manual updates or upgrades from time to time. So, I’ve made the decision to migrate, and this is my first blog post documenting the process.


Install k3s

curl -sfL https://get.k3s.io | sh -s - --no-deploy=traefik --default-local-storage-path=/opt/k3s
# setup kubectl autocompletion
echo "source <(kubectl completion bash)" >> ~/.bashrc

I have enabled only the minimum services: