User Tools

Site Tools


linux64

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux64 [2025/07/13 11:08] – [ollama in podman for ai] bengtlinux64 [2025/10/27 20:15] (current) – [squeezebox/lyrion music server] bengt
Line 497: Line 497:
   $ sed 's#/data/music/#Y:/music/#g' Bengts.m3u > BengtsWin.m3u   $ sed 's#/data/music/#Y:/music/#g' Bengts.m3u > BengtsWin.m3u
  
 +There is an issue with loosing connection with radios on modern wifis. Maybe playing a mad song when using the radio as an alarm clock. The community firmware could be the solution: https://forums.lyrion.org/forum/user-forums/3rd-party-software/1699666-how-and-why-to-install-the-community-firmware-step-by-step
 ==== samba network shares ==== ==== samba network shares ====
  
Line 805: Line 806:
 URL Redirect Record @ http://www.johannesson.rocks Unmasked URL Redirect Record @ http://www.johannesson.rocks Unmasked
 (If you keep the URL redirect stuff then the ip-addresses will be combined with namecheaps. Not good.) (If you keep the URL redirect stuff then the ip-addresses will be combined with namecheaps. Not good.)
 +
 +
 +==== OpenWebRX+ for radio ====
 +
 +I buought an rtl sdr dongle that I later realized would be nice to pair with a leftover pi 4: \\
 +https://fms.komkon.org/OWRX/ \\
 +https://luarvique.github.io/ppa/ \\
 +
 +Use the the official raspberry image to enable and set ssh username/password: \\
 +https://github.com/luarvique/openwebrx/releases/ \\
 +https://www.raspberrypi.com/software/ \\
 +
 +SSH into the machine and follow the instructions to add a user: \\
 +sudo openwebrx admin adduser <USERNAME>
 +
 +You may want to install extra drivers, see note on home page: \\
 +sudo install-softmbe.sh
 +
 +Some comments about antenna length:
 +https://www.rtl-sdr.com/using-our-new-dipole-antenna-kit/
  
 ==== ollama in podman for ai ==== ==== ollama in podman for ai ====
Line 813: Line 834:
   # visudo   # visudo
   ALL ALL=(ollama) NOPASSWD: /home/ollama/start.sh   ALL ALL=(ollama) NOPASSWD: /home/ollama/start.sh
 +  # firewall-config # Add tcp 11434 to be able to access it from hass
   # su - ollama   # su - ollama
   $ mkdir ollama   $ mkdir ollama
   $ vi start.sh   $ vi start.sh
 +  #!/bin/bash -x
 +  cd $HOME
   loginctl enable-linger ollama   loginctl enable-linger ollama
-  podman run -d -v /home/ollama/ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama+  podman run -d --rm -v /home/ollama/ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
   $ chmod u+x start.sh   $ chmod u+x start.sh
-Then setup a start.sh-script containing the startup command line and maybe start this using "lxterminal -t minecraft -e sudo -u ollama /home/ollama/start.sh"Remove "-d" from the podman command line to see the output if starting this way.+Then setup a start.sh-script containing the startup command line and maybe start this using "lxterminal -t ollama -e sudo -u ollama /home/ollama/start.sh"Replace "-d" with "-it" in the podman command line to see the output if starting this way
 + 
 +Test it as the ollama user: 
 +  # su - ollama 
 +  $ podman exec -it ollama ollama run llama2 
 + 
 +You can add the ollama integration to home assistant. On issues check your firewall config. Be sure to have "conversation:" "assist_pipeline:" in configuration.yaml if you do not use the default config before trying to setup assist pipelines.
  
 TODO: GPU support. Need to use nvidia drivers first... TODO: GPU support. Need to use nvidia drivers first...
linux64.1752404888.txt.gz · Last modified: 2025/07/13 11:08 by bengt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki