Featured

Building a Fully Local, System-Wide AI Agent CLI on Linux

Cloud-based agentic CLI tools are undeniably convenient, but sending internal terminal workflows, system commands, and proprietary files to third-party endpoints is a persistent privacy risk. Running a fully local, autonomous agent directly on your workstation eliminates subscription costs, avoids rate limits, and grants you unconstrained access across all your attached drives. This guide details how to pair Ollama with Open Interpreter on modern Linux (Ubuntu), resolve tricky runtime quirks like Python 3.14 native builds and removed modules, map persistent storage, and create a one-click desktop launcher. System Architecture The setup consists of two layers: Inference Engine (Ollama): Serves local open-weight models with hardware GPU acceleration. Agent Harness (Open Interpreter): Interprets natural language queries, writes code, and executes Bash or Python commands directly on your system. For agentic coding and file management, qwen2.5-coder:14b provides an optimal balance of c...

Removing Write Protection from a Read-Only USB Drive

If you've ever encountered a USB drive that's inexplicably become write-protected, you're familiar with the frustration of being unable to modify or delete files. This issue can arise for various reasons, but fortunately, there are several methods to resolve it. Below, I'll walk you through a few ways to remove write protection from a read-only USB drive.


Check the Physical Switch

Some USB drives come with a physical write-protection switch. If your USB drive has one, ensure that it is switched off. This is the simplest and quickest method to resolve the issue.


Using DiskPart in Windows


DiskPart is a powerful command-line utility in Windows that can be used to manage your disks and partitions. Here’s how to use it to remove write protection:


   - Press `Windows + X` and select "Command Prompt (Admin)" or "Windows PowerShell (Admin)".


   - Type `diskpart` and press Enter.


   - Type `list disk` and press Enter. This will show all the disks connected to your computer.


   - Identify your USB drive from the list (e.g., Disk 1). Then, type `select disk 1` (replace 1 with the correct disk number) and press Enter.


   - Type `attributes disk clear readonly` and press Enter.


   - Type `exit` and press Enter to close DiskPart.


Using the Registry Editor


If the above method doesn’t work, you can try modifying the registry settings.


   - Press `Windows + R`, type `regedit`, and press Enter.


   - Go to `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies`. If you don't see the StorageDevicePolicies key, you’ll need to create it.


   - Right-click on the right pane, select `New > DWORD (32-bit) Value`, and name it `WriteProtect`.


   - Double-click on `WriteProtect` and set its value to `0`.


   - Restart your computer for the changes to take effect.


There are several third-party tools available that can help remove write protection from a USB drive. Tools like EaseUS Partition Master, Kingston Format Utility, and HP USB Disk Storage Format Tool are popular choices. Here’s a brief on how to use one of these tools:


   - Download a reputable tool like EaseUS Partition Master.


   - Open the software, find your USB drive, and select it.


   - Look for an option to remove write protection or format the drive. Follow the on-screen instructions.

Comments