Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Linux 仮想マシンを動かす(Windows 編)(Mac 編) / Running a L...

Linux 仮想マシンを動かす(Windows 編)(Mac 編) / Running a Linux Virtual Machine (Windows Edition) (Mac Edition)

早稲田大学大学院経営管理研究科「プロンプトエンジニアリング ─ 生成AI の応用」2025 春のオンデマンド教材 第11回で使用したスライドです。

Avatar for Kenji Saito

Kenji Saito PRO

May 15, 2025
Tweet

More Decks by Kenji Saito

Other Decks in Technology

Transcript

  1. Generated by Stable Diffusion 3.5 — AI 2025 11 Linux

    (Windows )(Mac ) (WBS) 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.1/16
  2. ( 20 ) 1 • 2 • 3 • 4

    • 5 • 6 RPG • 7 “September 12th” • 8 • 9 • 10 ∼ • 11 Linux (Windows )(Mac ) • 12 Open Interpreter ∼ 13 01 ∼ 14 AGI (Artificial General Intelligence) 7 (4/28 ) / (2 ) OK / 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.3/16
  3. Linux UNIX (OS) ( ) Google OS android chromeOS Linux

    Linux Linux ( ) Ubuntu 24.04 LTS LTS : Long-Term Support ( ) Linux 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.4/16
  4. Windows Windows 11 Pro 22H2 OptionalFeatures.exe Linux Windows WSL2 .

    . . https://qiita.com/mikuta0407/items/02f19abfcf1cc3e54977 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.6/16
  5. WSL WSL (Windows Subsystem for Linux) Windows Linux Windows PowerShell

    ( ) (‘>’ ) > wsl --install Linux Windows ( ; WSL2 Ubuntu 24.04 OK) > wsl -l -v WSL WSL2 > wsl --set-default-version 2 Ubuntu 24.04 > wsl --install -d Ubuntu-24.04 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.7/16
  6. Ubuntu Ubuntu 2 Python (‘$’ ) $ python3 -V Python

    3.12.3 Python $ sudo apt update $ sudo apt install python3-venv python3-dev gcc 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.8/16
  7. Mac macOS Sequoia 15.4.1 Apple (M1 ) (‘%’ ) %

    xcode-select --install 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.9/16
  8. Homebrew Homebrew (Apple macOS ) UNIX macOS Lima Homebrew brew

    Apple brew ( ) brew https://github.com/Homebrew/brew/releases pkg Path (brew ) “.zshrc” ( ) eval "$(/opt/homebrew/bin/brew shellenv)" 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.10/16
  9. Rosetta 2 Rosetta 2 Apple x86/AMD64 ( ) ( )

    (‘%’ ) % softwareupdate --install-rosetta 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.11/16
  10. Lima (Linux Machines) Lima macOS Linux ( ) https://github.com/lima-vm/lima QEMU

    ( ) Rosetta 2 Apple x86/AMD64 brew % brew install lima Ubuntu 24.04 (ARM64) “arm.yaml” % limactl start arm.yaml 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.12/16
  11. Lima Linux (Ubuntu) aarch64 % limactl list Linux (exit )

    % limactl shell arm Linux limactl list STATUS Stopped limactl start arm “.lima” diffdisk 100GB 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.13/16
  12. Ubuntu Python (‘$’ ) $ python3 -V Python 3.12.3 Python

    $ sudo apt update $ sudo apt install python3-venv python3-dev gcc 2025 11 Linux (Windows )(Mac ) — 2025-05 – p.15/16