Lynxbee topic

Ubuntu

Fix apt Stuck at 0% Connecting on Ubuntu

When apt pauses at “0% Connecting,” the last displayed address is evidence, not a diagnosis. Determine whether DNS, IPv6 routing, IPv4 routing, a proxy, TLS, a captive portal, the selected mirror, or an unsupported Ubuntu release is failing before changing system-wide address selection.

Hear Your Microphone Through Speakers on Linux

Create a temporary audio loopback from a named microphone source to a named speaker or headphone sink using pactl. Start at a conservative volume and latency, save the returned module ID, unload that module to stop monitoring, and control acoustic feedback before turning anything up.

Fix dpkg and apt Lock Errors Safely

An apt or dpkg lock usually means another package operation is already protecting the package database. Do not delete the lock file. Identify the owner, let healthy updates finish, terminate only a genuinely frozen frontend, then complete pending configuration and dependency repair.

Fix curl/curl.h Missing on Ubuntu C Builds

The `curl` command is not the libcurl development kit. Current Ubuntu builds normally need `libcurl4-openssl-dev`, which supplies headers and build metadata. Use pkg-config or CMake’s CURL target so transitive link flags and non-default installation paths remain correct.

Fix openssl/ssl.h Missing on Ubuntu Builds

The OpenSSL command and runtime library are not enough to compile C/C++ code. Ubuntu puts headers, unversioned linker files, and pkg-config metadata in `libssl-dev`. Install it for the correct architecture, then let pkg-config or CMake supply paths instead of hard-coding `/usr/include`.

Set a Static IP on Ubuntu Without Losing Access

A stable address is usually safest as a DHCP reservation. When the host itself must own a static address, identify the active renderer, choose an address outside the dynamic pool, validate Netplan syntax, use rollback-capable apply, and verify link, route, DNS, and remote access separately.

Protect Apache with Basic Auth on Ubuntu

HTTP Basic authentication can place a small, auditable username/password gate in front of an Apache directory. Use it only over HTTPS, keep the password file outside the document root, validate configuration before reload, and test both unauthorized and authorized paths without exposing credentials.

Set Up Flutter on Ubuntu and Read flutter doctor

Build a reliable Flutter development environment on Ubuntu, then prove each layer works. This setup covers the Flutter SDK, Android toolchain, licenses, emulator or USB device, a real test app, and the difference between required and optional flutter doctor checks.

Run OpenGrok Code Search on Ubuntu

The old Java 8, Tomcat 8, and Snap ctags recipe no longer matches OpenGrok’s requirements. This deployment uses the maintained official container, pins a release, keeps source read-only, persists index data, binds locally, and explains indexing and upgrades.

Fix “sudo: unable to resolve host” on Ubuntu

This warning usually means the machine’s active hostname no longer resolves through its configured Name Service Switch sources. Diagnose the exact name first, correct `/etc/hosts` or hostname configuration safely, and verify through `getent` before changing DNS.

Shuffle Music from the Ubuntu Command Line

For a trusted local music folder, mpv can recurse and shuffle it directly. This article also preserves the MPlayer workflow, fixes fragile filename handling, shows reusable playlists, and explains playback controls and audio troubleshooting.

Skype on Ubuntu Is Retired: What to Use Now

Installing the old `skypeforlinux` package is no longer a working solution: Microsoft retired Skype on May 5, 2025. Ubuntu users should move to Teams on the web or its PWA, handle any remaining Skype data, and remove the unsupported client.

Debug C Programs with GDB on Ubuntu

A debugger becomes useful when a crash that looked random becomes one source line, one call path, and one impossible value. Follow a complete GDB investigation from failure to verified fix.

WiFi monitor mode and commands to enforce monitor mode in Linux / Ubuntu

Monitor mode, or RFMON (Radio Frequency MONitor) mode, allows a computer with a wireless network interface controller (WNIC) to monitor all traffic received from the wireless network. Monitor mode allows packets to be captured without having to associate with an access point or ad hoc network first.

Engineering weekly

Useful technical knowledge, not inbox noise.

Receive verified fixes, references, labs, and tools. Confirm by email; unsubscribe any time.