[{"data":1,"prerenderedAt":415},["ShallowReactive",2],{"announcement":3,"i-tabler:sun":11,"i-tabler:moon":16,"i-tabler:menu-2":18,"i-tabler:x":20,"i-simple-icons:youtube":22,"i-simple-icons:github":24,"i-simple-icons:x":26,"i-simple-icons:linkedin":28,"i-tabler:arrow-up-right":31,"post-build-your-private-local-ai-server-right-now":33,"post-nav-build-your-private-local-ai-server-right-now":392,"video-build-your-private-local-ai-server-right-now":404,"i-tabler:copy":413},{"startsAt":4,"endsAt":5,"scramble":6,"cta":7,"message":10},"2026-10-13","2026-11-30","Cache Poisoning:",{"href":8,"label":9},"\u002Fcache-poisoning-the-cache-you-cant-purge","Read it","The cache you can't purge.",{"left":12,"top":12,"width":13,"height":13,"rotate":12,"vFlip":14,"hFlip":14,"body":15},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 12a4 4 0 1 0 8 0a4 4 0 1 0-8 0m-5 0h1m8-9v1m8 8h1m-9 8v1M5.6 5.6l.7.7m12.1-.7l-.7.7m0 11.4l.7.7m-12.1-.7l-.7.7\"\u002F>",{"left":12,"top":12,"width":13,"height":13,"rotate":12,"vFlip":14,"hFlip":14,"body":17},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 3h.393a7.5 7.5 0 0 0 7.92 12.446A9 9 0 1 1 12 2.992z\"\u002F>",{"left":12,"top":12,"width":13,"height":13,"rotate":12,"vFlip":14,"hFlip":14,"body":19},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 6h16M4 12h16M4 18h16\"\u002F>",{"left":12,"top":12,"width":13,"height":13,"rotate":12,"vFlip":14,"hFlip":14,"body":21},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M18 6L6 18M6 6l12 12\"\u002F>",{"left":12,"top":12,"width":13,"height":13,"rotate":12,"vFlip":14,"hFlip":14,"body":23},"\u003Cpath fill=\"currentColor\" d=\"M23.498 6.186a3.02 3.02 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.02 3.02 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.02 3.02 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.02 3.02 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814M9.545 15.568V8.432L15.818 12z\"\u002F>",{"left":12,"top":12,"width":13,"height":13,"rotate":12,"vFlip":14,"hFlip":14,"body":25},"\u003Cpath fill=\"currentColor\" d=\"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"\u002F>",{"left":12,"top":12,"width":13,"height":13,"rotate":12,"vFlip":14,"hFlip":14,"body":27},"\u003Cpath fill=\"currentColor\" d=\"M14.234 10.162L22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299l-.929-1.329L3.076 1.56h3.182l5.965 8.532l.929 1.329l7.754 11.09h-3.182z\"\u002F>",{"left":12,"top":12,"width":13,"height":13,"rotate":12,"vFlip":14,"hFlip":14,"body":29,"hidden":30},"\u003Cpath fill=\"currentColor\" d=\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.06 2.06 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z\"\u002F>",true,{"left":12,"top":12,"width":13,"height":13,"rotate":12,"vFlip":14,"hFlip":14,"body":32},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M17 7L7 17M8 7h9v9\"\u002F>",{"id":34,"title":35,"body":36,"categories":379,"coverImage":381,"date":382,"description":383,"draft":14,"extension":384,"meta":385,"navigation":30,"noindex":14,"path":386,"readingTime":387,"seo":388,"slug":389,"stem":389,"updatedAt":390,"youtubeId":42,"__hash__":391},"blog\u002Fbuild-your-private-local-ai-server-right-now.md","Build Your Private Local AI Server Right Now!",{"type":37,"value":38,"toc":366},"minimark",[39,43,48,52,56,59,62,95,98,102,105,108,132,135,139,142,145,163,166,170,173,176,199,202,206,209,212,238,241,245,248,251,288,291,295,298,301,352,355,359,362],[40,41],"post-media",{"video":42},"-IOsyGlwpnc",[44,45,47],"h2",{"id":46},"introduction","Introduction",[49,50,51],"p",{},"Setting up a private local AI server has become an essential skill for tech enthusiasts and professionals who want to harness the power of artificial intelligence on their own terms. A local AI server allows you to run powerful AI models directly from your computer without relying on cloud services, ensuring privacy, security, and control over your data. In this guide, we will walk you through the steps to build your own private local AI server from scratch using Windows Subsystem for Linux (WSL), Ubuntu, Docker, and other essential tools.",[44,53,55],{"id":54},"step-1-installing-windows-subsystem-for-linux-wsl","Step 1: Installing Windows Subsystem for Linux (WSL)",[49,57,58],{},"To start building your private local AI server, you need to install the Windows Subsystem for Linux (WSL). WSL enables you to run a Linux distribution on your Windows machine, providing the perfect environment for AI development.",[49,60,61],{},"To install WSL:",[63,64,65,69],"ol",{},[66,67,68],"li",{},"Open PowerShell as an administrator.",[66,70,71,72],{},"Enter the command",[73,74,79],"pre",{"code":75,"language":76,"meta":77,"className":78,"style":77}," wsl --install\n","bash","","shiki shiki-themes vitesse-dark vitesse-light",[80,81,82],"code",{},[83,84,87,91],"span",{"class":85,"line":86},"line",1,[83,88,90],{"class":89},"swzfi"," wsl",[83,92,94],{"class":93},"se4ZP"," --install\n",[49,96,97],{},"This command installs WSL on your machine, allowing you to run a Linux environment seamlessly on Windows.",[44,99,101],{"id":100},"step-2-installing-ubuntu-using-wsl","Step 2: Installing Ubuntu Using WSL",[49,103,104],{},"Once WSL is set up, the next step is to install Ubuntu, a popular Linux distribution that provides the necessary tools and environment for AI server setup.",[49,106,107],{},"To install Ubuntu:",[63,109,110,112],{},[66,111,68],{},[66,113,114,115],{},"Enter the command:",[73,116,118],{"code":117,"language":76,"meta":77,"className":78,"style":77},"wsl -d Ubuntu\n",[80,119,120],{},[83,121,122,125,128],{"class":85,"line":86},[83,123,124],{"class":89},"wsl",[83,126,127],{"class":93}," -d",[83,129,131],{"class":130},"sRRDT"," Ubuntu\n",[49,133,134],{},"This installs Ubuntu within your WSL environment, enabling you to use Linux commands and tools directly on your Windows machine.",[44,136,138],{"id":137},"step-3-installing-ollama-ai-foundation","Step 3: Installing Ollama AI Foundation",[49,140,141],{},"Ollama AI Foundation is a robust platform for running AI models locally. Installing it is straightforward and provides a solid base for deploying AI models on your server.",[49,143,144],{},"To install Ollama AI Foundation:",[63,146,147,160],{},[66,148,149,150,159],{},"Visit the Ollama download page at ",[151,152,158],"a",{"href":153,"rel":154,"target":157},"https:\u002F\u002Follama.com\u002Fdownload?utm_source=amrelsagaei.com&utm_medium=referral",[155,156],"noopener","noreferrer","_blank","https:\u002F\u002Follama.com\u002Fdownload",".",[66,161,162],{},"Follow the instructions provided on the website to complete the installation.",[49,164,165],{},"With Ollama installed, your local AI server is ready to handle advanced AI models.",[44,167,169],{"id":168},"step-4-adding-a-model-to-ollama","Step 4: Adding a Model to Ollama",[49,171,172],{},"After setting up Ollama, the next step is to add an AI model to your server. For this guide, we'll use the Llama3 model, known for its versatility and performance.",[49,174,175],{},"To add the Llama3 model:",[63,177,178,181],{},[66,179,180],{},"Open your terminal.",[66,182,114,183],{},[73,184,186],{"code":185,"language":76,"meta":77,"className":78,"style":77}," ollama pull llama3\n",[80,187,188],{},[83,189,190,193,196],{"class":85,"line":86},[83,191,192],{"class":89}," ollama",[83,194,195],{"class":130}," pull",[83,197,198],{"class":130}," llama3\n",[49,200,201],{},"This command downloads the Llama3 model to your local server, making it ready for use.",[44,203,205],{"id":204},"step-5-monitoring-gpu-performance","Step 5: Monitoring GPU Performance",[49,207,208],{},"Running AI models can be resource-intensive, so monitoring your GPU's performance is crucial. Linux provides tools to track GPU usage and ensure optimal performance.",[49,210,211],{},"To monitor GPU performance:",[63,213,214,216],{},[66,215,180],{},[66,217,114,218],{},[73,219,221],{"code":220,"language":76,"meta":77,"className":78,"style":77},"watch -n 0.5 nvidia-smi\n",[80,222,223],{},[83,224,225,228,231,235],{"class":85,"line":86},[83,226,227],{"class":89},"watch",[83,229,230],{"class":93}," -n",[83,232,234],{"class":233},"sUQhE"," 0.5",[83,236,237],{"class":130}," nvidia-smi\n",[49,239,240],{},"This command provides real-time updates on GPU performance, helping you manage resources effectively.",[44,242,244],{"id":243},"step-6-installing-docker","Step 6: Installing Docker",[49,246,247],{},"Docker is essential for running containers that host your AI applications. Installing Docker in your WSL environment allows you to manage and deploy your AI models efficiently.",[49,249,250],{},"To install Docker:",[63,252,253,255],{},[66,254,180],{},[66,256,114,257],{},[73,258,260],{"code":259,"language":76,"meta":77,"className":78,"style":77},"sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin\n",[80,261,262],{},[83,263,264,267,270,273,276,279,282,285],{"class":85,"line":86},[83,265,266],{"class":89},"sudo",[83,268,269],{"class":130}," apt-get",[83,271,272],{"class":130}," install",[83,274,275],{"class":130}," docker-ce",[83,277,278],{"class":130}," docker-ce-cli",[83,280,281],{"class":130}," containerd.io",[83,283,284],{"class":130}," docker-buildx-plugin",[83,286,287],{"class":130}," docker-compose-plugin\n",[49,289,290],{},"This command installs Docker and its components, enabling containerized application deployment on your server.",[44,292,294],{"id":293},"step-7-running-the-open-webui-docker-container","Step 7: Running the Open WebUI Docker Container",[49,296,297],{},"With Docker installed, you can run the Open WebUI Docker container, providing a graphical interface to manage your AI server.",[49,299,300],{},"To run the Open WebUI Docker container:",[63,302,303,305],{},[66,304,180],{},[66,306,114,307],{},[73,308,310],{"code":309,"language":76,"meta":77,"className":78,"style":77},"docker run -d --network=host -v open-webui:\u002Fapp\u002Fbackend\u002Fdata -e OLLAMA_BASE_URL=http:\u002F\u002F127.0.0.1:11434 --name open-webui --restart always ghcr.io\u002Fopen-webui\u002Fopen-webui:main\n",[80,311,312],{},[83,313,314,317,320,322,325,328,331,334,337,340,343,346,349],{"class":85,"line":86},[83,315,316],{"class":89},"docker",[83,318,319],{"class":130}," run",[83,321,127],{"class":93},[83,323,324],{"class":93}," --network=host",[83,326,327],{"class":93}," -v",[83,329,330],{"class":130}," open-webui:\u002Fapp\u002Fbackend\u002Fdata",[83,332,333],{"class":93}," -e",[83,335,336],{"class":130}," OLLAMA_BASE_URL=http:\u002F\u002F127.0.0.1:11434",[83,338,339],{"class":93}," --name",[83,341,342],{"class":130}," open-webui",[83,344,345],{"class":93}," --restart",[83,347,348],{"class":130}," always",[83,350,351],{"class":130}," ghcr.io\u002Fopen-webui\u002Fopen-webui:main\n",[49,353,354],{},"This command launches the Open WebUI Docker container, allowing you to interact with your AI models through a web-based interface.",[44,356,358],{"id":357},"conclusion","Conclusion",[49,360,361],{},"Building a private local AI server provides numerous benefits, including privacy, control, and flexibility. By following the steps outlined in this guide, you have created a powerful AI environment that you can customize and expand based on your needs. Whether you're experimenting with AI models or developing applications, your new server setup is ready to support your projects.",[363,364,365],"style",{},"html pre.shiki code .swzfi, html code.shiki .swzfi{--shiki-default:#80A665;--shiki-light:#59873A}html pre.shiki code .se4ZP, html code.shiki .se4ZP{--shiki-default:#C99076;--shiki-light:#A65E2B}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html pre.shiki code .sRRDT, html code.shiki .sRRDT{--shiki-default:#C98A7D;--shiki-light:#B56959}html pre.shiki code .sUQhE, html code.shiki .sUQhE{--shiki-default:#4C9A91;--shiki-light:#2F798A}",{"title":77,"searchDepth":367,"depth":367,"links":368},3,[369,371,372,373,374,375,376,377,378],{"id":46,"depth":370,"text":47},2,{"id":54,"depth":370,"text":55},{"id":100,"depth":370,"text":101},{"id":137,"depth":370,"text":138},{"id":168,"depth":370,"text":169},{"id":204,"depth":370,"text":205},{"id":243,"depth":370,"text":244},{"id":293,"depth":370,"text":294},{"id":357,"depth":370,"text":358},[380],"Linux","\u002Fimages\u002Fblog\u002Fbuild-your-private-local-ai-server-right-now\u002Fbuild-your-privet-local-ai-server-right-now.webp","2024-08-28","Run large language models on your own hardware: WSL and Ubuntu, Ollama setup, adding models, and monitoring GPU performance on a fully private server.","md",{},"\u002Fbuild-your-private-local-ai-server-right-now",null,{"title":35,"description":383},"build-your-private-local-ai-server-right-now","2025-02-05","chxLWg4D-3bVNaWaPVsusZSYivijecrNvmBA6lLnVeA",{"older":393,"newer":398,"total":403},{"slug":394,"title":395,"date":396,"position":397},"get-your-first-zero-day-right-now","🚀 Get Your First Zero-Day RIGHT NOW!","2024-06-11",44,{"slug":399,"title":400,"date":401,"position":402},"master-code-injection-attacks-ethically-1","Master Code Injection Attacks, Ethically! 🔐","2024-09-25",42,68,{"id":42,"title":405,"published":406,"url":407,"description":408,"durationSeconds":409,"viewCount":410,"thumbnail":411,"thumbnailSrcset":412},"Build Your PRIVATE-LOCAL AI Server RIGHT NOW!","2024-08-30T14:00:00Z","https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=-IOsyGlwpnc","🚀 Build Your PRIVaT-LOCAL AI Server RIGHT NOW! Learn how to set up your own private AI server using Windows Subsystem for Linux (WSL) and Docker. This step-by-step guide will take you through installing WSL, setting up Ubuntu, and using Ollama AI Foundation to add models effortlessly.",550,623,"\u002Fimages\u002Fvideos\u002F-IOsyGlwpnc-800.webp","\u002Fimages\u002Fvideos\u002F-IOsyGlwpnc-800.webp 800w, \u002Fimages\u002Fvideos\u002F-IOsyGlwpnc-1280.webp 1280w",{"left":12,"top":12,"width":13,"height":13,"rotate":12,"vFlip":14,"hFlip":14,"body":414},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M7 9.667A2.667 2.667 0 0 1 9.667 7h8.666A2.667 2.667 0 0 1 21 9.667v8.666A2.667 2.667 0 0 1 18.333 21H9.667A2.667 2.667 0 0 1 7 18.333z\"\u002F>\u003Cpath d=\"M4.012 16.737A2 2 0 0 1 3 15V5c0-1.1.9-2 2-2h10c.75 0 1.158.385 1.5 1\"\u002F>\u003C\u002Fg>",1791941258158]