Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

156 total results found

SystemCtl Usage

System Administration

Below is a list of commonly used systemd commands. If you are needing to configure a binary as a linux service, see this: Ubuntu Service Creation Reload Systemd Units Each time you edit a systemd unit file, you must tell systemd to reload changes.To reload ...

Linux
systemd
Administration

UFW and Docker

System Administration

When running containers in Docker, you will come across the need for a container to gain access to a resource on the host.If you have UFW firewall enabled, you will need to allow ingress from the docker network, running on the host. To identify the docker net...

Administration
Linux
docker

Cancellation Token as Method Parameter

.NET

When writing a method that accepts a cancellation token, the method will need to deal with a passed null token. To do so, the method should accept the token parameter like this: public async Task<int> DoSomething(CancellationToken ct = default(CancellationTo...

.NET Process Boilerplate

.NET

Exploring standardized boilerplate for a variety of process types. Here's a known list of process types: Windows Form running as a short-lived client application Long-running Windows Service. Long-running Task Tray app. Short-lived admin task. Camunda ...

Updating Controls from Non-GUI Thread

.NET

Here are a couple methods for how to update form controls from a non-GUI thread. Explicit Setter Method The following is an example method that can be called by non-GUI thread. It first checks if running on the GUI thread. If not, it will invoke a delegate...

Postgres: Troubleshooting Remote Access

PostgreSQL

Here's steps to work through, to ensure remote access to a PostgreSQL instance. Check PostgreSQL is Listening on All Interfaces From a terminal, open the postgresql.conf file, with this: sudo nano /etc/postgresql/<version>/main/postgresql.conf NOTE: Replac...

database
postgres
Administration

Docker Commands

System Administration

Here’s a list of commands to remember for docker administration. List Containers To list all docker containers on a host: sudo docker ps -a Remove Containers To remove all docker containers on a host: sudo docker rm -f $(sudo docker ps -aq) Container Lo...

Administration
docker
deployment

SSH Key Naming Convention

System Administration SSH Keys

This page describes a good naming convention for SSH keys, that makes them easier to track, rotate, and revoke. You should use this naming convention for the filename of keys.And as well, use the same convention when populating the the comment field of each k...

SSH
Administration

How to Get Host SSH Key Fingerprints

System Administration SSH Keys

Here’s a short command line statement that will fetch the host ssh key fingerpring without authenticating with it: ssh-keyscan host | ssh-keygen -lf - Here’s another way to clean up ssh host key fingerprints: # remove any old fingerprints for the host ssh-...

Administration
SSH

Creating SSH Keys in Windows

System Administration SSH Keys

General Notes SSH keys can be easily generated in Windows, using PuttyGen. See this article for an update based on obsolete SHA-1 RSA key usage: Ubuntu 22.04 SSH the RSA key isn't working since upgrading from 20.04 Based on the obsolescence of RSA keys in U...

Administration
SSH

Permission Denied while Copying SSH Key for New User

System Administration SSH Keys

When setting up a new host, you will come across the need to copy SSH keys to it. This is easy to do, before disabling password authentication.But, the command line gyrations to copy a public key to a remote host while simultaneously logging into it with a di...

Administration
Linux
SSH

Linux VM Provisioning

System Administration

Here are some steps that need to be done when creating a VM template that will be used multiple times: Template Usage See this page to setup a deployed instance from a template VM: Ubuntu v24 Host Setup References Here’s a good reference for template gener...

Administration
deployment
Linux
ubuntu

Linux: Allow User to Skip Sudo Challenge

System Administration

When scripting command line work, you will come across the need to respond to sudo challenges, to execute commands that require elevation, if not running as root. You can choose to pass the user's password as stdinput, using the command line gymnastics at the...

sudo
Administration
Linux

Linux: Missing .SSH Folder

System Administration

When creating a new linux user, the system may not create a .ssh folder in the user profile, by default. This creates a little complexity as the permissions are a bit picky. Here are steps to do so. NOTE: Replace 'username' with the target user. Create the...

Administration
Linux

Linux: Shell Appearance

System Administration

If you ever log into a linux host, and the command prompt has only a '$', and there is no scrollable command history, then the shell may not be set to bash. Shell Assignment You can check what shell is assigned to the user with this: getent passwd username ...

Administration
Linux

Managed Host User Setup

System Administration

For hosts that will be managed by Ansible, or some other automated method, the host will need a user account with proper access. Follow these steps to setup the account and access. NOTE: This page assumes that SSH server is setup.And, that the firewall rules...

ansible
Administration
deployment
Linux