{"id":12774,"date":"2025-02-04T08:08:32","date_gmt":"2025-02-04T08:08:32","guid":{"rendered":"https:\/\/myprojects.advchaweb.com\/?p=12774"},"modified":"2025-02-04T08:47:49","modified_gmt":"2025-02-04T08:47:49","slug":"install-ollama-and-deepseek-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2025\/02\/04\/install-ollama-and-deepseek-on-ubuntu-22-04\/","title":{"rendered":"Install Ollama and DeepSeek On Ubuntu 22.04"},"content":{"rendered":"<p>Ref: https:\/\/ollama.com\/download<\/p>\n<p>Select the linux then Install on your terminal with this command:<br \/>\ncurl -fsSL https:\/\/ollama.com\/install.sh | sh<\/p>\n<p>[codesyntax lang=&#8221;bash&#8221;]<\/p>\n<pre>~$ curl -fsSL https:\/\/ollama.com\/install.sh | sh\r\n&gt;&gt;&gt; Installing ollama to \/usr\/local\r\n[sudo] password for satria: \r\n&gt;&gt;&gt; Downloading Linux amd64 bundle\r\n######################################################################## 100,0%\r\n&gt;&gt;&gt; Creating ollama user...\r\n&gt;&gt;&gt; Adding ollama user to render group...\r\n&gt;&gt;&gt; Adding ollama user to video group...\r\n&gt;&gt;&gt; Adding current user to ollama group...\r\n&gt;&gt;&gt; Creating ollama systemd service...\r\n&gt;&gt;&gt; Enabling and starting ollama service...\r\nCreated symlink \/etc\/systemd\/system\/default.target.wants\/ollama.service \u2192 \/etc\/systemd\/system\/ollama.service.\r\n&gt;&gt;&gt; The Ollama API is now available at 127.0.0.1:11434.\r\n&gt;&gt;&gt; Install complete. Run \"ollama\" from the command line.\r\nWARNING: No NVIDIA\/AMD GPU detected. Ollama will run in CPU-only mode.<\/pre>\n<p>[\/codesyntax]<\/p>\n<p>on the search model text box, select &#8216;deepseek-r1&#8217; or go to https:\/\/ollama.com\/library\/deepseek-r1<br \/>\nOkay. I just choose &#8216;1.5b&#8217; model as a test. then install it on your terminal with this command:<br \/>\nollama run deepseek-r1:1.5b<\/p>\n<p>[codesyntax lang=&#8221;bash&#8221;]<\/p>\n<pre>satria@teddy:~$ ollama run deepseek-r1:1.5b\r\npulling manifest \r\npulling aabd4debf0c8... 100% \u2595\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f 1.1 GB                         \r\npulling 369ca498f347... 100% \u2595\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f  387 B                         \r\npulling 6e4c38e1172f... 100% \u2595\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f 1.1 KB                         \r\npulling f4d24e9138dd... 100% \u2595\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f  148 B                         \r\npulling a85fe2a2e58e... 100% \u2595\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f  487 B                         \r\nverifying sha256 digest \r\nwriting manifest \r\nsuccess \r\n&gt;&gt;&gt; hello\r\n&lt;think&gt;\r\n\r\n&lt;\/think&gt;\r\n\r\nHello! How can I assist you today? \ud83d\ude0a\r\n<\/pre>\n<p>[\/codesyntax]<\/p>\n<p>Integrate it with VSCode:<br \/>\nWatch : https:\/\/www.youtube.com\/watch?v=cqFRE9c8048&amp;ab_channel=ChaooCharles<\/p>\n<p>the problem:<br \/>\n1. it&#8217;ll take your disk space. For just 1.5b model, it&#8217;ll take 1.1 GB disk space<br \/>\n2. If you don&#8217;t have GPU, it&#8217;ll use your CPU resource and it took 100% CPU resources on my Ubuntu machine<br \/>\nYou can stop and disable the ollama services on your machine<br \/>\n[codesyntax lang=&#8221;bash&#8221;]<\/p>\n<pre># stop it\r\nsudo systemctl stop ollama.service\r\n\r\n# disable it if you want\r\nsudo systemctl disable ollama.service\r\n\r\n# confirm its status\r\nsudo systemctl status ollama.service<\/pre>\n<p>[\/codesyntax]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ref: https:\/\/ollama.com\/download Select the linux then Install on your terminal with this command: curl -fsSL https:\/\/ollama.com\/install.sh | sh [codesyntax lang=&#8221;bash&#8221;] ~$ curl -fsSL https:\/\/ollama.com\/install.sh | sh &gt;&gt;&gt; Installing ollama to \/usr\/local [sudo] password for satria: &gt;&gt;&gt; Downloading Linux amd64 bundle ######################################################################## 100,0% &gt;&gt;&gt; Creating ollama user&#8230; &gt;&gt;&gt; Adding ollama user to render group&#8230; &gt;&gt;&gt; Adding &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2025\/02\/04\/install-ollama-and-deepseek-on-ubuntu-22-04\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install Ollama and DeepSeek On Ubuntu 22.04&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141,13,17,132],"tags":[],"class_list":["post-12774","post","type-post","status-publish","format-standard","hentry","category-ai","category-tutorial","category-ubuntu","category-ubuntu-22-04"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/12774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=12774"}],"version-history":[{"count":6,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/12774\/revisions"}],"predecessor-version":[{"id":12780,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/12774\/revisions\/12780"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=12774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=12774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=12774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}