Difference between revisions of "Linux"

From Path of Diablo Wiki
Jump to: navigation, search
(Compatible Distributions)
 
(30 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
=Compatible Distributions=
 +
While not officially supported, Linux and [[Mac]] do work.
  
= How to run PoD under linux =
+
Attempts to install Path of Diablo:
 +
* [[File:Debian.png|30px|link=|Debian Distros]] Debian
 +
** [[File:Ubuntu.png|30px|link=|Ubuntu]] Ubuntu 22.04.3 LTS (jammy) [[File:yes.png|30px|link=]]
 +
*** [[File:Mint.png|30px|link=|Mint]] Linux Mint 21.2 (Victoria) [[File:yes.png|30px|link=]]
 +
** [[File:popos.png|30px|link=|Pop!_OS]] Pop!_OS [[File:yes.png|30px|link=]]
 +
** [[File:Pi.png|26px|link=|Raspberry Pi]] Raspberry Pi 4 [[File:no.png|30px|link=]]
 +
* [[File:Arch.png|30px|link=|Arch Distros]] Arch [[File:yes.png|30px|link=]]
 +
** [[File:Manjaro.png|28px|link=|Manjaro]] Manjaro Stable 23.1.2 [[File:yes.png|30px|link=]]
 +
* [[File:gentoo.png|30px|link=|Gentoo]] Gentoo [[File:yes.png|30px|link=]]
 +
''If you have a distro not listed here, please share your installation attempt results with @GreenDude on Discord''
  
 +
=Install Instructions=
  
== Requirements ==
+
1. Open Terminal as a regular user, not Root. Copy/paste commands into terminal by following the steps for your distro. <span style="color: #c88c2d">Do not use ''sudo su''!</span>.
  
"Path of Diablo" mod works perfectly under Wine (just as vanilla D2:LoD does), but its launcher requires some additional configuration.<br />
+
2. Prep Work
All you'll need is a 32-bit Wine prefix with dotnet 4.0 on it.
+
* [[File:Debian.png|30px|Debian Distros]] <code>sudo dpkg --add-architecture i386</code>
 +
#[[File:Ubuntu.png|30px|Ubuntu]] <code>sudo add-apt-repository universe</code>
 +
#[[File:Ubuntu.png|30px|Ubuntu]] <code>sudo apt update</code>
 +
# [[File:Ubuntu.png|30px|Ubuntu]] <code>sudo apt full-upgrade</code>
 +
# [[File:Ubuntu.png|30px|Ubuntu]] <code><nowiki>sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources</nowiki></code>
 +
# [[File:Ubuntu.png|30px|Ubuntu]] <code>sudo apt upgrade</code>
 +
# [[File:Ubuntu.png|30px|Ubuntu]] <code>sudo mkdir -pm755 /etc/apt/keyrings</code>
 +
# [[File:Ubuntu.png|30px|Ubuntu]] <code><nowiki>sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key</nowiki></code>
 +
3. Install Wine (8.0.2+) & Winetricks
 +
* [[File:Ubuntu.png|30px|Ubuntu]] <code>sudo apt install winehq-stable winetricks</code>
 +
* [[File:Mint.png|30px|Mint]] <code>sudo apt install --install-recommends winehq-staging -yy</code>
 +
* [[File:Arch.png|30px|Arch Distros]] <code>pacman -Syu wine winetricks</code>
 +
4. Install Zenity
 +
* [[File:Ubuntu.png|30px|Ubuntu]] <code>sudo apt-get install zenity</code>
 +
* [[File:Arch.png|30px|Arch Distros]] <code>pacman -Syu zenity</code>
 +
5. Install .NET Framework 4.8
 +
* [[File:Linux.png|32px|All Linux Distros]] <code>WINEPREFIX="$HOME/prefix32" WINEARCH=win32 winetricks --force dotnet48</code>
 +
* [[File:Linux.png|32px|All Linux Distros]] When prompted by Wine to install Mono choose Yes and proceed with the install.
 +
* [[File:Linux.png|32px|All Linux Distros]] When prompted by Wine to install Gecko choose Yes and proceed with the install.
 +
6. Download D2 Classic Downloader
 +
# [[File:Linux.png|32px|All Linux Distros]] <code><nowiki>URL="https://downloader.battle.net/download/getLegacy?os=win&locale=enUS&product=D2DV&id=e07efddd-791e-4747-a164-05d7e9c4bf2d"; wget "$URL"</nowiki></code>
 +
# [[File:Linux.png|32px|All Linux Distros]] <code>mv 'getLegacy?os=win&locale=enUS&product=D2DV&id=e07efddd-791e-4747-a164-05d7e9c4bf2d' Downloader_Diablo2_enUS.exe</code>
 +
7. Download D2 LoD Downloader
 +
# [[File:Linux.png|32px|All Linux Distros]] <code><nowiki>URL="https://downloader.battle.net/download/getLegacy?os=win&locale=enUS&product=D2XP&id=e07efddd-791e-4747-a164-05d7e9c4bf2d"; wget "$URL"</nowiki></code>
 +
# [[File:Linux.png|32px|All Linux Distros]] <code>mv 'getLegacy?os=win&locale=enUS&product=D2XP&id=e07efddd-791e-4747-a164-05d7e9c4bf2d' Downloader_Diablo2_Lord_of_Destruction_enUS.exe</code>
 +
8. Run D2 Classic Downloader
 +
# [[File:Linux.png|32px|All Linux Distros]] <code>WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine Downloader_Diablo2_enUS.exe</code>
 +
# [[File:Linux.png|32px|All Linux Distros]] Close any errors or popups until you see a menu to select the folder where the game will be downloaded. (Optional)We recommend to select the emulated C drive like ''MyComputer -> C\Program Files''. The Classic Installer will automatically launch when the download completes.
 +
# [[File:Linux.png|32px|All Linux Distros]] (Optional)We recommend installing the game in ''Program Files(x86)'' such that the path looks like ''MyComputer -> C\Program Files\Diablo II''.
 +
# [[File:Linux.png|32px|All Linux Distros]] Install the game using your D2 digital edition key found under your account on https://battle.net. If you have old CD keys, redeem them under your https://battle.net web account and they will be converted to digital keys. Close installer when done.
 +
9. Run D2 LoD Downloader
 +
# [[File:Linux.png|32px|All Linux Distros]] <code>WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine Downloader_Diablo2_Lord_of_Destruction_enUS.exe</code>
 +
# [[File:Linux.png|32px|All Linux Distros]] Close any errors or popups until you see a menu to select the folder where the game will be downloaded. The LoD Installer will automatically launch when the download completes.
 +
# [[File:Linux.png|32px|All Linux Distros]] Install the game using your LoD digital edition key found under your account on https://battle.net. If you have old CD keys, redeem them under your https://battle.net web account and they will be converted to digital keys. Close installer when done.
 +
10. Download Path of Diablo Installer
 +
* [[File:Linux.png|32px|All Linux Distros]] <code><nowiki>wget https://pathofdiablo.com/pathofdiablolauncher.msi</nowiki></code>
 +
11. Open Path of Diablo Installer
 +
# [[File:Linux.png|32px|All Linux Distros]] <code>WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine start pathofdiablolauncher.msi</code>
 +
# [[File:Linux.png|32px|All Linux Distros]] When selecting the folder to install PoD, make sure to find and select the Diablo II install location from earlier in the guide. (If you used the recommended path, then simply install Path of Diablo in ''C:\Program Files\Diablo II''.)
 +
[[File:yes.png|30px]] Done! Open Path of Diablo Launcher: Wine will most likely have created a '''Path of Diablo Launcher''' shortcut on your real (not emulated) Desktop. Open the launcher and click the Play button. Enjoy!
  
== Preparing prefix ==
+
<br>[[File:Info.png|18px|link=]] If you don't see a PoD Launcher shortcut on your real actual desktop then:
 
+
# [[File:Linux.png|32px|All Linux Distros]] (Optional)<code>WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine explorer</code>
Make sure you're using Xorg, not Wayland - there were issues with the latter.
+
# [[File:Linux.png|32px|All Linux Distros]] (Optional)Navigate to the emulated ''Desktop'' folder and double click the ''Path of Diablo Launcher'' shortcut. (Alternatively, navigate to your Path of Diablo install folder and double click ''Path of Diablo Launcher.exe'',)
 
+
* (Always start Path of Diablo by opening the launcher and clicking Play. Do not attempt to run the other ''exe'' files instead.)
* Install ''Wine'' and ''winetricks'' packages from your distro repositories:
 
 
 
<blockquote>Archlinux: '''pacman -S wine winetricks'''<br />
 
Debian: '''sudo apt install wine winetricks'''</blockquote>
 
 
 
* Create new win32 prefix with winecfg:
 
 
 
<blockquote><p>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 winecfg'''</p>
 
<pre style="color: red">Throughfully work out all wine errors it throws at you at this point</pre>
 
For example, ''ntlm_auth was not found'' error means you should install Samba package (in Archlinux, it may vary for other distos)
 
 
 
 
 
<p>If the winecfg window pops up, that means it's already configured the "prefix32" prefix folder in your user home directory as a x86 (32-bit) Windows.<br />
 
Ensure you have Windows 7 or higher selected in the drop-down window, as the Path of Diablo installer won't run on Windows XP, and close the window.</p></blockquote>
 
 
 
* Install dotnet4.0 with winetricks there:
 
 
 
<blockquote><p>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 winetricks'''</p>
 
<p>Select "Choose default wine prefix" on the first screen</p>
 
<p>Select "install DLL or Windows components" on the '''second''' screen, choose "dotnet40" option and press OK</p></blockquote>
 
 
 
== Installing the game ==
 
 
 
* Download d2 installers & PoD installer to any folder as described [https://www.youtube.com/watch?v=yiy8qFtKIn8 here]. Make sure to grab English(US) version of D2 and D2LOD from bnet website.
 
 
 
<pre style="color: red">To run windows app with wine - always change directory (cd) to those containing exe-file!</pre>
 
 
 
* Fire up terminal, cd to directory with exe, run
 
 
 
<blockquote>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine Downloader_Diablo2_enUS.exe'''</blockquote>
 
 
 
* same again but for expansion, run
 
 
 
<blockquote>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine Downloader_Diablo2_Lord_of_Destruction_enUS.exe'''</blockquote>
 
 
 
* go to directory where you downloaded the classic game from the first downloader, run
 
 
 
<blockquote>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine Installer.exe'''</blockquote>
 
 
 
* go to directory where you downloaded the expansion game from the second downloader, run
 
 
 
<blockquote>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine installer.exe'''</blockquote>
 
 
 
* Install PoD launcher. As .msi files aren't executables, make sure to use "wine start"
 
 
 
<blockquote>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine start pathofdiablolauncher.msi'''</blockquote>
 
 
 
== Running the game itself (vanilla D2) ==
 
 
 
* In terminal, enter Diablo II directory and run
 
 
 
<blockquote>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine D2VidTst.exe'''</blockquote>
 
 
 
Select any graphics API you want. Run the game
 
 
 
<blockquote>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine Diablo\ II.exe'''</blockquote>
 
 
 
Game SHOULD work. If wine throws errors - in most cases you missing some packages. Google those errors, find the packages you need and install them. [https://wiki.archlinux.org/index.php/Wine|Wine-related article] on Archwiki can be helpful too.
 
 
 
== Running Path of Diablo ==
 
 
 
* In terminal, enter Diablo II directory and then enter Path of Diablo directory which should be inside the Diablo II directory. If this isn't the case you must reinstall pod or you will get an error like "Some or more files are missing from your parent D2 installation". Inside Path of Diablo directory, run PoD launcher
 
 
 
<blockquote>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine Path\ of\ Diablo\ Launcher.exe'''</blockquote>
 
 
 
* The launcher may download some updates and restart itself. You can download updates from whichever download server when prompted.
 
* Press "Play" to start playing POD mod!
 
 
 
== Configuring Glide API wrapper ==
 
 
 
D2 in Glide mode works better and looks fancier. So, go inside Path of Diablo (not vanilla!) directory, run
 
 
 
<blockquote>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine D2VidTst.exe'''</blockquote>
 
 
 
and select Glide. Next, run Glide configuration app
 
 
 
<blockquote>'''WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine glide-init.exe'''</blockquote>
 
 
 
0. Press "test" - and do that after any settings change, to verify nothing is broken!
 
 
 
1. Press "English/Deutsch" button to switch language
 
 
 
2. Press "Query..." on OpenGL-infos tab and wait until you get you graphics subsystem capabilities
 
 
 
3. Check all boxes at Extensions tab (WGL_ARB_render_texture" should appear after OpenGL query)
 
 
 
4. On settings tab, uncheck vsync and select fps-limit 100 - game can go up to THOUSAND on modern systems! Remaining boxes on that tab is up to you.
 
 
 
5. On renderer tab, select maximum values for texture-memory and buffer-texture-size, 32-bit rendering, texture for videos, bilinear filtering, SUPERSAMPLING, and I personally keep shader-gamma/no gamma unchecked. You can also check keep desktop resolution - but it hits performance hard on old weak laptops (together with supersampling)
 
 
 
6. On wrapper-statistics tab, check "framerate" and select corner to show your game FPS
 
 
 
7. Press test for a last time, then Quit.
 
 
 
* Check '''-3dfx''' box in PoD launcher!
 
 
 
== Loot Filter and QoL settings ==
 
 
 
If you find your game crashing when interacting with the Settings button and its content, check this Reddit thread at: https://www.reddit.com/r/pathofdiablo/comments/6h2hju/linux_getting_qol_to_work/
 

Latest revision as of 13:46, 23 August 2024

Compatible Distributions

While not officially supported, Linux and Mac do work.

Attempts to install Path of Diablo:

  • Debian Distros Debian
    • Ubuntu Ubuntu 22.04.3 LTS (jammy) Yes.png
      • Mint Linux Mint 21.2 (Victoria) Yes.png
    • Pop!_OS Pop!_OS Yes.png
    • Raspberry Pi Raspberry Pi 4 No.png
  • Arch Distros Arch Yes.png
    • Manjaro Manjaro Stable 23.1.2 Yes.png
  • Gentoo Gentoo Yes.png

If you have a distro not listed here, please share your installation attempt results with @GreenDude on Discord

Install Instructions

1. Open Terminal as a regular user, not Root. Copy/paste commands into terminal by following the steps for your distro. Do not use sudo su!.

2. Prep Work

  • Debian Distros sudo dpkg --add-architecture i386
  1. Ubuntu sudo add-apt-repository universe
  2. Ubuntu sudo apt update
  3. Ubuntu sudo apt full-upgrade
  4. Ubuntu sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
  5. Ubuntu sudo apt upgrade
  6. Ubuntu sudo mkdir -pm755 /etc/apt/keyrings
  7. Ubuntu sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

3. Install Wine (8.0.2+) & Winetricks

  • Ubuntu sudo apt install winehq-stable winetricks
  • Mint sudo apt install --install-recommends winehq-staging -yy
  • Arch Distros pacman -Syu wine winetricks

4. Install Zenity

  • Ubuntu sudo apt-get install zenity
  • Arch Distros pacman -Syu zenity

5. Install .NET Framework 4.8

  • All Linux Distros WINEPREFIX="$HOME/prefix32" WINEARCH=win32 winetricks --force dotnet48
  • All Linux Distros When prompted by Wine to install Mono choose Yes and proceed with the install.
  • All Linux Distros When prompted by Wine to install Gecko choose Yes and proceed with the install.

6. Download D2 Classic Downloader

  1. All Linux Distros URL="https://downloader.battle.net/download/getLegacy?os=win&locale=enUS&product=D2DV&id=e07efddd-791e-4747-a164-05d7e9c4bf2d"; wget "$URL"
  2. All Linux Distros mv 'getLegacy?os=win&locale=enUS&product=D2DV&id=e07efddd-791e-4747-a164-05d7e9c4bf2d' Downloader_Diablo2_enUS.exe

7. Download D2 LoD Downloader

  1. All Linux Distros URL="https://downloader.battle.net/download/getLegacy?os=win&locale=enUS&product=D2XP&id=e07efddd-791e-4747-a164-05d7e9c4bf2d"; wget "$URL"
  2. All Linux Distros mv 'getLegacy?os=win&locale=enUS&product=D2XP&id=e07efddd-791e-4747-a164-05d7e9c4bf2d' Downloader_Diablo2_Lord_of_Destruction_enUS.exe

8. Run D2 Classic Downloader

  1. All Linux Distros WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine Downloader_Diablo2_enUS.exe
  2. All Linux Distros Close any errors or popups until you see a menu to select the folder where the game will be downloaded. (Optional)We recommend to select the emulated C drive like MyComputer -> C\Program Files. The Classic Installer will automatically launch when the download completes.
  3. All Linux Distros (Optional)We recommend installing the game in Program Files(x86) such that the path looks like MyComputer -> C\Program Files\Diablo II.
  4. All Linux Distros Install the game using your D2 digital edition key found under your account on https://battle.net. If you have old CD keys, redeem them under your https://battle.net web account and they will be converted to digital keys. Close installer when done.

9. Run D2 LoD Downloader

  1. All Linux Distros WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine Downloader_Diablo2_Lord_of_Destruction_enUS.exe
  2. All Linux Distros Close any errors or popups until you see a menu to select the folder where the game will be downloaded. The LoD Installer will automatically launch when the download completes.
  3. All Linux Distros Install the game using your LoD digital edition key found under your account on https://battle.net. If you have old CD keys, redeem them under your https://battle.net web account and they will be converted to digital keys. Close installer when done.

10. Download Path of Diablo Installer

  • All Linux Distros wget https://pathofdiablo.com/pathofdiablolauncher.msi

11. Open Path of Diablo Installer

  1. All Linux Distros WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine start pathofdiablolauncher.msi
  2. All Linux Distros When selecting the folder to install PoD, make sure to find and select the Diablo II install location from earlier in the guide. (If you used the recommended path, then simply install Path of Diablo in C:\Program Files\Diablo II.)

Yes.png Done! Open Path of Diablo Launcher: Wine will most likely have created a Path of Diablo Launcher shortcut on your real (not emulated) Desktop. Open the launcher and click the Play button. Enjoy!


Info.png If you don't see a PoD Launcher shortcut on your real actual desktop then:

  1. All Linux Distros (Optional)WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine explorer
  2. All Linux Distros (Optional)Navigate to the emulated Desktop folder and double click the Path of Diablo Launcher shortcut. (Alternatively, navigate to your Path of Diablo install folder and double click Path of Diablo Launcher.exe,)
  • (Always start Path of Diablo by opening the launcher and clicking Play. Do not attempt to run the other exe files instead.)