<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ai on Nobody&#39;s Home</title>
    <link>https://new.cloud.nobodyhome.dev/tags/ai/</link>
    <description>Recent content in Ai on Nobody&#39;s Home</description>
    <generator>Hugo -- 0.154.5</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 03 Jul 2024 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://new.cloud.nobodyhome.dev/tags/ai/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ollama Service</title>
      <link>https://new.cloud.nobodyhome.dev/posts/ollama-service/</link>
      <pubDate>Wed, 03 Jul 2024 00:00:00 +0000</pubDate>
      <guid>https://new.cloud.nobodyhome.dev/posts/ollama-service/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;llama|75&#34; loading=&#34;lazy&#34; src=&#34;https://ollama.com/public/ollama.png&#34;&gt;&lt;/p&gt;
&lt;h3 id=&#34;references&#34;&gt;References&lt;/h3&gt;
&lt;p&gt;&lt;a href=&#34;https://ollama.com/download&#34;&gt;Ollama.com&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;installation&#34;&gt;Installation&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;curl -fsSL https://ollama.com/install.sh | sh
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;useful-commands&#34;&gt;Useful Commands&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo usermod -aG ollama $USER 
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ollama pull llama3 llama2-uncensored godegemma gemma dolphin-mistral
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;service-configuration&#34;&gt;Service Configuration&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[Unit]
Description=Ollama Service
After=network-online.target

[Service]
ExecStart=/usr/local/bin/ollama serve
User=ollama
Group=ollama
Restart=always
RestartSec=3
Environment=&amp;#34;PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin&amp;#34;
Environment=&amp;#34;OLLAMA_HOST=0.0.0.0&amp;#34;

[Install]
WantedBy=default.target
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;useful-plugins&#34;&gt;Useful Plugins&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Obsidian: local gpt&lt;/li&gt;
&lt;li&gt;Openweb-UI&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;misc-information&#34;&gt;Misc Information&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Service runs on port 11433&lt;/li&gt;
&lt;li&gt;By default service only listens on local host&lt;/li&gt;
&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Openweb-UI</title>
      <link>https://new.cloud.nobodyhome.dev/posts/openweb-ui/</link>
      <pubDate>Wed, 03 Jul 2024 00:00:00 +0000</pubDate>
      <guid>https://new.cloud.nobodyhome.dev/posts/openweb-ui/</guid>
      <description>&lt;h3 id=&#34;references&#34;&gt;References:&lt;/h3&gt;
&lt;p&gt;&lt;a href=&#34;https://docs.openwebui.com/&#34;&gt;Open WebUI&lt;/a&gt;
&lt;a href=&#34;https://docs.openwebui.com/troubleshooting/&#34;&gt;Open WebUI Troubleshooting&lt;/a&gt;
&lt;a href=&#34;https://docs.openwebui.com/tutorial/web_search/&#34;&gt;Searxng Integration&lt;/a&gt;
&lt;a href=&#34;https://github.com/open-webui/open-webui/issues/2824&#34;&gt;This is my error&amp;hellip;&lt;/a&gt;&lt;/p&gt;
&lt;h4 id=&#34;setup&#34;&gt;Setup&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Main&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;docker run -d -p 8080:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Latest&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;docker run -d -p 8080:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:latest
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Docker Compose Yaml&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;version: &amp;#34;3&amp;#34;
services:
	open-webui:
		image: ghcr.io/open-webui/open-webui:latest
		container_name: open-webui
		volumes:
			- /home/mechanicus/open-webui:/app/backend/data
		restart: unless-stopped
		port:
			- &amp;#34;8080:8080&amp;#34;
		extra_hosts:
			- &amp;#34;host.docker.internal:host-gateway&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;updates&#34;&gt;Updates&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Pull the new image (make sure you pick main or latest based on your install)&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;docker pull ghcr.io/open-webui/open-webui:latest
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;Remove the old container&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;docker rm --force open-webui
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;Start the new container by rerunning the setup command&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;docker run -d -p 8080:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:latest
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;4&#34;&gt;
&lt;li&gt;(Optional) Let [[Watchtower]] Do it&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;docker run -d --name watchtower --volume /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower open-webui
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;troubleshooting&#34;&gt;Troubleshooting&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Resetting the admin password on a local instance - generate a new password hash&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;htpasswd -bnBC 10 &amp;#34;&amp;#34; your-new-password | tr -d &amp;#39;:\n&amp;#39;
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;Change the password using a new docker container - replace HASH with the new password hash you just generated.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;docker run --rm -v open-webui:/data alpine/socat EXEC:&amp;#34;bash -c &amp;#39;apk add sqlite &amp;amp;&amp;amp; echo UPDATE auth SET password=&amp;#39;\&amp;#39;&amp;#39;HASH&amp;#39;\&amp;#39;&amp;#39; WHERE email=&amp;#39;\&amp;#39;&amp;#39;admin@example.com&amp;#39;\&amp;#39;&amp;#39;; | sqlite3 /data/webui.db&amp;#39;&amp;#34;, STDIO
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;Data needs to be directly in the base folder for a mapped volume (Docker volumes use  &lt;code&gt;_data&lt;/code&gt; within a volume folder).&lt;/li&gt;
&lt;li&gt;[[Searxng]] needs the following changes to &lt;code&gt;searxng/settings.yml&lt;/code&gt;:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;search:
	safe_search: 0
	autocomplete: &amp;#34;&amp;#34;
	default_lang: &amp;#34;&amp;#34;
	formats:
		- html
		- json
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
  </channel>
</rss>
