Nginx Redirect One Path to Another

Nginx is probably my favorite web server up to this moment, and it runs and serves websites on all of my servers. I should say, I also like Apache web server too, but not as much as Nginx. Today, I need to redirect from one url path to another. It took me a while to get it right, and I’d better write it down before it’s forgotten. This is what I want: https://demo.example.com/login -> https//demo.example.com/demo/login. ...

September 14, 2023 · 1 min · 112 words · kenno

How to configure IPv6 on FreeBSD via SLAAC

I recently got IPv6 running at home, with most devices including my iPhone happily get an IPv6 assigned. My NAS running FreeBSD13.2 currently only has an IPv4 assigned, so I’m going to configure IPv6 for it too. I’m still new to IPv6. The way I have it setup on my router, running OPNsense, is to set the “Router Advertisements” to “Unmanaged” with DHCPv6 disabled. “Unmanaged” for SLAAC (A flag), and SLAAC stands for Stateless Address Autoconfiguration. In simple term, each client will pick its own IPv6 based on the route prefix advertised by the router. This is just a simplification, and you should not quote for me this. ...

September 8, 2023 · 3 min · 433 words · kenno

How did I renew Red Hat Developer Subscription

If you’re reading this post, it’s quite likely that you’re fully aware that Red Hat provide a no-cost Red Hat Developer Subscription for individuals. With this subscript you can use it run RHEL for free. The subscription only lasts one year, and when it expires it can’t be renewed. You must re-register. I have a test RHEL vm, but I hardly use. So today when I turned it on and logged into it, the following message came up when i tried to update the system: ...

August 30, 2023 · 3 min · 571 words · kenno

Fix cc: error trying to exec 'cc1plus' on openSUSE Leap

It’s currently almost 23:15, and I’m already sleepy. Therefore, this is going to be a short note on how I fixed an minor but annoying issue nvim-treesiter (Neovim’s plugin) on openSUSE Leap (15.5). The error message is or was as below: nvim-treesitter[yaml]: Error during compilation cc: error trying to exec 'cc1plus': execvp: No such file or directory Press ENTER or type command to continue I don’t code in C++ nowadays, but the error looks like the C or C++ compiler was missing. But first, let’s show the version of openSUSE running on this instance, I mean VM: ...

August 29, 2023 · 2 min · 247 words · Kenno

Installing AWS CLI on AlmaLinux

I already wrote a blog post on How to install AWS CLI on RockyLinux, where I shared how to leverage the RPM package from EPEL repository. So what do I need to create a post here? Well, when I tried to use the same method to install the AWS CLI on an AlmaLinux 9.2, there was an issue with dependency. Here is what happened: [kenno@wedev1 ~]$ sudo dnf install awscli [sudo] password for kenno: Last metadata expiration check: 0:05:08 ago on Sun 20 Aug 2023 18:35:23. Error: Problem: conflicting requests - nothing provides python3.9dist(docutils) >= 0.10 needed by awscli-1.23.10-3.el9.noarch (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) Good thing is, there are a few ways to install AWS CLI on Linux. I’ll be using the method described at official AWS document to install the CLI. ...

August 20, 2023 · 2 min · 226 words · kenno