Installation steps /script snippets for Open Web-UI on Debian

This is just a quick info dump for my own future reference, an anyone else who might benefit. Many parts are uncertain and should be investigated for clean up. But it works, and I have other priorities. Apologies at the mess and hard to read order, but there are plenty of other nice walkthroughs that I followed for this. I recommend one of them instead as your base, and this just as a reference.


Now, how to do code blocks in this interface...? Alas, not in the base offering of Blogger... Yuck.


  • System: Debian trixie/sid mixed with many stable packages, as of 2025-06-14.
  • Desireable: A remote access method, such as tailscale or easily opened and secured ports.
  • Option selected: A more native python based, rather than the docker container option.

Install pipx and dependencies via package manager of choice.

Configure some settings files in the directory, especially environment variables.

Here is a dump of my files / scripts used. Adjustments are needed.

First section includes multiple files, which should be configured per your system needs.


::::::::::::::
open-webui.env
::::::::::::::

# ==========================
# Open WebUI Environment (.env)
# ==========================
# refer https://docs.openwebui.com/getting-started/env-configuration/#overview

# - Non-PersistentConfig variables can be changed at any time and will take effect on restart.

# Bind to 0.0.0.0 for LAN access (default port 8080)
WEBUI_HOST=0.0.0.0
WEBUI_PORT=8081
# FIXME: used?
HOST=0.0.0.0
PORT=8081

# disable telemetry
# Telemetry/analytics controls (not PersistentConfig)
SCARF_NO_ANALYTICS=true
DO_NOT_TRACK=true
ANONYMIZED_TELEMETRY=false


# ==========================
# Unknown if PersistentConfig

# Enable audio in / out features
## Speech-to-Text (STT) configuration for DeepInfra
AUDIO_STT_ENGINE=openai
AUDIO_STT_MODEL=whisper-large-v3-turbo
# FIXME: or is it?
# AUDIO_STT_ENGINE=openai
# AUDIO_STT_MODEL=openai/whisper-large-v3-turbo
## Text-to-Speech (TTS) configuration for DeepInfra
AUDIO_TTS_ENGINE=hexgrad
AUDIO_TTS_MODEL=Kokoro-82M
# FIXME: or is it?
# AUDIO_TTS_ENGINE=openai
# AUDIO_TTS_MODEL=hexgrad/Kokoro-82M
# Many voice choices: https://deepinfra.com/hexgrad/Kokoro-82M/api?example=http
AUDIO_TTS_VOICE=af_bella


ENABLE_ONEDRIVE_INTEGRATION=True
# UNKNOWN: ONEDRIVE_CLIENT_ID


# Description: Specifies the base directory for data storage, including uploads, cache, vector database, etc.
# FIXME: Use XDG instead.
DATA_DIR=/home/USERID/Projects/Open-webui/OpenWebUI_Data

# ==========================
::::::::::::::
open-webui.env.first_run_lan
::::::::::::::
# ==========================
# Open WebUI Environment (.env.first_run_lan)
# only first run
# ==========================
# Allow open access
# Disable user authentication (WARNING: insecure, use only in trusted LAN)
# Disable user accounts and authentication
# User/account/authentication controls
ENABLE_SIGNUP=False
WEBUI_AUTH=False


::::::::::::::
open-webui.envish.first_run
::::::::::::::

# To be sourced.

# ==========================
# Open WebUI Environment (open-webui.envish.first_run)
# only first run
# refer https://docs.openwebui.com/getting-started/env-configuration/#overview
# ==========================
mkdir -p "${HOME}"/Documents/OpenWebUI

# DeepInfra API configuration
OPENAI_API_BASE_URL=https://api.deepinfra.com/v1      # PersistentConfig: Yes
# OPENAI_API_KEY=your_deepinfra_api_key_here            # PersistentConfig: Yes
export DEEPINFRA_TOKEN=$(pass show Passwords/api.deepinfra.com)
OPENAI_API_KEY=$DEEPINFRA_TOKEN

# Default language/locale
# DEFAULT already, but for good measure.
DEFAULT_LOCALE=en-US                                     # PersistentConfig: Yes

# Enable image generation (set to True since DeepInfra supports it)
ENABLE_IMAGE_GENERATION=True                          # PersistentConfig: Yes

