仕事の関係で、期限切れのkubernetesクラスタの証明書更新の手順を検証することになった。 今まで特にやったことないので記録しておきます。

Install Linux OS With Qemu CLI

Background Sometimes you want to build a reproducer for some installation issues. Instead of putting the actual CD-ROM in your machine, QEMU, a popular hardware virtualization solution, could help you to test it on virtual machines. Qemu can help you to do a GUI install with Desktop or live Server install ISO, or use text-mode installation with a Server install CD. Install 1 $ sudo apt install qemu And also you need a ISO for installation.

Self Nas Environment Project

This artcle is a note for myself to build a private NAS station using Ubuntu 20.04. The main usage of my NAS is to store photoes. For other services, run webmin to control machine via WebUI, and run Emby/ Jellyfin for multi media. Above 2 will run in docker so I also run portainer to manage them. Overview Use Samba to share storage, and use PhotoSync to upload photoes from

Multipass Launch Failed by Network Timeout

Multipass is a very useful tools to create Ubuntu VM instance. It will provides a CLI to launch and manage the Linux instances. The downloading of a cloud image is also automatically, and a VM can be up and running within minutes. https://multipass.run/ But in my case, I tried multipass 1.1.0 to quick launch an instance, but it failed with a Network timeout error. 1 2 3 4 5 6 $ multipass version multipass 1.

Moving From Hexo to Hugo

HexoからHugoに 今までHexoでブログを書いたが、Golang勉強のついでにHugoに移しました。 理由はいろいろありますが、主な点は以

ASRock Fatal1ty B450 Gaming-ITX 'Restore on AC/Power Loss' not working

I have a ASRock Fatal1ty B450 Gaming-ITX with the latest BIOS 3.40. As I want to power it on remotely, In Bios setting I enabled ‘Restore on AC/Power Loss’ option on BIOS, but it's not working. Then I found below and upgrade my bios firmware to 3.53, and everything works just fine! You can find the v3.53 on below link. http://forum.asrock.com/forum_posts.asp?TID=12059&title=fatal1ty-b450-gamingitx-restore-on-ac-power-loss

connect to wifi in Linux via nmcli command

I will use nmcli to do this task. First you need to install network-manager package, and start the Daemon 1 2 $ sudo apt install network-manager $ sudo systemctl start NetworkManager Then let's check the network interface status by below command 1 2 3 4 5 6 7 $ nmcli dev status DEVICE TYPE STATE CONNECTION wlp2s0 wifi connected xibuka-wifi-5G enp0s31f6 ethernet connected netplan-enp0s31f6 p2p-dev-wlp2s0 wifi-p2p disconnected -- eth0 ethernet unavailable -- lo loopback unmanaged -- Next step is to check the available Wifi access points.

The begining of bash script

exit script immediately when a command fails 1 2 set -o errexit set -e output error and exit script immediately when refer to a undefine variable. 1 2 set -o nounset set -u exit script even a command fails before a pipe 1 set -o pipefail