
Build and deploy real AI applications on Linux; learn to run AI models, build chatbots and real-time voice AI, and deploy with Docker, AWS, and VirtualBox.
Discover why Linux powers AI engineering by running real projects on cloud servers; learn how Linux, Python, Docker, and AI libraries enable scalable AI applications.
Discover the end-to-end AI architecture on Linux, from Python and AI models (Hugging Face or OpenAI) to Docker deployment, LiveKit voice interfaces, and AWS cloud hosting.
Set up a Linux server on AWS using EC2 with Ubuntu, connect via SSH using PuTTY or MobaXterm, and prepare the Python environment for AI deployment.
Explore cloud computing with scalable, high-performance resources accessible from anywhere, and learn how AWS EC2 provides a Linux server on the cloud for AI applications.
Launch an EC2 instance on AWS to run your Linux system in the cloud, accessible from anywhere, and configure Ubuntu, storage, and a key pair for AI applications.
Install mobaxterm from the official site, then access the ubuntu vm on aws via ssh by entering its public ip in a new session.
Connect to your AWS VM from your local system using MobaXterm by entering the public IP, ubuntu user, and the private key in SSH settings to verify the server status.
Explore the Linux filesystem hierarchy, starting at the root /, where a single tree contains /home, /etc, /opt, /bin, /sbin, /usr and /where with /stem, /log, /cache, and /spool.
Learn essential Linux commands such as pwd, cd, ls, mkdir, touch, rm, and rmdir to navigate, create, delete, and manage files and directories for AI projects.
Learn to work with files in linux using cat, cp, and mv, including creating, displaying content, copying with backups, and renaming or moving files.
Master editing files with the vi editor: enter insert mode, save with :wq, and view content with cat, applying these steps to Python files in AI projects.
Understand Linux file permissions, including read, write, and execute; identify owner, group, and others; interpret permission strings and the numeric values 4, 2, and 1, with practical server examples.
Learn to change file permissions using chmod by assigning numeric codes: read 4, write 2, execute 1. Set owner, group, and others permissions, for example 7-6-0, and verify the results.
Use the chown command to change file ownership from Ubuntu to a test user, requiring root privileges via sudo, and verify the owner update.
Master ubuntu package management with apt, the advanced package tool, to install, update, and manage software from the terminal. Use commands like sudo apt update and sudo apt upgrade.
Install and manage software with apt from the terminal, practice installing git and docker.io, verify versions, and understand dependency handling for real-world server setup.
Learn how environment variables, as key-value pairs, store global system and application settings such as API keys and paths, enabling secure, flexible configuration without hard coding.
Explore environment variables in bash by listing them with print env, creating and printing variables, and exporting them so child scripts can inherit values.
Define environment variables and make them inherit in a script, then verify with print env. Persist them across logins by adding them to .bashrc or .profile.
Set up Python for AI development on Ubuntu, verify the version, install python3-pip, and install libraries like numpy, pandas, and OpenAI with pip. Create a virtual environment to manage dependencies.
Learn how to use Python virtual environments to isolate project dependencies and avoid library version conflicts, create and activate venvs, and install packages locally.
Master Python dependency management by using virtual environments, recording installed libraries in a requirements.txt file with pip freeze, and recreating environments with pip install -r requirements.txt.
Build a Python app that prompts for a GitHub username, queries the GitHub api, and displays user details like name, repos, and followers while teaching virtual environments, pip, and requirements.txt.
Launch a real-time GitHub info fetcher project by setting up Python virtual environments, installing requests, and using the GitHub API to retrieve user data.
Install AI libraries like NumPy, PyTorch, and Transformers on Linux. Write your first AI script and explore HuggingFace before loading and running a real text generation model in a lab.
Create a virtual environment on Linux, install numpy, torch, and transformers, verify with pip list, and run a test script to confirm the AI development setup.
Build and run a Python script on Linux to generate human-like text with GPT-2, using Transformers, Torch, and NumPy, from user input.
Run a Python script to load the GPT-2 pre-trained model on Linux, downloading the model file for first-time setup, and test prompts to see responses.
Explore how Transformers and Hugging Face enable access to pre-trained models like GPT-2. Learn how the Transformers library downloads and runs models on your system.
Explore the ai text generation flow from user input to readable output: tokenize input, predict with GPT-2, generate and decode tokens, and print the final result.
Interact with a linux-based gpt-2 text assistant built with the transformers library, using a loop and tokenizer to generate text with max_tokens, temperature, and top_p controls.
Explore how Generative AI learns from data to create new content across text, images, audio, and code.
Explore how large language models power generative AI by predicting the next word from vast data, producing human-like content through patterns and probability.
Explore how llms process a prompt, read input to infer pattern and context, predict the next word, and continue generating words to produce a final, human-like response in seconds.
Explore common large language models and real-world applications, from ChatGPT to GPT-3 and HuggingFace models, including BERT and DistilBERT, to understand how llms power text generation and understanding.
Explore how an API acts as a bridge between client and server, handling requests and responses from apps, with a restaurant analogy to illustrate the flow.
Explore OpenAI's ready-to-use AI models accessed via API, avoiding training and server management, with examples like ChatGPT and GPT-4; apply these for chatbots, AI-powered apps, and quick feature integrations.
Explore HuggingFace's open source AI models you can run locally, gaining full control and flexible customization for building AI projects with GPT-2, BERT, and DistilBERT offline.
Compare OpenAI and HuggingFace: OpenAI is API-based and easy to use, while HuggingFace offers local or API use with full control; OpenAI is paid, HuggingFace is mostly free locally.
Build a real ai chatbot by integrating the OpenAI API, handling user input, and generating intelligent responses, while setting up a Linux Python project, virtual environment, and secure OpenAI access.
Set up a project folder on Linux, create and activate a Python virtual environment to isolate dependencies for your ai chatbot, and prepare to install libraries and code.
Install the OpenAI Python library, verify with pip list, and create a chatbot script using vi that initializes an OpenAI client with an API key.
Create an OpenAI account, add credits, and generate an API key to securely connect your Python app to OpenAI models for building a chatbot.
Write a Python chatbot using the OpenAI library, authenticate with the API key, and loop to send user input to the GPT-4o-dash-mini model, printing the model's reply.
Run and test the ai chatbot on Linux by executing the program in a virtual environment with Python 3, sending prompts, and verifying interactive responses and proper exit handling.
Explore the limitations of Python virtual environments for AI apps and learn how Docker packages dependencies into images and containers for consistent deployment on any system.
Explore dockerfile, image, and container to learn how to set up applications, share blueprints, and run isolated, portable environments with faster deployment.
Replace your Python virtual environment with Docker by writing a Dockerfile, building a Docker image, and running the AI chatbot inside a container.
Set up a docker-based AI chatbot project by securely storing the OpenAI API key in a .env file and defining dependencies in requirements.txt (OpenAI and python-.env) for containerized deployment.
Create a dockerfile that uses a Python 3.10 base image, sets /app, copies files, installs requirements with no cache, and runs chatbot.py to deploy an ai chatbot.
Develop a simple Python chatbot that loads the API key from .env, connects to an OpenAI model, and loops to process user input until exit, with error handling.
Install docker on Ubuntu, update the system, install docker.io, start the docker service, test with hello world, and resolve permissions by adding the user to the docker group.
Build a docker image from the dockerfile in the current directory, tagging it ai-chatbot. The process installs required files and confirms the new image appears in docker images.
Run a docker container from the ai-chatbot image using docker run with -i -t and --env-file to load .env, and interactively converse with the chatbot to test responses.
Finish the last lecture of this Linux for AI engineers module, engage in the Q&A forum or ping the instructor, and wish you success on your exam and AI career.
Are you ready to learn Linux for AI engineering and build real-world AI applications from scratch?
In this hands-on course, you will learn how to use Linux, AWS EC2, Python, and Docker to build and deploy AI-powered applications. This course is designed in a step-by-step practical approach, so even beginners can follow along easily.
We will start with Linux basics and gradually move towards AI model execution and chatbot development using modern tools like OpenAI and Hugging Face.
By the end of this course, you will not just understand concepts — you will be able to build, run, and deploy AI applications in a real environment.
What You Will Learn
Getting Started with the Course
Course Introduction
Why Linux is Important for AI
Course Architecture
Getting Started with AWS EC2 & VM Access
What We Will Cover in This Lecture
Introduction to Cloud and AWS
Launch EC2 Instance (Ubuntu)
Setup MobaXterm for VM Access
Connecting to VM Using MobaXterm
Linux Fundamentals: Files, Commands & Permissions
Linux Filesystem Explained
Learn Essential Linux Commands: pwd, cp, ls & More
Manage Files in Linux: cat, cp, mv & More
Editing Files Using the Vi Editor
File Permissions in Linux
Modify File Permissions with chmod
Modifying File Ownership with chown
Package Management & Environment Variables
Package Management with APT
Hands-on Lab: Managing Packages with APT
What are Environment Variables?
Hands-on Lab: Environment Variables
Python Setup & Dependency Management for AI
Python Environment Essentials for AI
Python Virtual Environment Setup (venv)
Python Dependency Management (pip)
Real-Time Project: GitHub Info Fetcher - 1
Real-Time Project: GitHub Info Fetcher - 2
Running AI Models on Linux (GPT-2 Project)
What We Will Cover
Install AI Libraries: NumPy, PyTorch & Transformers
First AI Script: Text Generation
Loading and Running the GPT-2 Pre-trained Model
Key Components: Transformers & Hugging Face
AI Text Generation Flow
Real-Time Project: AI Text Completion using GPT-2 on AWS
Introduction to Generative AI
What is an LLM and What Does It Do?
How LLMs Work?
Examples of LLM
AI Tools and APIs: OpenAI vs Hugging Face
API - Application Programming Interface
OpenAI Introduction: Examples & Use Case
Hugging Face Overview with Use Cases
OpenAI vs Hugging Face
Build an AI Chatbot using Python and OpenAI
AI Chatbot Project Overview
Setting Up the Python Environment
Install OpenAI and Other Python Libraries
Setting Up OpenAI Account and API Key
Writing Python Code for AI Chatbot
Running and Testing the AI Chatbot
Deploy the AI Chatbot using Docker
What is Docker?
Key Components: Dockerfile, Image, and Container
What You Will Learn
Building an AI Chatbot with Docker
Dockerfile Creation for AI Chatbot
Writing Python Code for AI Chatbot
Docker Setup and Installation
Building a Docker Image using Dockerfile
Run the AI Chatbot using Docker Container
Why This Course?
Beginner-friendly, step-by-step approach
Real-world projects and hands-on labs
Focus on practical implementation (not just theory)
Covers complete flow: Linux → AI → Deployment
Final Outcome
By the end of this course, you will be able to:
Build, run, and deploy AI applications using Linux, AWS, Docker, and OpenAI.