Battle net linux ubuntu

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

BeanGreen247/Battle.net_Linux_install_guide

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Install wine-staging. To do so follow the guide

https://wiki.winehq.org/Download 

For Ubuntu run these commands first

sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' 

Next update your packages

sudo apt install -y libc6 libgcc1 libglib2.0-0 libgphoto2-6 libgphoto2-port12 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 liblcms2-2 libldap-2.4-2 libmpg123-0 libopenal1 libpulse0 libudev1 libx11-6 libxext6 libxml2 zlib1g libasound2-plugins libncurses5 libcapi20-3 libcups2 libdbus-1-3 libfontconfig1 libfreetype6 libglu1-mesa libgnutls30 libgsm1 libgssapi-krb5-2 libgtk-3-0 libkrb5-3 libncurses5 libodbc1 libosmesa6 libpcap0.8 libpng16-16 libsane1 libsdl2-2.0-0 libtiff5 libv4l-0 libva-drm2 libva-x11-2 libva2 libvulkan1 libxcomposite1 libxcursor1 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 libxslt1.1 libxxf86vm1 gnutls-bin cabextract sudo apt install -y libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386 
sudo apt install --install-recommends winehq-staging 

For Debian 10 run these commands first

sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/winehq.key wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key sudo apt-key add winehq.key sudo apt-key add Release.key sudo apt-add-repository contrib 

Next open your /etc/apt/sources.list file and add to the end of the file

deb https://dl.winehq.org/wine-builds/debian/ buster main deb-src https://dl.winehq.org/wine-builds/debian/ buster main deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./ 

Next update your packages

sudo apt install -y libc6 libgcc1 libglib2.0-0 libgphoto2-6 libgphoto2-port12 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 liblcms2-2 libldap-2.4-2 libmpg123-0 libopenal1 libpulse0 libudev1 libx11-6 libxext6 libxml2 zlib1g libasound2-plugins libncurses5 libcapi20-3 libcups2 libdbus-1-3 libfontconfig1 libfreetype6 libglu1-mesa libgnutls30 libgsm1 libgssapi-krb5-2 libgtk-3-0 libkrb5-3 libncurses5 libodbc1 libosmesa6 libpcap0.8 libpng16-16 libsane1 libsdl2-2.0-0 libtiff5 libv4l-0 libva-drm2 libva-x11-2 libva2 libvulkan1 libxcomposite1 libxcursor1 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 libxslt1.1 libxxf86vm1 gnutls-bin cabextract sudo apt install -y libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386 
sudo apt install --install-recommends winehq-staging 

For Arch Linux go and open your terminal. We will need to edit the pacman.conf file

Читайте также:  Разрешить запуск скрипта linux

Scroll down and find where it starts saying [testing], [core], [extra], [community] and so on. Make sure to remove «#» at he beginning of the line so it looks like this.

# The testing repositories are disabled by default. To enable, uncomment the # repo name header and Include lines. You can add preferred servers immediately # after the header, and they will be used before the default mirrors. [testing] Include = /etc/pacman.d/mirrorlist [core] Include = /etc/pacman.d/mirrorlist [extra] Include = /etc/pacman.d/mirrorlist [community-testing] Include = /etc/pacman.d/mirrorlist [community] Include = /etc/pacman.d/mirrorlist # If you want to run 32 bit applications on your x86_64 system, # enable the multilib repositories as required here. [multilib-testing] Include = /etc/pacman.d/mirrorlist [multilib] Include = /etc/pacman.d/mirrorlist # An example of a custom package repository. See the pacman manpage for # tips on creating your own repositories. #[custom] #SigLevel = Optional TrustAll #Server = file:///home/custompkgs 
sudo pacman -Sy wine-staging 

And lastly install all of these packages