# include OLLAMA_BASE_URL since using Ollama locally.
OLLAMA_BASE_URL=http://NAME_OF_LOCAL_HOST_IN_REMOTELY_ACCESSIBLE_FORM:11434  # PersistentConfig: Yes

# ==========================
# Notes:
# - PersistentConfig variables are only read from this file on FIRST LAUNCH.
#   To change them later, use the Open WebUI interface or clear the internal config.
Now ready to try an installation. At a regular bash prompt:

mkdir -p ${HOME}/Tmp/Pip_Cache # outside of tmpfs (which is too small)
TMPDIR="${HOME}"/Tmp/Pip_Cache pipx install open-webui   # Alternatively "--no-cache-dir"
sudo ufw allow 8081

Next, first run including configuration

:::::::::::::: open-webui.init.sh ::::::::::::::

# preload password-repo

# safer, but not support pass calling : Export variables: export $(grep -v '^#' ~/.open-webui/.env | xargs)
source ./open-webui.envish.first_run
export $(grep -v '^#' ./open-webui.env.first_run_lan | xargs)
export $(grep -v '^#' ./open-webui.env | xargs)
echo is DATA_DIR correct?  : $DATA_DIR
open-webui serve --host $WEBUI_HOST --port $WEBUI_PORT
:::::::::::::: open-webui.run.sh ::::::::::::::

# safer, but not support pass calling : Export variables: export $(grep -v '^#' ~/.open-webui/.env | xargs)
export $(grep -v '^#' ./open-webui.env | xargs)
open-webui serve --host $WEBUI_HOST --port $WEBUI_PORT
:::::::::::::: open-webui.upgrade.sh ::::::::::::::

TMPDIR="${HOME}"/Tmp/Pip_Cache pipx upgrade open-webui   # Alternatively "--no-cache-dir"

That is what I did.

Book recommendations and recent reads

Be aware, I feel books worth reading are ones that should affect your thinking on the world, your world view.  That means they should impact the most controversial topics…

 

 

Latest Reads - In Progress

               Christian Bible

               (Currently going through the book of Proverbs. I find the Contemporary English Version the translation I like the best, with World English Bible  being the freely available translation I like. The section of the Gospel of John and the 1st Letter to the Corinthians by Paul are good places to start, and the whole is beneficial.)

               Security Engineering by Ross Anderson:https://www.cl.cam.ac.uk/~rja14/book.html

               (It is slow going for me due to time constraints and the large size, but I like it.)

 

Latest Reads finished

               Francis Bacon's New Atlantis

 

Recommended

               U.S.A. Constitution and amendments

               DVZine 

               The Cathedral and the Bazaar

               Transparent Society

(Both an article and a book. Previously shared this with some in SBD on Teams)

In the Beginning was the Command Line

               (Excellent discussion of user interfaces approaches)

             Hackers, Heroes of the Computer Revolution by Steven Levy

               E-Books by Jules Verne at Project Gutenberg, https://www.gutenberg.org/ebooks/author/60

               E-Books by many other freely available at Project Gutenberg

 

Longer list (but still incomplete) available at

               https://www.librarything.com/catalog/hrabbey

               or

               https://www.goodreads.com/review/list/155915753-howard-abbey

               (My rating scale is 1 = worth reading, 3 = really good, 5 = a must read)

 

 

Another tidbit:

My wife Jodi is a voracious reader, helps with our church library, and enjoys helping people find books that they might enjoy reading.

 

Enjoy,

Howard

A good selection of Reese's peanut butter cups

 I love all #REESES pb cups, but my wife only loves the white ones. Thankfully many varieties to choose from.

Happy Thanksgiving & Merry Christmas!

Return Shout-out to Automotive News

Had a great time talking with Automotive News on the #COVID19 effect on #AutonomousVehicles. A quick 15min listen on AV and EV status.


Sale Announcement: Ancestral home contents finally (mostly sorted)

I am pleased to announce that there will be an estate sale at my parents house on 9/27-30/2017.

More than a year after the first big dig and dumpster filling, the collection is now sifted, sorted, and pushed around to a point that people can see what is there. 

I give a lot of credit to Integrity Estate Sales team for being willing to persevere in their digging and sorting.
They have posted pictures of some of the items for sale.

There will be a family only day available before it opens to friends and public.  I would love to visit and see family there, so please let me know if you can come so I can give the details.

