Page 1 of 2

OSS4 Installation

PostPosted: Wed Nov 02, 2011 7:18 pm
by Hawks-SOAD
Due to Ubuntu not updating and fixing bugs in the OSS4 repo packages we are not going to use them

Please Note This Is For People Having Problems With Alsa/Pulseaudio and Might Not Work With Newer Cards

Building From Mercurial

First Blacklist the Alsa Modules
Code: Select all
sudo dpkg-reconfigure linux-sound-base
and choose OSS

Next Uninstall Pulseaudio
Code: Select all
sudo apt-get purge pulseaudio


Next Grab Some Required Packages For The Build
Code: Select all
sudo apt-get install -y binutils libgtk2.0-0 sed gcc libc6
sudo apt-get install -y build-essential linux-headers-`uname -r` gawk libtool libgtk2.0-dev
sudo apt-get install -y libesd0 libsdl1.2debian-oss
sudo apt-get install -y mercurial


grab the source and put it into the opt directory
Code: Select all
cd /opt
sudo hg clone http://opensound.hg.sourceforge.net/hgweb/opensound


Nows It Is Time To Build
Make The Build Directory
Code: Select all
cd ~/
sudo rm -rf oss42build
mkdir oss42build
cd oss42build/


Build And Install
Code: Select all
NO_WARNING_CHECKS=yes /opt/opensound/configure --enable-libsalsa=NO
make
sudo make deb
sudo dpkg -i oss*.deb

If All Went Well OSS4 is Now Installed
Reboot

Once Rebooted run this
Code: Select all
osstest
in your terminal



Now To Make a Volume Applet
First Download The Attached File
volwheel-0.2.7-fixed.tar.gz
(38.33 KiB) Downloaded 274 times

Extract it Anywhere That You Please

Go to Your Terminal And Change Directory into the one you just extracted
In my Case
Code: Select all
cd Downloads
cd volwheel-0.2.7-fixed


next run the install command as root
Code: Select all
sudo su
./install.pl


if all went well the volume applet will be installed if not you may be needing these
Code: Select all
sudo apt-get install -y libgtk2-trayicon-perl libgtk2-perl


Ok now that the Volume Control is Installed load the StartUp Applications in
Code: Select all
Applications > Other > Startup Applications

Code: Select all
Click Add Give it a Name (Volume will do) then in command write "volwheel"

Ok now it is safe to reboot.

Once Rebooted you will notice the volume applet already loaded in the top panel.
Now time to Configure it
Code: Select all
Right-Click on it > Preferences >
Driver = OSS,
Default Channel = vmix0-outvol,
Default Mixer = OSSXMIX


One Last thing make Alsa Apps go through oss4
Code: Select all
gedit ~/.asoundrc

Insert
Code: Select all
pcm.!default
 {
   type oss
   device /dev/dsp
 }
 mixer.!default
 {
   type oss
   device /dev/dsp
 }

now click save
Now you should be good to go, you can change the icon look in the preferences as well :D
Hope you enjoy using oss4!!

You May Need to Configure some apps to use oss4
http://www.opensound.com/wiki/index.php ... _for_OSSv4
Clementine Works Out of the box :D


If you are having problems with OSS4 or just want Alsa/Pulse back follow the rest of this guide to get it back

Unblacklist the Alsa Modules

Code: Select all
sudo dpkg-reconfigure linux-sound-base


and choose ALSA

Remove OSS4

Code: Select all
sudo soundoff
sudo dpkg -r oss-linux


Reinstall Pulseaudio

Code: Select all
sudo apt-get install pulseaudio


Remove The Asoundrc File
Code: Select all
rm ~/.asoundrc


Reboot and it should be back to the way it was :D

Re: OSS4 Installation

PostPosted: Wed Nov 02, 2011 7:20 pm
by pclinuxguru
A truly fine job.

Tested as working in Ultimate Edition 3.2 RC correct ?

Re: OSS4 Installation

