Posts

Hermes Agent - Ollama Server Check

Check for Ollama Server before hermes --tui Starts

Since Hermes doesn't warn you if you don't have an active local end point when you are set up to use a local model in the --tui mode, you would need a way to remind yourself if the ollama service is running before use.

One can certainly make the ollama server run on system start up, but this might excessive when you don't plan on using ollama for hermes all the time.

A technique to solve the issue of forgetting to start up the ollama server is to wrap the hermes command and peform the checks on it before hermes can execute.

Categories: #Shell
Incus - Enable GPU Passthru for Incus Container

Host GPU Access

To get the most out of your incus container, you can opt to enable the use of the host gpu through the container. It is recommended that you use a linux container distro that matches your host for better kernel compatibility.

First, check if gpu is enabled

sudo incus config device list <container_name>
Categories: #containers
Emacs - Basic Setup

Adding a couple of plugins into emacs will help you become more productive in emacs. The tree view and syntax highlighting are two important functionalities that I deemed to be the essential in having in your code editor of choice.

To get started, we will need to add the Melpa repository to our emacs init.el file to get access to additional packages.

Categories: #editor
Incus - Container Can not Use Network

Host Firewall Rules

A potential cause for your container not being able to reach outside the internet could be caused by firewall rules. For example, on my system , there weren't any recent changed made to my incus network configuration, but somehow system packages were not able to be downloaded inside all my incus containers. It could be that your operating system package manager or system configuration elsewhere could have made updates to your firewall rules.

Categories: #containers
Zola - Validating HTML

Build Command

Since Zola doesn't have any post build output, one has to rely on checking on the HTML post build output for HTML validness. Once you know the issue that occurs in the HTML, you can work backwards to resolve the problem.

Zola has a build command that will create all the HTML pages for your site.

zola build
Categories: #cms
Uv and Pip

Using Pip in the UV Venv

By default, uv does not provide pip in the uv venv environment. https://github.com/astral-sh/uv/issues/12604

This might cause unintended consequences when you accidentally use pip install instead of uv pip install.

To avoid this issue, you need to use the --seed option when creating the initial uv venv environment. Then activate the venv before performing running any pip commands.

Categories: #python