Difference between revisions of "Linux games"
Line 19: | Line 19: | ||
* Blizzard official doc: https://us.battle.net/support/en/article/firewall-proxy-router-and-port-configuration | * Blizzard official doc: https://us.battle.net/support/en/article/firewall-proxy-router-and-port-configuration | ||
* [[Firewall OUTPUT filters#Diablo 3|Firewall configuration]] | * [[Firewall OUTPUT filters#Diablo 3|Firewall configuration]] | ||
+ | |||
+ | |||
+ | '''installation''' | ||
+ | |||
+ | Very good tutorial: http://www.sysads.co.uk/2014/08/install-diablo-3-on-ubuntu-14-04/ | ||
Line 26: | Line 31: | ||
− | ''' | + | '''Sound fix''' |
+ | |||
+ | If your sound is cracky or if you don't have any sound... | ||
+ | |||
+ | <syntaxhighlight lang="bash"> | ||
+ | sudo vim /etc/pulse/default.pa | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | 1. Comment the following lines if they are not already commented: | ||
+ | <syntaxhighlight lang="apache"> | ||
+ | ## Ensure following lines are commented | ||
+ | #load-module module-alsa-sink | ||
+ | #load-module module-alsa-source device=hw:1,0 | ||
+ | |||
+ | ## Comment the following block | ||
+ | .ifexists module-udev-detect.so | ||
+ | load-module module-udev-detect | ||
+ | .else | ||
+ | ### Use the static hardware detection module (for systems that lack udev support) | ||
+ | load-module module-detect | ||
+ | .endif | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | 2. Use the following configuration instead | ||
+ | <syntaxhighlight lang="apache"> | ||
+ | ## Wine hook | ||
+ | load-module module-alsa-sink device=dmix | ||
+ | load-module module-alsa-source device=dsnoop | ||
+ | |||
+ | # Automatically load the correct driver | ||
+ | load-module module-udev-detect | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | From now on your wine can use pulseaudio. You need to create a configuration file: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | vim ~/.asoundrc | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Put the following content: | ||
+ | <syntaxhighlight lang="cpp"> | ||
+ | pcm.!default { | ||
+ | @func refer | ||
+ | name { @func concat | ||
+ | strings [ "pcm." | ||
+ | { @func getenv | ||
+ | vars [ ALSA_DEFAULT_PCM ] | ||
+ | default "pulse" | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | |||
+ | ctl.!default { | ||
+ | @func refer | ||
+ | name { @func concat | ||
+ | strings [ "ctl." | ||
+ | { @func getenv | ||
+ | vars [ ALSA_DEFAULT_CTL | ||
+ | ALSA_DEFAULT_PCM | ||
+ | ] | ||
+ | default "pulse" | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | Restart pulseaudio | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | pulseaudio -k | ||
+ | pulseaudio --start | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | *Test your system sound (= play a music track) | ||
+ | * Test wine sound: | ||
+ | ** <syntaxhighlight lang="bash">ALSA_DEFAULT_PCM="plug:dmix" winecfg</syntaxhighlight> | ||
+ | ** Go to the Audio tab, click "Test Sound" | ||
+ | ** If you hear the sound, and see messages like "The dmix plugin supports only playback stream", it's working. | ||
− | |||
Revision as of 09:38, 30 August 2015
On-line gaming
Commercial games
Diablo3
requirement
You need to open some specific ports to play Diablo3.
- Blizzard official doc: https://us.battle.net/support/en/article/firewall-proxy-router-and-port-configuration
- Firewall configuration
installation
Very good tutorial: http://www.sysads.co.uk/2014/08/install-diablo-3-on-ubuntu-14-04/
graphic fix (ATI)
http://workinginavirtualspace.blogspot.com/2014/05/playonlinux-and-diablo-3-ros-get-past.html
Sound fix
If your sound is cracky or if you don't have any sound...
sudo vim /etc/pulse/default.pa
1. Comment the following lines if they are not already commented:
## Ensure following lines are commented
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
## Comment the following block
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif
2. Use the following configuration instead
## Wine hook
load-module module-alsa-sink device=dmix
load-module module-alsa-source device=dsnoop
# Automatically load the correct driver
load-module module-udev-detect
From now on your wine can use pulseaudio. You need to create a configuration file:
vim ~/.asoundrc
Put the following content:
pcm.!default {
@func refer
name { @func concat
strings [ "pcm."
{ @func getenv
vars [ ALSA_DEFAULT_PCM ]
default "pulse"
}
]
}
}
ctl.!default {
@func refer
name { @func concat
strings [ "ctl."
{ @func getenv
vars [ ALSA_DEFAULT_CTL
ALSA_DEFAULT_PCM
]
default "pulse"
}
]
}
}
Restart pulseaudio
pulseaudio -k
pulseaudio --start
- Test your system sound (= play a music track)
- Test wine sound:
ALSA_DEFAULT_PCM="plug:dmix" winecfg
- Go to the Audio tab, click "Test Sound"
- If you hear the sound, and see messages like "The dmix plugin supports only playback stream", it's working.
Open source games
Linux has some very good games too !
- 0AD : Open-Source Age of Empires with much, much better graphics! See http://play0ad.com/
- OpenRA : Open-Source Red Alert Command & Conquer. See http://www.openra.net/
- Xonotic : really good FPS. http://www.xonotic.org/