
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.
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.
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 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.
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.
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.
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.
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.
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.
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