Search This Blog

Showing posts with label wine. Show all posts
Showing posts with label wine. Show all posts

Install Starcraft on Ubuntu Linux 22.04 LTS

1. Enable 32 bit (i386) arcitecture

sudo dpkg --add-architecture i386

2. Install wine-staging

  • Add WineHQ gpg key
    wget -nv https://dl.winehq.org/wine-builds/winehq.key -O - | sudo apt-key add -
  • Add WineHQ repository
    sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main'
    sudo apt update
  • Install winehq-staging
    sudo apt install --install-recommends winehq-staging

wine-staging will be installed into /opt/wine-staging

3. Install required packages

sudo apt update
sudo apt install libgl1-mesa-glx:i386 libasound2:i386 libasound2-plugins:i386 libc6:i386 libncurses5:i386 libstdc++6:i386 libxtst6:i386 libldap-2.5-0:i386 libfreetype6:i386

4. Download StarCraft-Setup.exe

Download StarCraft-Setup.exe from https://us.battle.net/download/getInstaller?os=win&installer=StarCraft-Setup.exe

5. Install StarCraft

Run the commands below in a Terminal window to install StarCraft:

export WINEDLLPATH=/opt/wine-staging/lib/wine/fakedlls
export LD_LIBRARY_PATH="/opt/wine-staging/lib:$LD_LIBRARY_PATH"
WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine ./StarCraft-Setup.exe

While installation, you may be asked to install "Mono" and "Gecko" packages for the wine prefix.

6. Fix QT platform plugin error

Installation may be failed with error: This application failed to start because it could not find or load the QT platform plugin "Windows"


To work around this, you need to install attr package and use setfattr command to removed the atrribute: user.DOSATTRIB

6.1. Install attr package

sudo apt install attr

6.2. Remove file attribute

find "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net" -name qwindows.dll -exec setfattr -x user.DOSATTRIB {} \;
or
setfattr -x user.DOSATTRIB "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net/Battle.net.13894/platforms/qwindows.dll"
More details about this issue: see

6.3. Continue the installation

After removing the attribute, you can then continue the installation by executing the command below in the Terminal window:

WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net/Battle.net.exe"

7. Create StarCraft startup script

After installation, you can start StarCraft using the command below:

WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/StarCraft/x86/StarCraft.exe"
You can also create a wrapper script at ~/.local/bin/starcraft and add contents below
#!/bin/bash
export WINEDLLPATH=/opt/wine-staging/lib/wine/fakedlls
export LD_LIBRARY_PATH="/opt/wine-staging/lib:$LD_LIBRARY_PATH"
WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/StarCraft/x86/StarCraft.exe"
You need to make the script executable:
chmod +x ~/.local/bin/starcraft


You can now start StarCraft with command
starcraft


See also

Install StarCraft BroodWar on Ubuntu Linux 20.04 LTS

Install Starcraft on Ubuntu Linux 22.04

1. Enable 32 bit (i386) arcitecture

sudo dpkg --add-architecture i386

2. Install wine-staging

  • Add WineHQ gpg key
    wget -nv https://dl.winehq.org/wine-builds/winehq.key -O - | sudo apt-key add -
  • Add WineHQ repository
    sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
    sudo apt update
  • Install winehq-staging
    sudo apt install --install-recommends winehq-staging

wine-staging will be installed into /opt/wine-staging

3. Install required packages

sudo apt update
sudo apt install libgl1-mesa-glx:i386 libasound2:i386 libasound2-plugins:i386 libc6:i386 libncurses5:i386 libstdc++6:i386 libxtst6:i386 libldap-2.4-2:i386 libfreetype6:i386

4. Download StarCraft-Setup.exe

Download StarCraft-Setup.exe from https://us.battle.net/download/getInstaller?os=win&installer=StarCraft-Setup.exe

5. Install StarCraft

Run the commands below in a Terminal window to install StarCraft:

export WINEDLLPATH=/opt/wine-staging/lib/wine/fakedlls
export LD_LIBRARY_PATH="/opt/wine-staging/lib:$LD_LIBRARY_PATH"
WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine ./StarCraft-Setup.exe

While installation, you may be asked to install "Mono" and "Gecko" packages for the wine prefix.

6. Fix QT platform plugin error

Installation may be failed with error: This application failed to start because it could not find or load the QT platform plugin "Windows"


To work around this, you need to install attr package and use setfattr command to removed the atrribute: user.DOSATTRIB

6.1. Install attr package

sudo apt install attr

6.2. Remove file attribute

find "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net" -name qwindows.dll -exec setfattr -x user.DOSATTRIB {} \;
or
setfattr -x user.DOSATTRIB "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net/Battle.net.13894/platforms/qwindows.dll"
More details about this issue: see

6.3. Continue the installation

After removing the attribute, you can then continue the installation by executing the command below in the Terminal window:

WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net/Battle.net.exe"

7. Create StarCraft startup script

After installation, you can start StarCraft using the command below:

WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/StarCraft/x86/StarCraft.exe"
You can also create a wrapper script at ~/.local/bin/starcraft and add contents below
#!/bin/bash
export WINEDLLPATH=/opt/wine-staging/lib/wine/fakedlls
export LD_LIBRARY_PATH="/opt/wine-staging/lib:$LD_LIBRARY_PATH"
WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/StarCraft/x86/StarCraft.exe"
You need to make the script executable:
chmod +x ~/.local/bin/starcraft


You can now start StarCraft with command
starcraft


See also

MS Office in WINE: how to print to PDF

  • install cups-pdf:
    sudo apt-get install cups-pdf; mkdir ~/PDF
  • if the above does not work, try install the office extension
    WINEPREFIX="$HOME/.wine" wine SaveAsPDFandXPS.exe

See also

Debian Wheezy: Install Microsoft Office 2007 (via WINE)

  1. Install wine and winetricks:
    sudo apt-get install wine winetricks
  2. Download msxml3.msi from cnet.com.
  3. Move msxml3.msi to ~/.cache/winetricks/msxml3:
    mkdir -p ~/.cache/winetricks/msxml3; mv ~/Downloads/msxml3.msi ~/.cache/winetricks/msxml3/
  4. Install msxml3.msi:
    winetricks msxml3
  5. Locate the setup.exe file from the Microsoft Office 2007 installation media/directory and run it with wine:
    wine /path/to/MSOffice2007/setup.exe

Install microsoft office 2007 on Ubuntu Linux 13.10

  1. Install playonlinux:
    sudo apt-get install playonlinux curl p7zip-full
  2. Run playonlinux:
    playonlinux
  3. Click Install then in the new dialog window, select Office then select Microsoft Office 2007 in the list.
  4. Follow the instructions to insert your office 2007 disc to install.