Git Bash: Increase Terminal Scrollback Buffer Size

If you run a command that produces a lot of output in a Git Bash and you try to scroll up to the beginning of that output, you may see that it has been truncated.

The number of lines that can be displayed in the Git Bash is controlled by a scrollback buffer size (10000 lines, by default).

This short note shows how to increase the terminal scrollback buffer size in the Git Bash. (more…)

tun0: Rename OpenVPN Client Interface

When an OpenVPN client establishes a connection with a server, by default, it uses a /dev/net/tun virtual network device and spawns a tunX interface.

If you have only one OpenVPN client, most of all the name of the interface is tun0 as, by default, there is a dev tun setting in the OpenVPN client’s .ovpn configuration file.

If you have multiple OpenVPN clients on the same machine the later started ones will spawn tunX interfaces from zero, i.e., tun1, tun2, etc.

In case of the multiple OpenVPN clients you may want them to spawn the interfaces with their own predefined names instead of using dynamically assigned ones.

This is useful if, for example, you want to set up different iptables firewall rules for them.

This note shows how to change the name of the OpenVPN client’s interface. (more…)

Helm: Render Chart Templates Locally – Example

Helm chart templates in a combination with a values.yaml file, generate manifest files which are YAML-formatted Kubernetes resource descriptions.

The values.yaml file contains default configuration values for a chart.

These default values can be overriding with custom values using special flags.

Before applying to a Kubernetes cluster, the Helm chart templates can be rendered locally and printed to a terminal or saved to a file.

In this note i will show the examples of how to render the Helm chart templates locally using a helm template command. (more…)

GitHub Actions: Self-Signed Certificate Error

If in a GitHub Actions workflow you try to check out a repository from an URL with a self-signed certificate or a certificate signed by a non-trusted certificate authority (CA), you will get this error:

request to <URL> failed, reason: self signed certificate in certificate chain

In this note i will show how to fix the self-signed certificate error in GitHub Actions by adding trusted CA certificates. (more…)

Systemd Service Not Starting (status=217/USER)

A systemd service may fail to start with the error:

Main process exited, code=exited, status=217/USER

The status=217/USER indicates that the user that is configured to run the service could not be found.

This could happen if there is a typo in a username or you have copied a service file from another machine and it contains the user that doesn’t exists on your system.

This also could happen if the user that should run the service is not the local one but comes from some external authentication provider, like LDAP or Active Directory.

This short note shows how to fix the “Main process exited, code=exited, status=217/USER” error for such external user. (more…)