Setting Up Static IP Address on Linux

This page explains how to set up a static IP address on a Linux with NetworkManager.   Steps 1. Static IP address(es) can be set up in *.nmconnection file under /etc/NetworkManager/system-connections like below. [ipv4] method=manual addresses=10.10.10.51 gateway=10.10.10.254 dns=10.10.10.254   2. Reload and restart sudo nmcli connection reload sudo nmcli connection down ‘MY HOME WIFI’ sudo… Continue reading “Setting Up Static IP Address on Linux”

VI Cheat Sheet

This isn’t an extensive list. I’m not a heavy vi user, so I often forget basic commands I want to use. So, this is a list of those commands.   Split screen vertically CTRL + w and v horizontally CTRL + w and s Move between screens down CTRL + w and j up CTRL… Continue reading “VI Cheat Sheet”

ALSA PCM State Machine

Note to self   1. PCM state (snd_pcm_state_t) [1] SND_PCM_STATE_OPEN SND_PCM_STATE_SETUP SND_PCM_STATE_PREPARED SND_PCM_STATE_RUNNING SND_PCM_STATE_XRUN SND_PCM_STATE_DRAINING SND_PCM_STATE_PAUSED SND_PCM_STATE_SUSPENDED SND_PCM_STATE_DISCONNECTED   State Machine [2]     References [1] snd_pcm_state_t [2] ALSA project – the C library reference

Disabling Bluetooth on Raspberry Pi

This post shows steps to 1) disable on-board Bluetooth and 2) disable Bluetooth completely. I tested the steps with Raspbian Stretch (November 2017 version). Update (Jul 9, 2019): Tested with Raspbian Buster 2019-07-10.   Disabling on-board Bluetooth The steps below shows how to disable on-board Bluetooth and related services. Those steps also disable loading the related kernel… Continue reading “Disabling Bluetooth on Raspberry Pi”

Lightning Bolt (Under-Voltage Warning) on Raspberry Pi

If a lightning bolt image appears in the top-right corner of the screen, it means Raspberry Pi is not getting enough voltage (4.65V according to this forum post). To prevent it from showing up, there are two options.   1) Replace Power Supply and/or Cable (Recommended) In most cases, it’s due to the power supply and/or… Continue reading “Lightning Bolt (Under-Voltage Warning) on Raspberry Pi”