
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.
Explore why Linux is essential for AI engineers, highlighting its lightweight performance, strong control, and seamless work with Python, Docker, and AI libraries on cloud servers.
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.
Launch an Ubuntu-based EC2 instance in AWS, choosing the Ubuntu image, t3.micro, a new key pair, 20 GB storage, and SSH access.
Set up MobaXterm to access a Linux VM by downloading and installing MobaXterm, then connect via SSH using the Ubuntu public IP on AWS after the instance initializes.
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.
Learn how to work with files in Linux using cat to display content, and cp and mv to copy or move and rename files, with practical examples.
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.
Master Linux file permissions, including read, write, and execute rights for owner, group, and others, and understand how numeric values 4, 2, and 1 define access for scripts and files.
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.
Discover how environment variables work as key-value pairs that store configuration and sensitive data like API keys, keeping code secure and flexible.
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 how to define environment variables, ensure they are inherited by scripts, test with multiple sessions, and make them permanent by updating .bashrc or related profile files.
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.
Create and activate isolated Python virtual environments (venvs) to manage different library versions without conflicts, install packages locally (for example NumPy 1.21 vs 1.26) inside the 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.
Build a Python app that queries the GitHub API to fetch user details by username, covering Python scripting, virtual environments, pip, requirements.txt, and API usage.
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.
Set up a Python virtual environment on Linux, install NumPy, PyTorch, and Transformer, and verify the installation with a simple test script.
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.
Create an interactive ai text assistant on linux by running a gpt-2 model with the transformers library, loading the tokenizer, and using a loop with configurable tokens, temperature, and top_p.
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.
Explore the API, as a bridge between client and server. Learn how requests move, are processed, and return responses, with a hands-on API lab.
Explore how OpenAI provides ready-to-use ai models via an API, eliminating training and server management for building ai-powered apps, with examples like ChatGPT and GPT-4.
Explore Hugging Face's open-source AI models, download and run them locally, and customize for offline or on-premises environments, gaining control and flexibility for learning AI concepts and building projects.
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.
Create a real AI chatbot on Linux with the OpenAI API, turning user input into interactive, intelligent responses while you set up Python, virtual environment, and testing.
Set up your Linux project folder ai-chatbot, create and activate a Python virtual environment to isolate dependencies, then install the required libraries and begin writing your chatbot code.
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.
Set up your OpenAI account, add credits, generate an API key, and integrate it into your Python code to securely interact with OpenAI models for building a chatbot.
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.
Run and test your ai chatbot on linux by executing script in a virtual environment with Python3, interactively asking questions and exiting with exit; verify api key, internet, and dependencies.
Replace local python virtual environments with docker containerization to ensure consistent deployment across laptops, servers, or cloud, by packaging apps with images and containers.
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.
Build an AI chatbot with docker, running in container. Secure the API key in a .env file and define dependencies in requirements.txt (OpenAI and python-.env) for a setup.
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