<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Ollama - Tag - JMS Blog</title><link>/tags/ollama/</link><description>Ollama - Tag - JMS Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 02 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="/tags/ollama/" rel="self" type="application/rss+xml"/><item><title>Ollama as user systemd service</title><link>/posts/ollama-local/</link><pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate><author>jms</author><guid>/posts/ollama-local/</guid><description><![CDATA[<p>Sometimes I need a service to run when my user is logged in, otherwise the service can run
like the other services when the machine start, <code>systemd</code> can provide that functionality.</p>
<h2 id="ollama">Ollama</h2>
<p><code>Ollama</code> is one of the tools that allows you to run large language models locally. There are other tools like <code>Unsloth Studio</code>, <code>llama.cpp</code>, <code>LM Studio</code>, but <code>Ollama</code> is the simplest.</p>
<div class="details admonition note open">
    <div class="details-summary admonition-title">
        <i class="icon far fa-pen-to-square" aria-hidden="true"></i>Installation<i class="details-icon fas fa-angle-right" aria-hidden="true"></i>
    </div>
    <div class="details-content">
        <div class="admonition-content"><div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-sh">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl">curl -fsSL https://ollama.com/install.sh <span class="p">|</span> sh</span></span></code></pre></div></div>
<p>By default, running the installation script will attempt to create a user <code>ollama</code> and <code>systemd</code> unit file to run the service when the machine starts.</p>]]></description></item></channel></rss>