Skip to Content

Proton / Wine の基本

Linux 上で Windows ゲームとアプリケーションを実行するには、Wine および Proton 互換レイヤーに依存します。この記事では、それらの仕組みと使用方法について説明します。

Wineとは

Wine (Wine はエミュレータではありません) は、Windows API 呼び出しを Linux システム コールに変換し、Windows プログラムを Linux 上で実行できるようにする互換性レイヤーです。 Wine はエミュレーターではありません。API を直接変換するため、パフォーマンスのオーバーヘッドは最小限です。

Wine のインストール

# Enable 32-bit architecture sudo dpkg --add-architecture i386 sudo apt update # Add the WineHQ repository sudo mkdir -pm755 /etc/apt/keyrings wget -O- https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -cs)/winehq-$(lsb_release -cs).sources # Install the stable version sudo apt update sudo apt install --install-recommends winehq-stable -y

インストールを確認します。

wine --version

基本的な Wine の使用法

# Run a Windows program wine program.exe # Configure Wine (graphical interface) winecfg # Run Wine built-in tools wine regedit # Registry editor wine taskmgr # Task manager wine explorer # File manager wine control # Control panel

Wine プレフィックス (WINEPREFIX)

Wine プレフィックスは、分離された Windows 環境です。異なるプログラムに対して個別の環境を作成できます。

# Create a new Wine prefix WINEPREFIX=~/wine-myapp wineboot # Run a program in a specific prefix WINEPREFIX=~/wine-myapp wine myapp.exe # Configure a specific prefix WINEPREFIX=~/wine-myapp winecfg # Create a 32-bit prefix WINEARCH=win32 WINEPREFIX=~/wine32 wineboot

Wineトリックのインストール

Wineトリックを使用すると、共通コンポーネントとランタイム ライブラリを Wine に簡単にインストールできます。

sudo apt install winetricks -y # Install common runtime libraries winetricks vcrun2022 dotnet48 cjkfonts winetricks d3dx9 d3dcompiler_47 winetricks dxvk # Use the graphical interface winetricks --gui

Protonとは

Proton は、Wine に基づいて Valve によって開発された互換性レイヤーであり、ゲーム専用に最適化されています。以下を統合します。

  • Wine — Windows API 変換
  • DXVK — DirectX 9/10/11 から Vulkan への変換
  • VKD3D-Proton — DirectX 12 から Vulkan への変換
  • さまざまなゲーム固有のパッチと最適化

Proton は Steam に統合されているため、個別にインストールする必要はありません。 Steam の互換性設定で有効にするだけです。

Proton-GE (GloriousEggroll)

Proton-GE は、コミュニティによって管理されている Proton の拡張バージョンで、追加のパッチと修正が含まれています。

ProtonUp-Qt 経由でインストールする (推奨)

# Install ProtonUp-Qt flatpak install flathub net.davidotek.pupgui2 -y # Launch flatpak run net.davidotek.pupgui2

ProtonUp-Qt 内:

  1. Steam インストール ディレクトリを選択します
  2. [バージョンを追加] をクリックします
  3. Proton-GE を選択し、最新バージョンをインストールします

手動 Proton-GE インストール

# Create directory mkdir -p ~/.steam/root/compatibilitytools.d # Fetch and install the latest GE-Proton automatically (avoids hardcoding a version) TAG=$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep -oP '"tag_name": "\K[^"]+') wget "https://github.com/GloriousEggroll/proton-ge-custom/releases/download/${TAG}/${TAG}.tar.gz" # Extract to the Steam directory tar -xzf "${TAG}.tar.gz" -C ~/.steam/root/compatibilitytools.d/ # Clean up rm "${TAG}.tar.gz"

Steam を再起動し、ゲームのプロパティで Proton-GE バージョンを選択します。

単一ゲームの Proton バージョンの指定

ゲームを右クリック > プロパティ > 互換性 > 特定の Steam Play 互換性ツールの使用を強制する をチェック > バージョンを選択します。

ルトリス

Lutris は、Steam、GOG、Epic、Battle.net など、さまざまなソースからのゲームの管理をサポートするオープンソースのゲーム管理プラットフォームです。

ルトリスのインストール

sudo apt install lutris -y

ルトリスの使い方

ルトリスを起動します。

lutris

ルトリスの主な機能:

  • インストール スクリプト: コミュニティが管理する、ワンクリック セットアップ用のゲーム インストール スクリプト
  • Wine 管理: 最適バージョンの自動選択機能を備えた複数の Wine バージョンが組み込まれています
  • ランナー: 複数のゲーム ランナーのサポート (Wine、DOSBox、ScummVM、RetroArch など)

Lutris 経由でゲームをインストールする

  1. https://lutris.net  にアクセスしてゲームを検索します
  2. [インストール] ボタンをクリックします
  3. Lutris は自動的に開いてインストール スクリプトを実行します。

または、手動でゲームを追加します。

  1. + ボタンをクリックします
  2. ランナーを選択します (Wine/Linux/Steam など)。
  3. ゲームパスとパラメータを設定する

ボトル

Bottles は、もう 1 つの優れた Wine プレフィックス管理ツールです。

flatpak install flathub com.usebottles.bottles -y flatpak run com.usebottles.bottles

ボトルは以下を提供します:

  • 事前構成された Wine 環境 (ゲーム、アプリケーション、カスタム)
  • 依存関係マネージャー
  • バージョン管理
  • すっきりとしたグラフィカルインターフェイス

ヒロイック ゲーム ランチャー

Epic Games Store および GOG ゲームを実行する場合:

flatpak install flathub com.heroicgameslauncher.hgl -y

DXVK および VKD3D-Proton

DXVK

DXVK は DirectX 9/10/11 を Vulkan に変換し、Proton のコア コンポーネントの 1 つです。

# Manually install DXVK in Wine winetricks dxvk

VKD3D-UbunTUFANPLACEHOLDER0000

VKD3D-Proton は DirectX 12 を Vulkan に変換します。

# Install vkd3d-proton winetricks vkd3d

よくあるトラブルシューティング

Proton ログの表示

# Enable Proton logging PROTON_LOG=1 %command% # Log location ls ~/steam-*.log

便利な環境変数

# Enable DXVK HUD (display DXVK info) DXVK_HUD=fps,devinfo %command% # Force a specific DXVK version DXVK_CONFIG_FILE=~/dxvk.conf %command% # Enable Fsync (older sync primitive, requires kernel support) WINEFSYNC=1 %command% # Enable Esync WINEESYNC=1 %command%
Tip

Ubuntu 26.04 (Linux 7.0 カーネル) の主力機能は NTSYNC です。これは Windows 同期プリミティブのカーネル実装であり、Esync/Fsync よりも効率的であり、大幅に改善することができます。 Proton ゲームのパフォーマンス。最近の Proton / GE-Proton バージョンは、NTSYNC を自動的に検出して優先するため、通常は環境変数を設定する必要はありません。 Ubuntu 26.04 でのゲームを参照してください。

Wine および Proton の基本をしっかりと理解していれば、Ubuntu 26.04 で Windows ゲームの大部分を実行できます。