Invalid Path Choose One Again Diablo 2
You might have heard the news: Diablo IV has been announced yesterday with a swell cinematic. What ameliorate time to install Diablo Three Diablo 2 again and have some fun while waiting for the latest iteration of the franchise?
Merely… information technology'due south 2019 and it is not e'er easy to install a game outset released back in June 2000 (yeah, that'southward 19 years ago. Yeah, you're old)! In this post I volition evidence you how to install Diablo II with its extension Lord of Devastation on Windows, MacOS and Linux (Ubuntu in this case), using Wine as well as optional sandboxing using firejail! Let's get to it…
If you are running MacOS or Windows, you lot're in luck! The official game launcher already supports those platforms natively so you lot tin can install it and play direct away without extra hassle! Here are the links:
- Windows – Diablo II.
- Windows – Lord of Destruction.
- MacOS – Diablo Two.
- MacOS – Lord of Destruction.
Get a License Primal
Start of, you will need a valid CD-Key for the game (both Diablo II and its extension LOD). You lot can go them on the official website for most xx euros from Blizzard (yes, that'southward a shame, the game used to toll 15.99 euros a few years agone!), or past registering your old keys if you nonetheless accept the box version (which is what I did).
Get the Launcher
The 2d step is to download the Windows launcher of the game which we will use in conjunction with Vino to make information technology piece of work on Linux. You can find the links on Blizzard'south website. Here they are if you want to save some time:
- Downloader_Diablo2_enUS.exe
- Downloader_Diablo2_Lord_of_Destruction_enUS.exe
Installing Latest Wine
You could probably use the stock version of wine which ships with your Linux distribution but I always like to get the latest shiny version and so here we go. If you use another distribution than Ubuntu, you lot can skip this section completely. From the official wiki:
If your organisation is 64 flake, enable 32 fleck architecture (if you haven't already):
sudo dpkg --add-architecture i386
Download and add the repository key:
wget -nc https://dl.winehq.org/vino-builds/winehq.key sudo apt-key add winehq.central
Now y'all need to get the repository matching your release of Ubuntu. For me it was bionic
(you can get yours using command lsb_release -cs
), but check official instructions if that does not correspond to yours.
sudo apt-add-repository 'deb https://dl.winehq.org/vino-builds/ubuntu/ bionic main' sudo apt install --install-recommends winehq-stable
Note that I could non install winehq-stable
directly and had to first install one of its dependencies manually. If you run into an error, then try to run the following command before installing winehq-stable
again:
sudo apt install libasound2-plugins:i386
I am using version iv.0.2 of wine
.
[Optional] Installing Firejail
Firejail has a special place in my heart. It allows to sandbox any program running on Linux using kernel capabilities (some of them yous might already know from Docker earth). From the official repository:
Firejail is a SUID sandbox program that reduces the risk of security breaches by restricting the running surroundings of untrusted applications using Linux namespaces, seccomp-bpf and Linux capabilities. It allows a process and all its descendants to have their own individual view of the globally shared kernel resources, such every bit the network stack, procedure table, mount table. Firejail can work in a SELinux or AppArmor environs, and it is integrated with Linux Command Groups.
There is an extra benefit in my opinion. You tin can specify a dissimilar directory to be used as the ~/
(home) folder of each program you run in a sandbox instead of your real habitation. This is keen because information technology allows to keep files and folders of each app nicely isolated. For instance I run thunderbird
, cliqz
and other programs in sandboxes and assign them dissimilar homes like ~/.sandboxes/thunderbird
, ~/.sandboxed/cliqz
, etc. This means that I tin clean-upwardly all files for each program by simply deleting their corresponding folders! That's super convenient.
Let'south get back to Diablo II! Install Firejail from your official Linux repositories (or compile it yourself if that'south your thing… that's what I did). I am currently running version 0.nine.61 but I assume this should piece of work with other versions besides.
Firejail comes with a preset for sandboxing wine which you tin find at /etc/firejail/wine.profile
. That's the ane we will be using!
Preparing Wine Home Binder
Let's now set the vino
binder that nosotros will use in our Firejail sandbox:
mkdir -p ~/.sandboxes/wine
Copy the ii downloaders into ~/.sandboxes/vino/
:
-
~/.sandboxes/wine/Downloader_Diablo2_enUS.exe
-
~/.sandboxes/vino/Downloader_Diablo2_Lord_of_Destruction_enUS.exe
Installing Diablo II
We can now proceed and install Diablo 2 base game:
firejail \ --contour=/etc/firejail/wine.profile \ --individual=~/.sandboxes/vino \ wine ~/Downloader_Diablo2_enUS.exe
Here are screenshots for each step of the installation process:
Press Back and so Exit Installer. Fourth dimension to install the extension!
Installing Lord of Destruction
firejail \ --profile=/etc/firejail/vino.profile \ --private=~/.sandboxes/wine \ wine ~/Downloader_Diablo2_Lord_of_Destruction_enUS.exe
I will spare you all the screenshots since the process is identical to the base version of the game. When yous are done, resist the damning temptation and get out the installer; there is one terminal thing we have to take care of…
Install Latest Patch
Earlier starting the game and finally start playing, you lot will want to install the latest patch for Diablo II: 1.14d. Usually it can exist washed past accessing Battle.net in-game only for some reason it failed in my case because of a corrupted file… Luckily, information technology's possible to download and install the update manually. Go it from the following link:
- LODPatch_114d.exe
Re-create it into your wine
home folder: ~/.sandboxes/vino/LODPatch_114d.exe
. Then start the update with:
firejail \ --profile=/etc/firejail/wine.profile \ --private=~/.sandboxes/wine \ vino ~/LODPatch_114d.exe
Allow's Play!
Finally, to launch the game you can apply the following command:
firejail \ --profile=/etc/firejail/wine.profile \ --private=~/.sandboxes/wine \ vino ~/.wine/drive_c/Program\ Files\ \(x86\)/Diablo\ II/Diablo\ II.exe
Have fun!
Source: https://remusao.github.io/posts/installing-diablo2-ubuntu-sandboxing.html
0 Response to "Invalid Path Choose One Again Diablo 2"
Post a Comment