Skip to main content
Chadura
AI 29 min read •

Install DeepSeek on Linux in Just 3 Minutes

AI Run Locally

Sridhar S
Sridhar S
Cloud Admin
Install DeepSeek on Linux in Just 3 Minutes
01

Introduction

Artificial Intelligence (AI) has rapidly evolved from a concept in science fiction to a revolutionary technology reshaping industries worldwide. It enables machines to learn, reason, and perform tasks that traditionally required human intelligence. From automation to deep learning, AI is transforming the way we work, communicate, and solve problems. This article explores AI in detail, covering its history, types, applications, advantages, challenges, and future trends.

02

History of AI

The origins of AI trace back to ancient mythology and early philosophical inquiries into the nature of intelligence. However, AI as a field of study emerged in the 1950s. Key milestones include:

1950 - Alan Turing proposed the Turing Test, a method to determine machine intelligence.

1956 - The Dartmouth Conference officially marked the birth of AI as a discipline.

1980s - Machine learning and expert systems gained prominence.

2000s - Present - The rise of deep learning, big data, and computational power fueled AI advancements in various industries.

03

Types of AI

AI is broadly categorized into three types based on its capabilities:

  • Narrow AI (Weak AI) : Designed for specific tasks, such as virtual assistants (Siri, Alexa), recommendation systems, and autonomous vehicles.
  • General AI (Strong AI) : Hypothetical AI with human-like cognitive abilities, capable of reasoning and learning across multiple domains.
  • Super AI : A theoretical stage where AI surpasses human intelligence, leading to potential existential concerns.
04

Key Technologies in AI

Several technologies power AI, including:

  • Machine Learning (ML) : Algorithms that allow computers to learn from data.
  • Deep Learning : Neural networks modeled after the human brain for advanced pattern recognition.
  • Natural Language Processing (NLP) : Enables machines to understand and process human language (e.g., ChatGPT, Google Translate).
  • Computer Vision : AI-driven image and video analysis.
  • Robotics : AI-powered machines that perform complex physical tasks.
05

Applications of AI

AI is transforming various industries, including:

  • Healthcare
  • Finance
  • Education
  • E-commerce
  • Cybersecurity
  • Transportation and Logistics
  • Entertainment and Media
06

Advantages of AI

  • Automation : Reduces human effort by handling repetitive tasks efficiently.
  • Accuracy : Minimizes errors, particularly in data-driven industries.
  • Faster Decision-Making : AI processes vast amounts of data quickly.
  • Cost Savings : Reduces operational costs and enhances productivity.
  • Enhanced Customer Experience : AI chatbots provide instant support.
  • 24/7 Availability : AI-powered systems function without breaks.
07

Challenges of AI

Despite its advantages, AI presents several challenges:

  • Ethical Concerns : AI can be misused for surveillance, deepfake generation, and biased decision-making.
  • Job Displacement : Automation may replace human jobs in various industries.
  • Bias in AI Algorithms : AI models may inherit biases from training data.
  • Security Risks : AI-powered cyberattacks pose threats to digital systems.
  • Lack of Transparency : AI decision-making is often complex and difficult to interpret.
  • Regulatory and Legal Issues : Governments struggle to regulate AI effectively.

Prerequisites:

  • Platform : Ubuntu 24.04
  • Network : Stable Internet Connection
  • RAM : Minimum 8GB RAM (recommended 16 GB RAM and Multi GPU)
  • HDD :  50 GB Free disk space
  • Interface : CLI / GUI

Step 1 : Update Your System

Bash / Terminal
sudo apt update && sudo apt upgrade -y #update your pc packages up to date 
Bash / Terminal
sudo rebootc #reboot your system

Step 2 : Install Python and Git

Bash / Terminal
sudo apt install python3 -y
Code / Terminal
python3 --version

Step 3: Install pip, the Python Package Manager

Bash / Terminal
sudo apt install python3-pip -y
Bash / Terminal
pip --version
Bash / Terminal
Install Git
Bash / Terminal
sudo apt install git -y
Bash / Terminal
git --version

Step 4 : Install Ollama

Bash / Terminal
curl -fsSL https://ollama.com/install.sh | sh
Bash / Terminal
ollama --version

Step 5 : Restart ollama service

Bash / Terminal
sudo systemctl status ollama.service

Step 6 : Download and Run the any AI Model (eg.DeepSeek Model)

Bash / Terminal
ollama pull deepseek-r1:7b
Install DeepSeek on Linux in Just 3 Minutes
Bash / Terminal
ollama pull deepseek-r1:14b
Install DeepSeek on Linux in Just 3 Minutes
Bash / Terminal
ollama list
Install DeepSeek on Linux in Just 3 Minutes

Step 7 : Now start specific model like 7b

Bash / Terminal
ollama run deepseek-r1:7b
Install DeepSeek on Linux in Just 3 Minutes
08

Graphical Mode Configuration

Step 1: Set Up the Web UI for AI (eg.DeepSeek)

Bash / Terminal
sudo apt install python3-venv -y
Code / Terminal
python3 -m venv ~/prod
Code / Terminal
source ~/prod/bin/activate
Code / Terminal
Install Open WebUI 
Bash / Terminal
pip install open-webui

Step 2 : Start the Open WebUI Server

Code / Terminal
open-webui serve

Open your browser and navigate to http://localhost:8080 to access the interface.

Step 3 : To have Open WebUI start automatically on system boot, create a systemd service file.

Bash / Terminal
sudo vi /etc/systemd/system/open-webui.service

Step 4 : Add the Following Content:

Configuration
[Unit]

Description=Open WebUI Service

After=network.target

[Service]

User= ubuntuuser

WorkingDirectory=/home/ubuntuuser/open-webui-venv

ExecStart=/home/ubuntuuser/prod/bin/open-webui serve

Restart=always

Environment="PATH=/home/ubuntuuser/prod/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

[Install]

WantedBy=multi-user.target

Replace ubuntuuser  with your actual username 

Step 5 : Reload systemd & enable the service:

Bash / Terminal
sudo systemctl daemon-reload
Bash / Terminal
sudo systemctl enable open-webui.service
Bash / Terminal
sudo systemctl start open-webui.service

Step 6 : Check the status of the service with

Bash / Terminal
sudo systemctl status open-webui.service

Step 7: Open any Browser like Mozila-firefox ,Google Chrome ..   hit this URL

Code / Terminal
http://<Your-Ubuntu-System-IPAddress>:8080
Install DeepSeek on Linux in Just 3 Minutes
Sridhar S

Sridhar S

Cloud Admin

Cloud Admin - Chadura Tech Pvt Ltd, Bengaluru

Related Technical Articles

Explore additional architectural breakdowns in AI.

M

Maya Solutions Architect

Ask about products & scoping →

WhatsApp Direct Help