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

Linux 仮想マシンを動かす / Running a Linux Virtual Machine

Linux 仮想マシンを動かす / Running a Linux Virtual Machine

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

Kenji Saito

June 02, 2024
Tweet

More Decks by Kenji Saito

Other Decks in Technology

Transcript

  1. Generated by Stable Diffusion XL v1.0 — AI 2024 11

    Linux (Windows )(Mac ) (WBS) 2024 11 Linux (Windows )(Mac ) — 2024-06 – p.1/15
  2. ( 20 ) 1 • 2 • 3 Discord &

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

    Linux Linux Ubuntu 22.04 LTS LTS : Long-Term Support ( ) Linux 2024 11 Linux (Windows )(Mac ) — 2024-06 – p.4/15
  4. WSL WSL (Windows Subsystem for Linux) Windows Linux Windows PowerShell

    (‘>’ ) > wsl --install Linux Windows Ubuntu Ubuntu Linux Ubuntu 22.04.3 LTS WSL 2024 11 Linux (Windows )(Mac ) — 2024-06 – p.6/15
  5. Ubuntu 2 Python (‘$’ ) $ python3 -V Python 3.10.12

    Python $ sudo apt update $ sudo apt install python3-venv python3-dev gcc 2024 11 Linux (Windows )(Mac ) — 2024-06 – p.7/15
  6. Mac macOS Sonoma 14.5 Apple (M1 ) 2024 11 Linux

    (Windows )(Mac ) — 2024-06 – p.8/15
  7. Homebrew Homebrew (Apple macOS ) UNIX macOS Lima Homebrew brew

    Apple brew ( ) brew https://github.com/Homebrew/brew/releases pkg https://github.com/homebrew/install Path : https://zenn.dev/tet0h/articles/a92651d52bd82460aefb 2024 11 Linux (Windows )(Mac ) — 2024-06 – p.9/15
  8. Rosetta 2 Rosetta 2 Apple x86/AMD64 ( ) ( )

    (‘$’ ) $ softwareupdate --install-rosetta 2024 11 Linux (Windows )(Mac ) — 2024-06 – p.10/15
  9. Lima (Linux Machines) Lima macOS Linux ( ) https://github.com/lima-vm/lima QEMU

    ( ) Rosetta 2 Apple x86/AMD64 brew $ brew install lima Ubuntu 22.04 (x86/AMD64) “arm.yaml” $ limactl start arm.yaml 2024 11 Linux (Windows )(Mac ) — 2024-06 – p.11/15
  10. Lima Linux (Ubuntu) aarch64 $ limactl list Linux (exit )

    $ limactl shell arm Linux limactl list STATUS Stopped limactl start arm “.lima” diffdisk 100GB 2024 11 Linux (Windows )(Mac ) — 2024-06 – p.12/15
  11. Ubuntu Python (‘$’ ) $ python3 -V Python 3.10.12 Python

    $ sudo apt update $ sudo apt install python3-venv python3-dev gcc 2024 11 Linux (Windows )(Mac ) — 2024-06 – p.14/15