
Develop hands-on Linux foundations for AI engineers and learn to run, build, and deploy real AI chatbots and apps on Linux and cloud with Docker and AWS.
Discover the end-to-end AI system architecture built on Linux, Python, and AI models from Hugging Face or OpenAI, deploying chatbots and voice assistants on AWS with Docker and LiveKit.
Set up a Linux server on AWS using EC2, Ubuntu, and SSH access, then prepare the system by updating packages, installing tools, and configuring a Python environment for AI applications.
Explore why cloud computing offers scalable, high performance, accessible servers for AI. Learn AWS EC2 and provisioning a Linux server on the cloud, with local alternatives if needed.
Connect to your AWS VM from your local system using MobaXterm by entering the public IP, the Ubuntu user, and the private key in SSH settings to access the server.
Master the Linux filesystem hierarchy by understanding the root tree and key directories like /home, /etc, /bin, /usr, and /var, where everything is treated as a file.
Explore Linux commands to navigate and manage files: pwd shows your location, cd changes directories, ls lists contents, and mkdir, touch, rm, and rmdir create or remove files and folders.
Create and edit files with the vi editor by entering insert mode with i, saving and exiting with escape then colon wq, and viewing content with cat.
Learn to change file permissions with chmod using numeric codes: read 4, write 2, execute 1, and set owner, group, and others (7, 6, 0) as shown.
Learn how to use the chown command to change file ownership, elevating privileges with sudo to switch from Ubuntu to another user, and verify ownership on files such as backup.txt.
Master apt on Ubuntu by updating, upgrading, and installing packages from the terminal, with commands like sudo apt update, sudo apt upgrade, and sudo apt install.
Learn hands-on package management with apt by installing git and docker.io from the terminal, verifying versions, and understanding dependencies in real-world Linux setups.
Learn to list environment and system variables with print env, create and print shell variables with echo, and export them so child scripts can inherit them in bash.
Learn to set up python on ubuntu for ai development, verify python3, install pip, and add libraries like numpy, pandas, and OpenAI via pip; create a virtual environment.
Learn how to manage Python dependencies by using a virtual environment, capturing installed libraries in a requirements.txt with pip freeze, and reinstalling them with pip install -r requirements.txt.
Implement a real-time GitHub info fetcher using Python and the requests library, querying the GitHub API for user data in AI-backed cloud back-end contexts.
Learn to run ai models on Linux by installing NumPy, PyTorch, and Transformers, explore Hugging Face, and load a real text generation model in a hands-on lab.
Build your first AI script on Linux using a Python program with Transformers, PyTorch, and NumPy to generate text from user input with a GPT-2 model.
Run a Python script to load the GPT-2 pre-trained model on a Linux system, downloading the full model on first run and generating outputs from prompts.
Discover how transformers and Hugging Face enable access to pre-trained models like GPT-2 in code, by loading from Hugging Face and running locally with the transformers library.
Explore artificial intelligence text generation flow from user input to readable output using a GPT-2 model, including tokenization, tokens, attention masks, and decoding in a PyTorch and transformers script.
Discover Generative AI, which creates new content by learning from data instead of fixed rules. Generate text, images, audio, and code with tools like ChatGPT and GitHub Copilot.
It explains that a large language model powers generative AI by predicting the next word from vast training data. It uses patterns and probability to produce natural text.
Trace how an llm works: input a prompt, the model processes text to understand context, predicts the next word, and continues generating to form a final, human-like response in seconds.
Explore common large language model examples, including ChatGPT and GPT-2/3 with newer versions, and HuggingFace models like BERT and DistalBERT, all powering text generation and understanding in real-world applications.
Compare OpenAI and HuggingFace on api based usage and local setup, noting OpenAI's limited control and cost, HuggingFace's full control and open source models.
Install the OpenAI Python library with pip, verify with pip list, and create chatbot.py using vi to initialize the OpenAI client with an API key to enable AI communication.
Write Python code to build an AI chatbot using the OpenAI library, authenticate with an API key, and send user input to the GPT-4o mini model.
Explore docker fundamentals with dockerfile, image, and container concepts, including base images, dependencies, and running apps. Learn benefits like consistency, portability, isolation, fast deployment, and production readiness.
Replace the python virtual environment with docker by writing a docker file, building a docker image, and running the AI chatbot as a container for portable, production-ready deployment.
Create a dockerfile to define how your chatbot runs in a container using a python:3.10 base image, copy files to /app, and set the default command python chatbot.py.
Create a chatbot by wiring chatbot.py in a docker setup, loading the API key from .env, sending user input to an OpenAI model and displaying the response, and handling errors.
Install docker on Ubuntu, update the system and install docker.io, verify the service runs, fix permissions by adding the user to the docker group, and test with hello world.
Build a docker image from a Dockerfile by running docker build -t ai-chatbot . in the project directory, using the Dockerfile to install requirements and create the image.
Launch the ai-chatbot in a docker container with interactive mode and an env-file to securely load API keys from .env and interact with the AI model.
This course provides a practical approach to Linux security and hardening while also introducing modern AI and cloud technologies used in real-world environments. You will learn Linux fundamentals, file permissions, package management, environment variables, firewall security, PAM, SELinux, and server protection techniques through hands-on labs and practical demonstrations.
The course also covers AI fundamentals, Python setup for AI workloads, GPT-2 text generation, OpenAI and Hugging Face integration, Docker-based AI application deployment, and cloud-based Linux environments using AWS EC2.
By the end of this course, you will be able to secure Linux systems, work with AI tools on Linux servers, deploy applications using Docker, and build a strong foundation for Linux, DevOps, cloud, AI, and cybersecurity-related roles.
Course Content
Getting Started with the Course
Course Introduction
Why Linux is Important for AI
Course Architecture
Getting Started with AWS EC2 & VM Access
Introduction to Cloud and AWS
Launch EC2 Instance (Ubuntu)
Set Up MobaXterm for VM Access
Connect to VM Using MobaXterm
Linux Fundamentals: Files, Commands & Permissions
Linux Filesystem Explained
Essential Linux Commands
File Management in Linux
Editing Files Using Vi Editor
File Permissions in Linux
Modify Permissions with chmod
Modify Ownership with chown
Package Management & Environment Variables
Package Management with APT
Hands-on Lab: Managing Packages
Environment Variables Explained
Hands-on Lab: Environment Variables
Python Setup & Dependency Management for AI
Python Environment Essentials for AI
Python Virtual Environment Setup (venv)
Python Dependency Management Using pip
Real-Time Projects
GitHub Info Fetcher Project
GitHub API-Based Python Project
Running AI Models on Linux (GPT-2 Project)
Install AI Libraries: NumPy, PyTorch & Transformers
First AI Text Generation Script
Load and Run GPT-2 Model
Transformers & Hugging Face Overview
AI Text Generation Flow
Real-Time Project
AI Text Completion Using GPT-2 on AWS
Introduction to Generative AI
What is an LLM?
How LLMs Work
Examples of LLMs
OpenAI vs Hugging Face
APIs and AI Integrations
OpenAI Introduction & Use Cases
Hugging Face Overview & Use Cases
Build an AI Chatbot Using Python and OpenAI
AI Chatbot Project Overview
Python Environment Setup
Install OpenAI Libraries
Configure OpenAI API Keys
Writing Python Code for AI Chatbot
Run and Test the AI Chatbot
Deploy the AI Chatbot Using Docker
What is Docker?
Docker Architecture & Components
Dockerfile Creation
Docker Setup and Installation
Build Docker Images
Run AI Chatbot Using Docker Containers
Linux Security Fundamentals
Linux Security Overview
Common Linux Security Threats
Server Hardening Best Practices
Linux Security & Hardening
Physical Security of Linux Systems
BIOS Firmware Security
Bootloader Security
Single User Mode Security
PAM (Pluggable Authentication Modules)
Account & Password Security
Password Aging Policies
File System Security
ACLs and Special Permissions
Network Security
SSH Hardening
Linux Firewall & firewalld
Port Forwarding & Rich Rules
SELinux Concepts & Troubleshooting
Audit Logs & Security Monitoring
Last Lecture