{"id":24916871,"url":"https://github.com/priyansusahoo/ollama-webui","last_synced_at":"2026-02-13T10:15:41.135Z","repository":{"id":274209582,"uuid":"922237443","full_name":"Priyansusahoo/ollama-webUI","owner":"Priyansusahoo","description":"Streamlined Ollama WebUI Setup: Automated Scripts, LLM Integration, and Desktop Shortcut Creation","archived":false,"fork":false,"pushed_at":"2025-01-26T06:52:19.000Z","size":48,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T19:49:52.322Z","etag":null,"topics":["aifordevelopers","aiprivacy","aisetupscripts","automation","desktop-entry","developertools","efficientai","linuxai","llm","localai","localllm","machinelearning","offlineai","ollama","ollama-webui","opensource","privacyfocusedai","selfhostedai","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Priyansusahoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Priyansusahoo"}},"created_at":"2025-01-25T17:20:38.000Z","updated_at":"2025-02-24T10:50:47.000Z","dependencies_parsed_at":"2025-03-28T07:39:08.270Z","dependency_job_id":null,"html_url":"https://github.com/Priyansusahoo/ollama-webUI","commit_stats":null,"previous_names":["priyansusahoo/ollama-webui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Priyansusahoo/ollama-webUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyansusahoo%2Follama-webUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyansusahoo%2Follama-webUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyansusahoo%2Follama-webUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyansusahoo%2Follama-webUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Priyansusahoo","download_url":"https://codeload.github.com/Priyansusahoo/ollama-webUI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyansusahoo%2Follama-webUI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29401433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aifordevelopers","aiprivacy","aisetupscripts","automation","desktop-entry","developertools","efficientai","linuxai","llm","localai","localllm","machinelearning","offlineai","ollama","ollama-webui","opensource","privacyfocusedai","selfhostedai","ubuntu"],"created_at":"2025-02-02T08:19:03.320Z","updated_at":"2026-02-13T10:15:41.101Z","avatar_url":"https://github.com/Priyansusahoo.png","language":"Shell","funding_links":["https://github.com/sponsors/Priyansusahoo"],"categories":[],"sub_categories":[],"readme":"# About:\n- Automated scripts to simplify the process of Ollama and its WebUI Launch in one click on Ubuntu 24.04.1 LTS (Gnome). \n\n- Setting up a Large Language Model (LLM) like `DeepSeek-r1` with 8 billion parameters, and\n\n- Creating a `desktop entry` for easy access to the WebUI (Auto start ollama server and Validations)\n\n# SUPPORT:\n\n⭐ **Star this repo if you find it useful!** ⭐  \n\n[![Sponsor Priyansusahoo](https://img.shields.io/badge/Sponsor-Priyansusahoo-blue?logo=github\u0026style=for-the-badge)](https://github.com/sponsors/Priyansusahoo)\n\n\n\n# INSTALLATION:\n## Ollama \u0026 Ollama-WebUI Installation and Creating Desktop Entry:\n\n### UBUNTU 24.04.1 LTS (Gnome) (TESTED)\n\n## 1. Install Ollama:\n  \n    $ curl -fsSL https://ollama.com/install.sh | sh\n\n    $ sudo systemctl enable ollama\n    $ sudo systemctl start ollama\n\n## 2. Install an LLM of your choice \n### Select an LLM of your choice from [here](https://ollama.com/search).\n- For demonstration I will install DeepSeek-r1 8 billion parameters (4.9 GB):\n   \n      $ ollama run deepseek-r1:8b\n- This will take some time, after successfully installing\n\n      \u003e\u003e\u003e /bye\n\n## 3. [Install Ollama-WebUI](https://snapcraft.io/install/ollama-webui/ubuntu):\n\n- prerequisites (SNAP):\n\n      $ sudo apt update\n      $ sudo apt install snapd\n  \n- Ollama-WebUI:\n  \n      $ sudo snap install ollama-webui --beta\n\n## 4. Creating a Desktop Entry for Ollama-WebUI to access it from the app drawer\n\n- Save this `ollama-launcher.sh` to ~/.scripts folder as mentioned `$HOME/scripts/ollama-launcher.sh`\n\n      $ cd\n\n      $ mkdir -p ~/.scripts/\n\n      $ cd scripts/\n\n      $ touch ollama-launcher.sh\n\n      $ vim ollama-launcher.sh\n\n- `ollama-launcher.sh` :\n  \n  ```bash\n    #!/bin/bash\n\n    # Configuration\n    OLLAMA_HOST=\"127.0.0.1:11434\"\n    OLLAMA_WEBUI_PORT=8080  # Changed to match your actual web UI port\n    \n    # Check for required commands\n    check_commands() {\n        if ! command -v ollama \u0026\u003e /dev/null; then\n            echo \"Error: Ollama is not installed. Please install Ollama first.\"\n            exit 1\n        fi\n        \n        if ! command -v ollama-webui \u0026\u003e /dev/null; then\n            echo \"Error: ollama-webui command not found. Please install it first.\"\n            exit 1\n        fi\n    }\n    \n    # Function to check/start Ollama\n    start_ollama() {\n        if curl -s $OLLAMA_HOST \u003e/dev/null; then\n            echo \"✓ Ollama is already running\"\n            return 0\n        fi\n    \n        echo \"⚠️  Ollama is not running. Starting now...\"\n        \n        # Try systemd service first\n        if command -v systemctl \u003e/dev/null \u0026\u0026 systemctl start ollama 2\u003e/dev/null; then\n            echo \"✓ Ollama started via system service\"\n        else\n            echo \"✓ Starting Ollama in background...\"\n            nohup ollama serve \u003e /dev/null 2\u003e\u00261 \u0026\n        fi\n    \n        # Wait for Ollama to become available\n        echo -n \"⏳ Waiting for Ollama to start\"\n        local max_attempts=15\n        for ((i=1; i\u003c=$max_attempts; i++)); do\n            if curl -s $OLLAMA_HOST \u003e/dev/null; then\n                echo -e \"\\n✓ Ollama is ready!\"\n                return 0\n            fi\n            echo -n \".\"\n            sleep 1\n        done\n    \n        echo -e \"\\n❌ Failed to start Ollama after $max_attempts attempts\"\n        exit 1\n    }\n    \n    # Function to handle port conflicts\n    handle_port_conflict() {\n        echo \"🛑 Port $OLLAMA_WEBUI_PORT is already in use\"\n        \n        # Find PID using the port\n        pid=$(ss -tulpn | grep \":$OLLAMA_WEBUI_PORT\" | awk '{print $7}' | cut -d= -f2 | cut -d, -f1)\n        \n        if [ -n \"$pid\" ]; then\n            echo \"🔍 Found existing process (PID: $pid)\"\n            read -p \"❓ Do you want to kill this process and continue? [y/N] \" response\n            if [[ \"$response\" =~ ^[Yy]$ ]]; then\n                kill -9 $pid\n                echo \"✅ Killed process $pid\"\n                return 0\n            else\n                echo \"❎ Exiting script\"\n                exit 1\n            fi\n        else\n            echo \"⚠️  Port in use but no process found - check your system\"\n            exit 1\n        fi\n    }\n    \n    # Function to start web UI\n    start_webui() {\n        if ss -tuln | grep -q \":$OLLAMA_WEBUI_PORT\"; then\n            echo \"✓ Web UI already running\"\n            return 0\n        fi\n    \n        echo \"🚀 Starting Ollama Web UI...\"\n        if ! nohup ollama-webui --port $OLLAMA_WEBUI_PORT \u003e /dev/null 2\u003e\u00261 \u0026 then\n            handle_port_conflict\n            nohup ollama-webui --port $OLLAMA_WEBUI_PORT \u003e /dev/null 2\u003e\u00261 \u0026\n        fi\n        \n        echo -n \"⏳ Waiting for Web UI\"\n        local max_attempts=10\n        for ((i=1; i\u003c=$max_attempts; i++)); do\n            if ss -tuln | grep -q \":$OLLAMA_WEBUI_PORT\"; then\n                echo -e \"\\n✓ Web UI is ready!\"\n                return 0\n            fi\n            echo -n \".\"\n            sleep 1\n        done\n        \n        echo -e \"\\n❌ Failed to start Web UI after $max_attempts attempts\"\n        exit 1\n    }\n    \n    # Open browser function\n    open_browser() {\n        echo \"🌐 Opening browser at http://localhost:$OLLAMA_WEBUI_PORT\"\n        xdg-open \"http://localhost:$OLLAMA_WEBUI_PORT\"\n    }\n    \n    # Main script execution\n    check_commands\n    start_ollama\n    start_webui\n    open_browser\n  ```\n      \n\n- After copying the content to `ollama-launcher.sh`, give the required permissions\n\n      $ chmod +x ollama-launcher.sh\n\n- Copy `ollama-WebUI-Create-desktop-entry.sh` and save it in ~/.scripts folder which we previously created in the User's HOME directory and give the required permissions\n\n      $ cd\n\n      $ cd scripts/\n\n      $ touch ollama-WebUI-Create-desktop-entry.sh\n\n      $ vim ollama-WebUI-Create-desktop-entry.sh\n  \n\n- `ollama-WebUI-Create-desktop-entry.sh` :\n  ```bash\n  #!/bin/bash\n\n  # Create desktop entry\n  cat \u003e ~/.local/share/applications/ollama-webui.desktop \u003c\u003cEOL\n  [Desktop Entry]\n  Version=1.0\n  Name=Ollama WebUI\n  Comment=Launch Ollama Web Interface\n  Exec=/bin/bash -c \"$HOME/scripts/ollama-launcher.sh\"\n  Icon=$HOME/.icons/ollama-webui.png\n  Terminal=false\n  Type=Application\n  Categories=Utility;Application;\n  Keywords=Ollama;AI;LLM;\n  StartupNotify=true\n  EOL\n  \n  # Download specified icon\n  mkdir -p ~/.icons\n  if [ ! -f ~/.icons/ollama-webui.png ]; then\n      wget https://raw.githubusercontent.com/Priyansusahoo/ollama-webUI/refs/heads/main/ollama-webUI.png -O ~/.icons/ollama-webui.png\n  fi\n  \n  # Set permissions\n  chmod +x ~/.local/share/applications/ollama-webui.desktop\n  update-desktop-database ~/.local/share/applications/\n  \n  echo \"Desktop entry created with custom icon!\"\n  echo \"Look for 'Ollama WebUI' in your application menu.\"\n  ```\n\n- Permission:\n  \n      $ chmod +x ollama-WebUI-Create-desktop-entry.sh\n\n- Execute the Script:\n  \n      $ ./ollama-WebUI-Create-desktop-entry.sh\n\n- After successfully executing the script check your app drawer and you will find the \"Ollama WebUI\" icon.\n\n  ![image](https://github.com/user-attachments/assets/93155439-f43b-4817-be9c-8306085f9135)\n\n## 5. After Installation:\n\n- Create an account. Select a LLM for your choice\n\n  ![image](https://github.com/user-attachments/assets/c5a0a208-dfca-4a0e-985b-0c0d1980f0cc)\n\n- And ENJOY!\n\n  ![image](https://github.com/user-attachments/assets/97f567f8-72d3-4783-b816-9fdb4cb37566)\n\n\n[![Sponsor Priyansusahoo](https://img.shields.io/badge/Sponsor-Priyansusahoo-blue?logo=github\u0026style=for-the-badge)](https://github.com/sponsors/Priyansusahoo)\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyansusahoo%2Follama-webui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpriyansusahoo%2Follama-webui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyansusahoo%2Follama-webui/lists"}