PostPosted: Wed Nov 02, 2011 7:24 pm
by Hawks-SOAD
yup will include some helpfull links later :D

Re: OSS4 Installation

PostPosted: Wed Nov 02, 2011 11:02 pm
by billhedrick
great! I have been waiting for this to install 3.2. thanks muchly!

Re: OSS4 Installation

PostPosted: Thu Nov 03, 2011 7:25 pm
by Hawks-SOAD
billhedrick wrote:great! I have been waiting for this to install 3.2. thanks muchly!


no problem, you tested it yet? tell me how it goes :)

Re: OSS4 Installation

PostPosted: Mon Nov 14, 2011 11:43 pm
by billhedrick
ok I get this far
billh@improbabilityDrive:~/oss42build$ NO_WARNING_CHECKS=yes /opt/oss-devel/configure --enable-libsalsa=NO
bash: /opt/oss-devel/configure: No such file or directory
billh@improbabilityDrive:~/oss42build$ make
make: *** No targets specified and no makefile found. Stop.


That looks like a fail to me

Re: OSS4 Installation

PostPosted: Tue Nov 15, 2011 4:01 am
by Hawks-SOAD
crap sorry forgot a whole step in there lol will fix in a min :D

Re: OSS4 Installation

PostPosted: Tue Nov 15, 2011 9:19 am
by Hawks-SOAD
ok fixed try it from the start should work now

Re: OSS4 Installation

PostPosted: Tue Nov 15, 2011 7:20 pm
by billhedrick
Nope still no love, here is the whole story

billh@improbabilityDrive:~$ sudo dpkg-reconfigure linux-sound-base
[sudo] password for billh:
billh@improbabilityDrive:~$ sudo apt-get purge pulseaudio
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package pulseaudio is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
billh@improbabilityDrive:~$ sudo apt-get install -y binutils libgtk2.0-0 sed gcc libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version.
libc6 is already the newest version.
libgtk2.0-0 is already the newest version.
sed is already the newest version.
binutils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
billh@improbabilityDrive:~$ sudo apt-get install -y build-essential linux-headers-`uname -r` gawk libtool libgtk2.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
gawk is already the newest version.
libgtk2.0-dev is already the newest version.
libtool is already the newest version.
linux-headers-3.0.0-13-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
billh@improbabilityDrive:~$ sudo apt-get install -y libesd0 libsdl1.2debian-oss
Reading package lists... Done
Building dependency tree
Reading state information... Done
libesd0 is already the newest version.
libsdl1.2debian-oss is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
billh@improbabilityDrive:~$ sudo apt-get install -y mercurial
Reading package lists... Done
Building dependency tree
Reading state information... Done
mercurial is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
billh@improbabilityDrive:~$ cd /opt
billh@improbabilityDrive:/opt$ sudo hg clone http://opensound.hg.sourceforge.net/hgweb/opensound
real URL is http://opensound.hg.sourceforge.net:800 ... /opensound
destination directory: opensound
requesting all changes
adding changesets
adding manifests
adding file changes
added 943 changesets with 4267 changes to 1396 files
updating to branch default
885 files updated, 0 files merged, 0 files removed, 0 files unresolved
billh@improbabilityDrive:/opt$ cd ~/
billh@improbabilityDrive:~$ sudo rm -rf oss42build
billh@improbabilityDrive:~$ mkdir oss42build
billh@improbabilityDrive:~$ cd oss42build/
billh@improbabilityDrive:~/oss42build$ NO_WARNING_CHECKS=yes /opt/oss-devel/configure --enable-libsalsa=NO
bash: /opt/oss-devel/configure: No such file or directory
billh@improbabilityDrive:~/oss42build$ make
make: *** No targets specified and no makefile found. Stop.
billh@improbabilityDrive:~/oss42build$

Re: OSS4 Installation

PostPosted: Tue Nov 15, 2011 9:11 pm
by Hawks-SOAD
dam i keep getting the directory wrong can ya jump on irc when ya have time but i have edited the intructions again so try again after the grabbing sources stage