For an update on how to enable OSS4 using Squeeze's main repositories, please see this
post also. OSS4 can be installed easily in Squeeze (with the default kernel) from Debian's main repository as posted in the linked topic. The prebuilt trial deb package from
here licensed under the 4Front Commercial License with a limited one-year license key works fine but the option of using the source code from the Mercurial repository seems inadvisable according to this
note:
Please note that this Mercurial (hg) repository should only be used by developers who would like to contribute to OSS. The OSS version contained in it is usually in the middle of intensive hacking and potentially dangerous. It must not be installed to any kind of production system or to a computer that contains important files.
I recommend anyone who's interested in trying OSS4 to install it from Debian's repositories but one can also compile a more up-to-date build if one wishes using the official GPLv2 OSS4 source code from the
download site: either the stable version -which is suitable for production use - (I used the stable
oss-v4.2-build2005-src-gpl.tar.bz2) version, or the testing version - for developers. I compiled and made, as an example, an
oss-linux-4.2-2005_amd64.deb on Squeeze + 2.6.38-bpo.2-amd64 which can also be easily installed in Wheezy/Sid with the 3.0.0-1-amd64 and no doubt other kernels but please see how to enable OSS4 below. The deb was made using this procedure:
Here's an example of how to compile OSS4 from the gpl'd source code: Note: Compilation of this source code will work in Stable but I have not tried it in Wheezy.
The following should take care of most, if not all the dependencies (Remember it's a good idea to simulate the command before installing by appending an -s, i.e.,
aptitude install -s first). As root:
- Code: Select all
# aptitude install binutils build-essential gawk gcc gstreamer0.10-plugins-bad libasound2-plugins libc6 libesd0 libtool libgtk2.0-0 libgtk2.0-dev libsdl1.2debian-all libsdl1.2debian-oss libsox-fmt-oss libwine-oss sed linux-headers-$(uname -r) mpg123 sed
The entire process is done as normal user:
- Code: Select all
$ wget http://www.4front-tech.com/developer/sources/stable/gpl/oss-v4.2-build2005-src-gpl.tar.bz2
$ tar -xjf oss-v4.2-build2005-src-gpl.tar.bz2
$ mkdir oss && cd oss
$ ../oss-v4.2-build2005-src-gpl/configure --enable-libsalsa=NO
$ make build
$ make deb
Note I had to use
--enable-libsalsa=NO to avoid the regparm error.
This makes an
oss-linux-4.2-2005_amd64.deb which will be found in /home/oss/.
To install:The deb can be installed easily with
# dpkg -i or preferably with the
gdebi package manager (just right-click on the package and open with gdebi) which will find any missing dependencies.
How to enable your system to use OSS4:To enable OSS4 it is further necessary to do:
- Code: Select all
$ su -
Password:
# gksu gedit /etc/asound.conf
Cut & paste the code below
- Code: Select all
pcm.oss {
type oss
device /dev/dsp
}
pcm.!default {
type oss
device /dev/dsp
}
ctl.oss {
type oss
device /dev/mixer
}
ctl.!default {
type oss
device /dev/mixer
}
Save and now remove ALSA and reconfigure the system to use OSS4:
- Code: Select all
# /etc/init.d/alsa-utils stop
# aptitude remove alsa-base alsa-utils
# dpkg-reconfigure linux-sound-base
Final note: it seems preferable to purge PulseAudio if previously installed.