Labor Day for 1st dumpster filling at H.R.Abbey estate

If anyone is available on Labor Day, starting mid-morning, to help clear out a bit of my junk in Roseville, let me know.

Sally Abbey funeral arrangements for this weekend, 7/29-30/2016 A.D.

Apologies for not sharing this sooner.
My mother, Sally Abbey, died suddenly Tuesday in the morning.

She died from a stroke / heart attack.

I found her early Tuesday evening on the floor.
It seems it was very sudden, with minimal suffering.

We had visited Saturday, and she had a very nice, enjoyable day. She
seemed healthy as always.

Funeral arrangements are for visitation on Friday evening and Catholic
Mass on Saturday, at 11am at Kaul's of Roseville.

Details are on her online obituary.
Mom is with Jesus, and no longer missing Dad.

Video and pictures from funeral of Pauline Lantz

Hello family,
specifically family of Jodi and of Pauline Lantz,

I put the video of the funeral service of Pauline Lantz online.


A few pictures of the graveside service are online as well.

May God help the family adjust to the loss of this loved one.

Idea for hearing aids

Why don't hearing aids have an instant replay button?  That way if a person did not understand something they could try replaying the recording at a higher volume first before asking the person to repeat themselves.

Apple Maps mapping van sighted on Detroit suburbs expressway

Apple is working to improve its maps offering by collecting camera and other data, as reported by The Verge on 6/10/2015.

One of the vans had been previously spotted in June in downtown Detroit, as shown on a map of Apple Map van sightings collected by Mac Rumors.  The earliest listed was in 8/2014.  The last update to the map was in 7/27/2015, so I will not bother submitting this sighting

The two new (as far as I know) items that the 12/10/2015 sighting adds
  • The van had "Apple Maps" written on the side.  Early sightings, before Apple announced the project publicly, did not have this.
  • Apple has apparently finished focusing on downtown Detroit, and is now working on the suburban expressways.  (The van changed from eastbound I-696 to westbound I-696.)  They do not yet seem to be focused on residential areas in Detroit, unlike reported sightings in other metropolitan areas.

Apple Maps van turning north from I-696 exit ramp, Farmington Hills, MI

Thanks to God for Greg Yoder's time with Mission Network News, and prayer for the transition.

A prayer this morning, based on the news I heard of Greg Yoder's last newscast
Lord,
I thank you greatly for the 20 years of service Greg Yoder, MNN Anchor, has given me and many Christians via Mission Network News​.  We pray that you will help Greg during his transition and that you would help Mission Network News as they search for a new leader.

How to Identify What Number is Your Font Character

This is a bit of an update / extra information for the information found at http://scripts.sil.org/UTTUsingUnicodeMacros (also archived at the Internet Archive).
It was written in 2005, but I found it still useful.
However, the toolbar icon mentioned in that page was not found in Office 2010.

Below is another method for identifying the computer encoding number associated with a character one has but does not know.

In Windows 7, there is Private Character Editor (eudcedit.exe), which can be started from search box of Start menu.  It requires administrative permissions to run.
Once opened,

  • Select an empty box to open a character editor.
  • Make sure in upper left, Character Set selected is Unicode
  • Select on the menu Edit, then Copy Character
  • Click in the Shape box to activate.
  • Paste in a single unknown character of interest from the Windows clipboard, and the numeric code should be listed above it in hexadecimal.
This was the easiest way I found to identify non-ASCII characters.

The two characters I was looking for were ° (0x00B0) and ℃ (0x2103).

To go from number to display of character to copy, charmap.exe is the program I recommend using.

SuperBowl Ad that was pulled was less damaging than previously aired ones.

 Why is the exploitation of women's bodies and men's hormones more acceptable and less outrageous and less worthy of being pulled from the public eye than the exploitation of dogs?

