- Estimated Completion Time: approximately 30 minutes
- Required Experience: If you can install your own games, you can follow these instructions.
- Optional Changes: You can try replacing Linux+Wine with a real Windows 95/98 install CD if you own one.
- Reassurances:
- These instructions use the terminal because it's easier to instruct reliably, not because it's required.
- I've worked hard to split the instructions and explanations apart. If you just want the steps to follow, ignore the indented points unless instructed otherwise.
- Install VirtualBox (a free, open-source competitor to VMWare).
- If you're on Windows, you want
... for Windows hosts
underVirtualBox platform packages
- If you're on Windows, you want
- Go to the Lubuntu Linux website and
Download lubuntu (Intel x86) desktop CD
.- I tested with the Lubuntu 15.04 ISO because it was current at the time this was written (July 2015).
- I chose Lubuntu because it's Ubuntu-based, so it's easy to install, and it's small and lightweight, which we want since we don't plan on running a full desktop.
- You want the 32-bit version because we'll be using a 32-bit Wine setup for maximum compatibility and a 64-bit desktop would waste memory doing only that.
- Launch VirtualBox, click
New
in the toolbar, and use the wizard with the following noteworthy settings:- Select
Linux
andUbuntu (32-bit)
from theType
andVersion
drop-downs. - Choose
VDI (VirtualBox Disk Image)
andDynamically allocated
from the hard drive section of the wizard.- This is so the disk image won't take up its full size on disk until the first time you actually fill it.
- Select
- Select the new VM and click
Start
in the toolbar. - Use the wizard to select the Lubuntu CD ISO.
- The
Select start-up disk
wizard appears only the first time you boot a new VM. It's intended to streamline inserting an OS install disc into the virtual PC.
- The
- Use the arrow keys to choose
Install Lubuntu
from the CD's boot menu.- You may see some error messages during startup. They're harmless "We tried to enable optional hardware that VirtualBox doesn't fake" errors.
- It's also safe to use
Try Lubuntu without installing
. It'll boot off the CD and the installer will be available as a desktop shortcut.
- Work your way through the Lubuntu install wizard as follows:
- I left
Download updates while installing
andInstall this third-party software
unchecked since the packages on the disc are enough to run PlayOnLinux and it saves time. - Choose
Erase disk and install Lubuntu
(It's talking about the virtual hard drive) - Choose
Log in automatically
on theWho are you?
page of the wizard - Wait for it to download security-critical updates and complete the install. (maybe 5 minutes)
- Choose to restart. (The CD's auto-eject doesn't always get along with VirtualBox, so you may get stuck at some errors and have to choose
Machine > Reset
from the menus)
- I left
- It should now boot into a Lubuntu desktop similar to Windows XP and earlier.
- You may encounter error messages during the boot process. These should be Lubuntu harmlessly complaining that VirtualBox's virtual CPU doesn't implement features like performance counters.
- Within a minute of the boot process completing, you should receive an updates dialogue. It's your choice whether you apply them. I just used the Settings button to set
Automatically check for updates
andNotify me of a new Ubuntu version
toNever
. (It's a VM. By default, it's behind a second layer of NAT and we're only running one game on it.)
-
Open up a terminal window (
System Tools > LXTerminal
in the "start menu") and run the following command:sudo apt-get install virtualbox-guest-dkms virtualbox-guest-x11 -y
(It will ask for the password you set during the Lubuntu install in order to gain adiminstrator privileges)
-
Once the prompt (
username@hostname:~$
) returns, run the following to grant yourself shared folders permissions:sudo gpasswd -a "$USER" vboxsf
-
choose
Devices > Shared Clipboard > Bidirectional
from the VirtualBox menus. -
From the "start menu", choose
Logout
and pickShutdown
- With the VM shut down, choose
Settings
from the toolbar in the main VirtualBox window - Choose
Display
and drag theVideo Memory
slider to128 MB
- 128MiB is the most you can ask for without enabling 3D acceleration and I can't enable 3D acceleration at the moment due to a messed up VirtualBox install.
- Click OK.
- Start the VM back up
-
Open up a terminal window (See Step 2) and copy-paste the following commands (one at a time because "sudo" will trigger a password prompt):
sudo add-apt-repository ppa:ubuntu-wine/ppa -y sudo apt-get update sudo apt-get install wine -y
-
Accept the
TrueType core fonts for the Web EULA
usingTab
andEnter
. (OK
andYes
) -
When the
username@hostname:~$
prompt returns, open Firefox in Lubuntu and go to Download PlayOnLinux.- The version of PlayOnLinux included with Lubuntu is usually out of date.
-
Click
Ubuntu
underPackages
and then click the link underDeb files
.deb
is like.msi
for Debian/Ubuntu/Mint Linux
-
Choose
Open with: GDebi Package Installer
and click OK -
In GDebi, close the
An older version is available in a software channel
warning and clickInstall Package
. -
It will ask for your password to grant the install process administrator privileges.
-
When it says
Installation finished
, close that dialog, thePackage Installer
window, and Firefox. -
From the "start menu", choose
Games > PlayOnLinux
. -
Answer the
Can we gather anonymous stats?
dialog however you want. -
When the PlayOnLinux window appears, wait for
Refreshing PlayOnLinux
to go away at the bottom of the window. -
Close PlayOnLinux.
- Right now, what we wanted was for it to write default config files to your user profile.
-
Open up a terminal window and copy-paste the following to remove all unneeded desktop apps:
sudo apt-get purge -y pidgin* sylpheed* transmission* abiword* gnumeric* guvcview* audacious* gnome-mplayer xfburn xpad mtpaint simple-scan libsane gpicview galculator gnome-disk-utility sudo apt-get autoremove -y
-
Copy-paste this command to clear out cached
.deb
packagessudo apt-get clean -y
-
Select your preferred icon and cursor themes via
Preferences > Customize Look and Feel
-
Open
System Tools > Synaptic Package Manager
and use the search feature to find and remove themes you don't want -
If you're comfortable working in
cmd.exe
, you can google for instructions on shrinking theVDI
file (I didn't bother)- Shrinking the VDI file releases the freed space back to your OS.
- If the instructions are written for Linux, you'll need to replace
VBoxManage
withC:\Program Files\Oracle\VirtualBox\VBoxManage.exe
and so on.
- Choose
Logout
andShutdown
. - Once the virtual machine is shut down, select it in the main VirtualBox window and click
Snapshots
in the top-right corner - Click the Camera (Take Snapshot) in the lower toolbar and give it a name like
Base OS
. - Start the virtual machine back up
- Just use Firefox in the VM to download your installer from GOG like normal
- Choose
Devices > Shared Folder Settings
from the VirtualBox menu - Click the
Add Share
toolbar button on the right side (a folder with a plus sign) - Browse to find the place you saved Icewind Dale 2's installer.
- Make sure you choose "Auto-mount", then Click OK on both windows.
- Manual mounting is currently a hassle under Lubuntu
- Choose
Logout
andReboot
to apply the auto-mount- ...but don't power the VM off if you didn't also check
Permanent
- ...but don't power the VM off if you didn't also check
- If you open the file manager, you should be able to find the shared folder in
/media
- Linux uses
/
instead of\
in paths. In fact, everything does except Windows, which is stuck with\
because, in the days when DOS used only floppy disks and didn't support folders, they chose to use syntax like/?
instead of-h
for passing options to commands. - On Linux, there's no
C:
andD:
. All of your drives are part of one big virtual drive so that, if you want to move your growing games folder to its own drive, you just move your stuff over and then "mount" your new drive at the old location. Your programs don't even know anything changed.
- Linux uses
- Open PlayOnLinux (
Games > PlayOnLinux
in the "start menu") - Click
Install
in the toolbar and thenGames
along the top - Choose
GOG.com - Icewind Dale II Complete
from the list and clickInstall
- Follow the install wizard's instructions and select your
setup_icewind_dale_2.exe
when prompted.- Note: The version of Wine the PlayOnLinux guys chose causes minor visual glitches in the GOG installer but it's harmless.
- When it says
Your installation is complete!
clickExit Installer
- PlayOnLinux needs to make some configuration adjustments after the install but before you run the game
- When PlayOnLinux asks
How much memory does your graphics board have?
, choose128
- It's the virtual GPU that it's asking about
- When the install process completes, try launching Icewind Dale
- Note: On my system, there were hiccups during the opening videos but that could just be the game trusting my audio system to be a reliable timing source when it's actually glitchy. (I really need to reinstall this system)
- If you do get glitches on the intro videos, just click through them.
IMPORTANT: There are some gotchas to installing Bigg's Widescreen Mod into Icewind Dale 2 under Wine and, if you don't work around them, your Icewind Dale 2 install will crash on startup and you'll have to delete it (either via the PlayOnLinux manager or by rolling back to your snapshot) and redo Step 5 to get it back into working order. I didn't have time to also write and test step-by-step instructions to work around those gotchas so my advice is to not mod Icewind Dale 2 while running it this way.
-
Run the following in a terminal window
sudo apt-get install ratpoison
- Unlike Windows, Linux has many different "window managers" to choose from. Ratpoison is a window manager which fullscreens one window at once rather than drawing a titlebar and letting you drag and resize things.
-
Using the Run dialog (Alt-F2), run
gksudo leafpad /usr/share/xsessions/iwd2.desktop
and copy paste this in:[Desktop Entry] Name=Icewind Dale 2 Comment=Start straight into Icewind Dale 2 Exec=/bin/sh /usr/bin/iwd2-session Type=Application
- This adds a new entry to the login screen's desktop type selector.
- We use this because, since you chose
Log in automatically
while installing Lubuntu, it will boot straight into whatever you logged into last.
-
Repeat the previous step with
gksudo leafpad /usr/bin/iwd2-session
and the following:xsetroot -solid black & /usr/bin/ratpoison & /usr/share/playonlinux/playonlinux --run "Icewind Dale II"
- Desktop sessions are defined by a script like this which launches all of the bits and pieces (eg. taskbar, desktop, window manager, etc.) and then waits for them to exit. When the script quits, you return to the login screen.
- This script defines our custom desktop as "set the background to pure black, launch ratpoison to handle window fullscreening, and then launch Icewind Dale 2."
- The
&
at the end of the first two lines means "run in the background" (ie. Don't wait for it to exit before continuing to the next line) so this desktop session will wait for Icewind Dale 2 to exit and then return to the login screen. - If you want to do this with another game, you can get the last line from the Preferences dialogs for the desktop launcher icons PlayOnLinux creates.
-
Repeat the previous step with
leafpad .ratpoisonrc
set border 0 startup_message off echo Starting Icewind Dale II...
- The first line removes the one-pixel border Ratpoison normally draws around windows.
- The other two lines replace the default
Welcome to Ratpoison. For help, type...
message.
-
Choose
Logout
from the "start menu" and then clickLogout
-
Click the leftmost icon in the top-right corner of the login screen and choose
Icewind Dale 2
- If it's not present, then the display manager (the thing which draws the login screen) didn't notice your changes. The easiest fix is to the power icon in the top-right corner to reboot the VM and then re-logout.
-
Log back in
-
The auto-login will now go directly to Icewind Dale 2
- Right-click the VM in the main VirtualBox window and choose Create Shortcut on Desktop
- Right-click the resulting icon and use the preferences dialog to change the icon
- I didn't have time to give instructions for copying the icon from the Lubuntu VM. Sorry.
Note: You could add a "halt" line to the end of /usr/bin/iwd2-session
to shutdown the VM rather than returning to the login screen (making shutdown behave like a native app too), but then you'd need some skill to access the desktop if something breaks. Instead, just use Machine > Close > Save the machine state
to shut down so you get "suspend and resume from any point" behaviour similar to emulators on Android.