Rustup - update and remove Rust toolchain

rustup is a utility used to install and remove rust toolchain. To list the current installed toolchain run: kenno@c2:~$ rustup show Default host: aarch64-unknown-linux-gnu rustup home: /home/kenno/.rustup installed toolchains -------------------- stable-aarch64-unknown-linux-gnu (default) 1.70.0-aarch64-unknown-linux-gnu 1.71.1-aarch64-unknown-linux-gnu 1.72.0-aarch64-unknown-linux-gnu active toolchain ---------------- stable-aarch64-unknown-linux-gnu (default) rustc 1.72.0 (5680fa18f 2023-08-23) To remove a specific version of the toolchain, e.g. 1.70.0-aarch64-unknown-linux-gnu run: kenno@c2:~$ rustup toolchain remove 1.70.0-aarch64-unknown-linux-gnu info: uninstalling toolchain '1.70.0-aarch64-unknown-linux-gnu' info: toolchain '1.70.0-aarch64-unknown-linux-gnu' uninstalled Let’s verify:...

October 19, 2023 · 2 min · 360 words · Kenno

Array in Bash

I have written a hand full of Bash scripts, but none of those utilized array. Why? It’s because of two main things: 1. I don’t know how to use array in Bash, and 2. I would normally switch to write the script in Python instead. Today, however, I need to update an existing script written in Bash to make use of array. This was a perfect excuse for me to spend some 30 minutes to learn about array in Bash....

October 18, 2023 · 2 min · 221 words · Kenno

Install Guest Tools on XCP-ng

On AlmaLinux, th guest-tool for XCP-ng is provided by a packaged call xe-guest-utilities-latest, which in turns available from the epel-release repository. The following list a few steps to get XCP-ng guest-tool installed on a VM running AlmaLinux 9. Enable epel-release repository if not yet enabled by installing a package called epel-release. In my case, the repo has been already enabled. [root@xoa1 ~]# rpm -q epel-release epel-release-9-7.el9.noarch Install the guest-tool. If you’re unable to remember the full name of the package, just saerch for ‘xe-guest’....

October 16, 2023 · 2 min · 253 words · Kenno

What is in a Longhorn volume?

Do you know? Well, before today, neither did I. I’m pretty late to Kubernetes. I heard about it many hears ago, but unfortunately, I had no need to use it at home or at work. Even today, there is no workload that requires a Kubernetes cluster to run on. However, I think I can’t ignore Kubernetes any longer, and I need to learn about it now, well “better be late than never”, right?...

October 15, 2023 · 2 min · 262 words · kenno

warning: TERM environment variable set to 'tmux-256color'

I use ’tmux’ on anything that runs it, from FreeBSD, macOS and Linux. One some of Linux servers, noticably openSUSE ones, when I connect to them via SSH, I would receive the following warning: ... Have a lot of fun... warning: Could not set up terminal. warning: TERM environment variable set to 'tmux-256color'. warning: Check that this terminal type is supported on this system. warning: Using fallback terminal type 'ansi'. What worse is that, when I switch to root account, the backspace key doesn’t work correctly....

October 12, 2023 · 1 min · 196 words · kenno