I like dogs, but I feel the 2015 proposed SuperBowl ad by GoDaddy leads to less encouragement of inappropriate activity than the previous GoDaddy Superbowl commercials.  Puppy mill total profits vs porn industry total profits?  Number of criminals in jail for varieties of animal abuse (or even people on SPCA's not liked list) vs number of rapists in jail?

Thanks to GoDaddy for directing their pushing the limits away from the sexual limits.
Encouragement to GoDaddy in the future to find ways to entertain without pushing social limits.
Encouragement to society to reprioritize and realize the challenge appropriate sexuality is to men.
One of my biggest complaints about advertising is that it goes against the desire to keep our minds on whatever is true, pure, right, holy, friendly, and proper.

Mom still adjusting, but OK and seems safe.

Mom is still adjusting to being a widow.  A main sadness is lack of company or things to keep her busy.  Her knitting helps, when she remembers it or is not tired of it.  She also has been enjoying getting Christmas cards.  She keeps on talking of writing up some to send out, but I doubt her attention span and memory will be such that she will ever get them out.  She does think of many people, and has not forgotten her friends and family.
She is usually OK, but once in a while gets lonely.

She had a doctor appointment on Thursday.  Her blood sugar level was really good, at 95.  In general, she seems healthy.  Mom asked if there was anything that could be done to help her memory.  (I think it is worse than it was a couple months ago, in some respects.)  The doctor said she needs some people to talk to.  Being alone too much is not helping her memory.

The social worker that is affiliated with the doctor had her second and last visit on Friday.  She recommended, but did not require, assisted living for Mom.  In other words, Mom and I would get benefit from some of the services, but there is not an urgent safety need for them.  Mom is still adamant about not moving, although sometimes she is open to considering a senior apartment.  She wants to stay in the same area, and not move closer to me, because she knows that area, and would feel like she would have to learn where all the stores are in a new area.

The social worker also gave some recommendations on home care / private duty care providers, a new louder phone, and on pill dispensers that are timed to help Mom remember to take her medicine.  The pill dispenser comes with a monthly charge for a monitoring service, so that does not really sound like what we want.

The phone answering machine quit working about a week ago.  I am not planning on replacing it because Mom had a lot of trouble with it anyway.  Without one, the phone can keep ringing, giving her more time to hear it, and get to it.

Today Mom came and visited our house for the first time.  She said she had a good time.  We wanted to get her away for the day, because 45 years ago today, Mom and Dad were married.

So I would say things are going OK, but not great near term, and still a lot of uncertainly long term.  I am glad Mom is safe and healthy.

Mom considered safe to stay at home alone.

A meeting at the house with a medical social worker today was uneventful and went well.
She was convinced that Mom is safe at home. She is going to help by making some recommendations for pill dispenser with alarm reminder, and phone ringer with flashing light. The nurse, after her second visit, was less worried as well.

Mom's doctor appointment went OK; cold less a worry than regular pill taking.

Doctor is worried that Mom might not regularly take her pills.  He is planning on asking a visiting nurse to check up on her.

Mom not great, but OK, I am fine

I am doing OK, keeping too busy to really be affected by much. Between work and paperwork needing done for the estate, and some other items, it seems like I have zero time.

Mom is struggling a bit. She is still adjusting, and realizes it will be a big adjustment. She is very lonely at times. I wish I knew how best to make it easier for her.

Funeral went well.

The funeral went well in my opinion, and helped Mom and I mourn about Dad's death and rejoice about Dad's life.  Thanks to all who helped, attended, and prayed.

Eulogy / Tribute to my father, Harold Abbey

Dad was not perfect, and made many mistakes.  However, I want to share some areas that I think we can learn from my father, Harold Abbey.

Dad loved Mom deeply.  Many of the health care workers got to see love expressed in ways that were not possible when they were both healthy.  When Mom was near death due to a stroke a year ago, Dad said that he wanted to hear Mom yell at him, because then he would know she was OK.  Dad cried out desperately to God to save her, and God in His mercy did.  So He got his desire to be yelled at.  Even in much of their bickering, you could tell that Mom and Dad deeply loved each other.  When Dad was ill himself, he fought the best he could because he worried about Mom, and wanted to care for her.  Even his cheapness reflected love.  He loves God, and wanted to not waste God's money, and he loved Mom, and feared that she would not have enough during retirement years. 

Dad was tight with his money for himself, but was generous as he felt he could be with others.  He knew however that money alone often can only make underlying issues worse, so he tried to be careful.
Dad would have spoiled me badly, but he did not have it to give.  He told me he was glad he did not have it, because he knew it would not be good for me.
Dad hated to see anything go to waste.  He felt he should not throw away items that God had given to him to take care of.
Even the items in the dumpster at the Hudson's department store, such as cabinets, lumber, light fixtures, and much else was salvaged.  It has blessed many of the family and friends.