Notes & Thoughts
Understanding Local LLMs on a Raspberry Pi
Published: 2024-07-26
One of my recent fascinations has been the capability of running large language models (LLMs) entirely on local hardware, particularly on low-power devices like the Raspberry Pi. This approach offers significant advantages...
The primary motivation is privacy. By keeping the model and all its processing on my local network, I maintain complete control over my data. There's no information being sent to third-party servers, which is crucial for sensitive applications or just for personal peace of mind.
Another benefit is cost efficiency. While powerful models often require significant cloud computing resources, smaller, optimized LLMs can run surprisingly well on devices like the Pi 5. This opens up possibilities for accessible, always-on AI assistants or automation tools without recurring subscription fees.
The challenges, of course, include managing computational resources. Optimizing models, using quantization techniques, and choosing the right software frameworks (like Llama.cpp) are key to achieving usable performance.
I'll be diving deeper into my setup and specific results in future notes. Stay tuned!
Reflecting on Eco-Friendly Tech Practices
Published: 2024-07-20
In a world increasingly reliant on technology, the environmental footprint of our digital lives is something I think about often. From the energy consumption of data centers to the lifecycle of our devices, there's much to consider...
My personal philosophy involves maximizing the lifespan of hardware, favoring repairs over replacements, and consciously choosing energy-efficient solutions where possible. Running `piconet.work` on a Raspberry Pi is a small but significant step in this direction, demonstrating that powerful, useful services don't always require massive energy expenditure.
I believe that as technologists, we have a responsibility to not only innovate but also to consider the broader impact of our creations on the planet.
Integrate Warp into the Thunar File Manager
To use Warp as the default terminal in XFCE's Thunar file manager and have it open in the correct directory, you can create a simple custom action. This guide ensures the "Open Terminal Here" functionality works as expected.
Step 1: Open Thunar Custom Actions
In Thunar, click on the "Edit" menu and select "Configure custom actions...".
Step 2: Create a New Action
Click the "+" button to add a new action. In the "Basics" tab, give it a descriptive name like "Open in Warp". For the "Command" field, enter the following:
xdg-open "warp://action/new_tab?path=$(realpath %f)"
Step 3: Configure Appearance Conditions
Switch to the "Appearance Conditions" tab. Check the box for "Directories" to ensure the action appears when you right-click on a folder.
Step 4: Test the Action
Click "OK" to save. Now, when you right-click on any directory, your "Open in Warp" action should appear in the context menu and launch a new Warp tab in that specific path.
Explanation:
- xdg-open: A standard Linux utility to open files and URLs with the appropriate application.
- warp://...: The URI scheme used by Warp to receive commands.
- $(realpath %f): This is a key part of the update. `realpath` converts the path provided by Thunar (`%f`) into a full, absolute path, which is required by the Warp URI scheme.