Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old May 25th, 2006   #1
Roner
5 Cups of Ubuntu
 
Join Date: Apr 2006
Beans: 26
VMPlayer and ALSA

I have had a nagging problem with VMPlayer: it uses OSS for sound. That means that unless OSS is enabled and loaded, I get the annoying /dev/dsp not found message when the player starts; as I was moving to Dapper, many updates broke OSS and made the problem reappear. Additionally, this means that while another application is using OSS and the player tries to access it, it will hang with an error message.

To enable OSS to begin with, follow the first section of this thread:
http://www.ubuntuforums.org/showthre...light=oss2jack

The best solution for me was adapted from this thread on the vmware forums; it uses the alsa-oss package and enables VMPlayer to use ALSA for sound.

1. Install VMPlayer and create your image. I was greatly helped by this guide; browse the rest of the thread for instructions on using qemu without wine.

After you have a working image and preliminary installation of the guest OS:

2. Get the alsa-oss package:
Code:
sudo apt-get install alsa-oss
3. Ensure that the /usr/lib/libaoss.so.0.0.0 library is setuid:
Code:
sudo chmod +s /usr/lib/libaoss.so.*
4. Rename the VMPlayer bin file:
Code:
sudo mv /usr/bin/vmplayer /usr/bin/vmplayerorig
5. Create a new VMPlayer bin file:
Code:
sudo vi /usr/bin/vmplayer
Copy and paste the following into the file:
Code:
#!/bin/bash
LD_PRELOAD=libaoss.so exec /usr/bin/vmplayerorig "$@"
Make the new file executable:
Code:
sudo chmod +x /usr/bin/vmplayer
That's it. In the Multimedia Systems Selector choose either ALSA or Autodetect, and you will have sound in VMPlayer, and no hangs.
Roner is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:54 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry