Advanced Search
Search Results
156 total results found
SystemCtl Usage
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 ...
UFW and Docker
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...
Cancellation Token as Method Parameter
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
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
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
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...
Docker Commands
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...
SSH Key Naming Convention
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...
How to Get Host SSH Key Fingerprints
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-...
Creating SSH Keys in Windows
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...
Permission Denied while Copying SSH Key for New User
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...
Linux VM Provisioning
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...
Linux: Allow User to Skip Sudo Challenge
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...
Linux: Missing .SSH Folder
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...
Linux: Shell Appearance
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 ...
Managed Host User Setup
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...