Complete guide for setting up Intel AI PC development on Linux, including driver installation and AI software environment setup.
For a first-time Linux driver setup on Ubuntu 24.04 or 26.04, run:
# From the repository root
cd Linux_Software_Installation
# Behind a corporate proxy, export it first (example)
# export http_proxy=http://proxy.example.com:912 https_proxy=$http_proxy
# Generate the driver installer for this Ubuntu release
./build-static-installer.sh --build-static
# Install the drivers (-E keeps proxy settings for apt/curl)
sudo -E ./setup-static-drivers.shAfter the driver installation completes, reboot the machine before running setup-software.sh.
⚠️ CRITICAL: Install Drivers Before AI SoftwareYou must install Intel GPU and NPU drivers before installing any AI development software. The AI frameworks and tools require proper driver support to function correctly.
The driver setup supports Ubuntu 24.04 (noble) and Ubuntu 26.04 (resolute) and uses the same flow on both:
- GPU drivers come from the Intel Graphics PPA (
ppa:kobuk-team/intel-graphics), following Intel's guide: Installing packages from the Intel PPA. - NPU driver comes from the latest intel/linux-npu-driver release tarball for the matching Ubuntu release (
ubuntu2404orubuntu2604). The NPU packages use thelibze1Level Zero loader from the PPA.
Available Scripts:
build-static-installer.sh: Builder. Detects the Ubuntu release, checks that the PPA is reachable, resolves the latest NPU driver release and its SHA256, and generatessetup-static-drivers.sh.setup-static-drivers.sh: Generated installer (run as root). Pins the NPU release the builder found.Utilities/verify_connectivity.sh: Read-only check that the PPA, Launchpad, and GitHub are reachable (through your proxy, if set).
-
Checks it runs as root on the Ubuntu release it was generated for, and uses proxy settings provided at run time. It does not embed a build-machine proxy address.
-
On 24.04, warns if the HWE kernel is missing. Intel requires it for Lunar Lake, Battlemage and Panther Lake; install with
sudo apt-get install -y --install-recommends linux-generic-hwe-24.04and reboot. The script never changes kernels. -
Removes conflicts from the previous GitHub-based flow: the legacy
repositories.intel.comapt source, and thelevel-zero,level-zero-develandintel-level-zero-gpupackages (they conflict with the PPAlibze1). -
Adds
ppa:kobuk-team/intel-graphicsand installs:- Compute:
libze-intel-gpu1 libze1 intel-metrics-discovery intel-opencl-icd clinfo intel-gsc - Media:
intel-media-va-driver-non-free libmfx-gen1.2 libvpl2 libvpl-tools libva-glx2 va-driver-all vainfo - Development:
libze-dev intel-ocloc
GPU packages that were previously installed from GitHub
.debfiles are moved to the PPA versions (--allow-downgrades). - Compute:
-
Downloads the NPU tarball, requires and verifies its SHA256 before changing NPU packages, installs its
.debfiles withapt-get(includingintel-fw-npu,intel-level-zero-npuandintel-driver-compiler-npu) so dependencies are resolved in one step, and adds the/dev/acceludev rule. If the release has no SHA256, the builder stops rather than generating an unchecked installer. -
Adds the user to the
videoandrendergroups.
Reboot afterwards.
- Version detection: Ubuntu 24.04 and 26.04 are supported; other releases stop with an error.
- Dependencies: Installs missing
curl/jqwithsudo -E apt-get(you may be prompted for your sudo password). - Proxy-aware: Uses
http_proxy/https_proxy(reuseshttp_proxyfor HTTPS if only that is set). It does not print or embed proxy addresses in the generated script. - Rate-limit tolerant: Uses the GitHub API (optionally with
GITHUB_TOKEN), and falls back to the github.com release page when the API is rate limited (common behind shared corporate egress IPs). - Safe generation: The generated script is syntax-checked before it replaces the previous one.
- Run without arguments to see the status, or with
--helpfor usage.
cd Linux_Software_Installation
# Optional: confirm the driver sources are reachable
./Utilities/verify_connectivity.sh
# Step 1: Generate the installer
./build-static-installer.sh --build-static
# Step 2: Run it (-E keeps proxy variables)
sudo -E ./setup-static-drivers.sh
# Step 3: Reboot
sudo rebootAfter reboot, verify:
clinfo | grep -i "device name" # Intel GPU listed
ls /dev/dri/renderD* /dev/accel/accel0
groups # includes video and rendersudo add-apt-repository --remove -y ppa:kobuk-team/intel-graphics
sudo apt-get updateProblem: apt, add-apt-repository or curl time out.
Solution: Export the proxy before running the builder and keep it through sudo with -E:
export http_proxy=http://proxy.example.com:912
export https_proxy=$http_proxy
./build-static-installer.sh --build-static
sudo -E ./setup-static-drivers.shPlain sudo may drop proxy variables. Export the proxy appropriate to the machine running the installer, then use sudo -E; if your sudo policy still removes them, configure proxy access for apt/curl locally before retrying. No proxy address is recorded in the generated script.
Problem: The builder reports the GitHub API is rate limited (many users sharing one corporate IP). Solution: Usually nothing; the builder falls back to the release page automatically. If that also fails, set a token:
export GITHUB_TOKEN=your_token_here
./build-static-installer.sh --build-static./Utilities/verify_connectivity.shProblem: Run with sudo: sudo -E ./setup-static-drivers.sh
Solution: The installer must run as root:
sudo -E ./setup-static-drivers.shThe generated script refuses to run on a release other than the one it was built for. Regenerate it on the target machine.
GPU drivers: Intel Graphics PPA (ppa:kobuk-team/intel-graphics)
NPU driver: latest intel/linux-npu-driver GitHub release
Proxy configured for builder downloads (values not shown)
✓ Ubuntu 24.04 (noble) supported
NPU tarball flavor: ubuntu2404
✓ curl is installed
✓ jq is installed
=== Checking Intel Graphics PPA ===
✓ PPA publishes noble: https://ppa.launchpadcontent.net/kobuk-team/intel-graphics/ubuntu/dists/noble/Release
=== Resolving latest intel/linux-npu-driver release ===
✓ NPU driver release: v1.38.0
Asset: linux-npu-driver-v1.38.0.20260910-34487311128-ubuntu2404.tar.gz
URL: https://github.com/intel/linux-npu-driver/releases/download/v1.38.0/linux-npu-driver-v1.38.0.20260910-34487311128-ubuntu2404.tar.gz
SHA256: 1efcd4b6...
- GPU source: ppa:kobuk-team/intel-graphics
- NPU driver: v1.38.0 (linux-npu-driver-v1.38.0.20260910-34487311128-ubuntu2404.tar.gz)
🚀 Run: sudo -E ./setup-static-drivers.sh (-E keeps proxy settings)
=== Driver Source Connectivity Test ===
Proxy configured (values not shown)
GITHUB_TOKEN: not set (optional; the builder falls back to the release page when rate limited)
1. Intel Graphics PPA (noble)...
✓ https://ppa.launchpadcontent.net/kobuk-team/intel-graphics/ubuntu/dists/noble/Release
✓ api.launchpad.net reachable (used by add-apt-repository for the signing key)
2. GitHub (intel/linux-npu-driver)...
⚠ GitHub API rate limited; trying the release page
✓ Release page: latest release v1.38.0
All driver sources reachable.
GPU packages update with normal sudo apt upgrade from the PPA. To pick up a newer NPU driver release, regenerate and rerun:
./build-static-installer.sh --build-static
sudo -E ./setup-static-drivers.shhttp_proxy/https_proxy/no_proxy: Proxy settings (usesudo -Eto keep them as root)GITHUB_TOKEN: Optional GitHub token for higher API limits
⚠️ IMPORTANT: Driver Setup Required First⚠️ IMPORTANT: After installing drivers reboot the system before continuing to part 2.Before running this software setup, ensure you have completed Part 1 (Driver Setup) above. The AI software components require proper Intel GPU and NPU drivers to function correctly.
The Linux software setup uses setup-software.sh as the primary installer entry point.
It sets up a complete AI development environment optimized for Intel AI PCs by installing and configuring essential AI/ML frameworks, development tools, notebooks, and sample applications.
- UV Package Manager: Fast Python package manager for efficient dependency management
- Python Virtual Environments: Proper isolation for AI projects
- Google Chrome: Browser for web-based AI applications and Jupyter notebooks
- Visual Studio Code: Popular IDE with AI development extensions
- OpenVINO Toolkit: Intel's AI inference optimization framework
- OpenVINO GenAI: Generative AI toolkit with Intel optimizations
- Ollama: Local LLM runtime with Intel GPU acceleration
- OpenVINO Notebooks: Comprehensive collection of AI inference examples and tutorials
- Additional Workshop Repositories: Extra learning materials and sample projects
All AI development materials are installed under ~/intel/ for organized project management.
- Operating System: Ubuntu 24.04 LTS or newer
- Hardware: Intel AI PC with compatible GPU and NPU
- Drivers: Intel GPU/NPU drivers installed (Part 1 above)
- Memory: At least 16GB RAM (32GB+ recommended for large models)
- Storage: At least 10GB free space for all components
- Build Tools: The script automatically installs: cmake, build-essential, pkg-config, ninja-build, git, curl, wget, python3-pip, python3-venv, and Vulkan SDK
# Navigate to software setup directory
cd ../Linux_Software_Installation
# Make the script executable
chmod +x setup-software.sh
# Run the setup (DO NOT use sudo)
./setup-software.shImportant Notes:
- Never run with sudo: The script explicitly prevents running as root for security
- Interactive Installation: Some components may require user input during installation
- Time Requirements: Full installation may take 30-60 minutes depending on internet speed
- Resumability: Script checks for existing installations and can be re-run safely
- Verifies user permissions (prevents sudo execution)
- Checks and installs system dependencies
- Creates the
~/intelworking directory - Sets up error handling and logging
- Installs UV package manager for fast Python package management
- Verifies Python 3 and pip installation
- Sets up virtual environment capabilities
- OpenVINO Notebooks: Clones and sets up the comprehensive notebook collection
- OpenVINO GenAI 2026.1.0.0: Sets up generative AI toolkit with Intel optimizations (version 2026.1.0.0)
- Ollama: Installs local LLM runtime with Intel GPU acceleration
- Google Chrome: Installs browser for web-based development
- VS Code: Installs popular IDE for AI development
- Additional Repositories: Clones supplementary workshop materials
~/intel/
├── openvino_notebooks/ # Main OpenVINO tutorial notebooks
├── openvino_genai_ubuntu24_2026.1.0.0_x86_64/ # OpenVINO GenAI 2026.1.0.0 toolkit
├── WorkShops_BootCamp/ # Additional workshop materials
├── llama.cpp/ # llama.cpp with Vulkan support
└── various Python virtual environments
System-wide Installations:
- Ollama: Installed system-wide via official installer
- Google Chrome: Installed via .deb package
- VS Code: Installed via official repository
- UV: Installed system-wide Python package manager
After installation completes, verify your setup:
# Check Ollama installation
ollama --version
# Check UV installation
uv --version
# Check Chrome installation
google-chrome --version
# Check VS Code installation
code --version
# Verify Python environments
ls ~/intel/*/venv/- Navigate to notebooks:
cd ~/intel/openvino_notebooks - Activate environment:
source venv/bin/activate - Start Jupyter:
jupyter lab - Browse examples: Explore the notebooks directory for AI examples
# Test Ollama with a simple model
ollama pull llama2:7b
ollama run llama2:7b "Hello, how are you?"Problem: Installation fails with rate limit errors -- this sometimes happens if you are at a company behind a proxy and it appears that many users are sharing the same IP address.
Solution: Set GITHUB_TOKEN environment variable
export GITHUB_TOKEN=your_token_here
sudo -E ./setup-static-drivers.sh # -E preserves environment variablesProblem: Cannot reach GitHub
Solution: Check your internet connection and firewall settings
# Test basic connectivity
curl https://github.com
# Run full diagnostic (from Linux_Software_Installation directory)
./Utilities/verify_connectivity.shProblem: Script fails due to insufficient privileges
Solution: Run with sudo (drivers only; -E keeps proxy settings)
sudo -E ./setup-static-drivers.sh- Problem: "Permission denied" errors during software installation
- Solution: Ensure you're not running with sudo and have write access to home directory
- Problem: Downloads fail due to network issues
- Solution: Check internet connection and re-run the script (it will skip completed installations)
- Problem: Virtual environment creation fails
- Solution: Ensure python3-venv is installed:
sudo apt install python3-venv
- Problem: Installation fails due to insufficient space
- Solution: Free up at least 10GB of space and re-run
- Problem: AI acceleration not working
- Solution: Verify drivers are properly installed using the diagnostic script
Installation logs are written to the terminal. For debugging:
- Re-run the script with verbose output:
bash -x setup-software.sh - Check individual component logs in their respective directories
AI agents: to run the builder, drivers, and software phases from an agent harness such as Hermes or GitHub Copilot, see
.agents/skills. The skill adds a read-only preflight, per-phase consent, logged output under~/.local/state/aipc-devkit/, and an outcome report.
To update to newer driver versions:
cd Linux_Software_Installation
# GPU packages update via apt from the Intel PPA; regenerate to pick up a newer NPU release
./build-static-installer.sh --build-static
sudo -E ./setup-static-drivers.sh- Ollama models:
ollama pull <model-name> - OpenVINO notebooks:
cd ~/intel/openvino_notebooks && git pull - VS Code: Updates automatically or via system package manager
- Chrome: Updates automatically
GITHUB_TOKEN: Personal access token for GitHub API (recommended)OS_ID: Target OS identifier (default: "ubuntu")OS_VERSION: Target OS version (default: "24.04")
HOME: User home directory (used for ~/intel path)PATH: Updated with new tool locations
The software script can be modified to skip certain components by commenting out function calls in the main execution section.
To clean up the software installation:
# Remove all AI development materials
rm -rf ~/intel/
# Uninstall system packages (optional)
sudo apt remove google-chrome-stable code ollama- Intel AI PC Documentation: Intel Developer Zone
- OpenVINO Documentation: OpenVINO Toolkit
- Issues: Report problems via the project repository
- Driver scripts run with sudo for necessary system-level installations
- Software script prevents execution as root to avoid system-wide permission issues
- Downloads from official sources only (GitHub, official package repositories)
- Creates isolated Python environments to prevent dependency conflicts
- No modification of system-critical directories or configurations
When contributing to this project:
- Test changes with the diagnostic script first
- Ensure compatibility with Ubuntu 24.04
- Update documentation for any new features
- Follow the existing error handling patterns
This guide is part of the Intel AI PC development toolkit. Follow the steps in order: Drivers First (Part 1), then Software Setup (Part 2).