sudo pacman -Sy giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader cups samba alsa alsa-utils alsa-tools gnutls libpng wine-mono lib32-libxml2 lib32-mpg123 lib32-lcms2 lib32-giflib lib32-libpng lib32-gnutls pygtk python2-dbus lib32-libpulse lib32-fontconfig lib32-libxcomposite lib32-libxrender lib32-libxslt lib32-gnutls lib32-libxi lib32-libxrandr lib32-libxinerama lib32-libcups lib32-freetype2 lib32-libpng lib32-openal python-pyopencl lib32-v4l-utils lib32-libxcursor lib32-mpg123 lib32-sdl xf86-video-intel lib32-mesa-libgl nss-mdns --needed --noconfirm 

With that please reboot and proceed with the guide

Create the main directory (we will be using this directory for all the configurations and tweaks. may be different in your case)

sudo mkdir /home/usernamehere/Games/battlenet-wine-prefix 
sudo WINEPREFIX=/home/usernamehere/Games/battlenet-wine-prefix WINEARCH=win64 winecfg 
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks chmod +x winetricks sudo mv -v winetricks /usr/local/bin 
sudo WINEPREFIX=/home/usernamehere/Games/battlenet-wine-prefix WINEARCH=win64 winetricks -q --force dotnet48 vcrun2003 vcrun2005 vcrun2008 vcrun2012 vcrun2013 directplay 
sudo WINEPREFIX=/home/usernamehere/Games/battlenet-wine-prefix WINEARCH=win64 winetricks sound=alsa cat > dsound.reg  

Download Battlenet Launcher

Extract dxvk-1.7.1.tar.gz and copy its contents

sudo cp -r dxvk-1.7.1/x64/* /mnt/84C2FF4EC2FF42CA/battlenet-wine-prefix/drive_c/windows/system32/ sudo cp -r dxvk-1.7.1/x32/* /mnt/84C2FF4EC2FF42CA/battlenet-wine-prefix/drive_c/windows/system/ 
sudo WINEPREFIX=/home/usernamehere/Games/battlenet-wine-prefix/ WINEARCH=win64 winecfg - Set Windows version to Windows 7 if not done already - Go to libraries and add >>d3d10 >>d3d10_1 >>d3d10core >>d3d11 >>d3d12 >>d3d8 >>d3d9 >>dxgi - Set them to native and click apply - Next go to graphics tick "Allow the window manager to control the windows" - Next go to Staging and tick the first four 

Then launch it using the following command

sudo WINEPREFIX=/home/usernamehere/Games/battlenet-wine-prefix/ WINEARCH=win64 wine ~/Downloads/directx_Jun2010_redist.exe 

It will aske where to install. Pick C:\

Once done launch the installer

sudo WINEPREFIX=/home/usernamehere/Games/battlenet-wine-prefix/ WINEARCH=win64 wine /home/usernamehere/Games/battlenet-wine-prefix/drive_c/DXSETUP.exe 

Once finished with the install continue.

Install the Battlenet Launcher

sudo WINEPREFIX=/home/usernamehere/Games/battlenet-wine-prefix/ WINEARCH=win64 wine ~/Downloads/Battle.net-Setup.exe 

After installing please continue

Create a custom terminal command for launching Battlenet Launcher!

Create a custom terminal command for killing Battlenet Launcher!

Make the commands executable and make them accesable from the terminal

sudo mv battlenet /usr/bin/ sudo chmod +x /usr/bin/battlenet sudo mv battlenetkill /usr/bin/ sudo chmod +x /usr/bin/battlenetkill 

If you get any error related to Windows, dlls missing or exes missing, just remove the prefix folder and start again

sudo rm -rf /home/usernamehere/Games/battlenet-wine-prefix 

If the game refuses to run make sure to test if X11 allows you to open any app as root.

X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 10 (X_UnmapWindow) Resource id in failed request: 0x1a00001 Serial number of failed request: 293 Current serial number in output stream: 296 

Make sure to run the game in virtual desktop

Источник

Оцените статью
Adblock
detector