Link to home
Start Free TrialLog in
Avatar of Victor Kimura
Victor KimuraFlag for Canada

asked on

centos 5.x, vlc player audio doesn't work after reboot

Hi,

I have Centos 5.x and after I rebooted (which I hardly ever do) the VLC player audio doesn't work. I had amarok installed too and that used to work. But after the reboot Amarok doesn't even load now. So I'm thinking that after the reboot some default programs must be getting in the way.

Movie Player - never got it work properly. It says I don't have the plugins to play mp4a files.

When I play youtube videos I can hear the audio so the audio card is working fine.

How can I get the audio to work again? I'm thinking of uninstalling and reinstalling VLC but how do I do that? I guess this is a last option because it's a hassle to do this when I have to reboot.

Thank you,
Victor
SOLUTION
Avatar of TobiasHolm
TobiasHolm
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Victor Kimura

ASKER

Hi,

It didn't work. I'm thinking that I changed my PATH a few weeks ago to make sure the Java updates were working  and the system knew which Java to use. I had to modify it because I was using PhpStorm IDE.

I modified /etc/profile. I believe it's not really what I should be doing but the PATH thing is still a little confusing. I read this page:
http://serverfault.com/questions/102932/adding-a-directory-to-path-in-centos
But I think I have to read it a few times to understand which file to update.

The VLC and Amarok player was working fine I till after I updated /etc/profile PATH and then rebooted. Before the reboot it was working.

Here is what I have:

 
# /etc/profile

export PATH="/usr/bin:/usr/local/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/root/bin"

export PKG_CONFIG_PATH="/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib64:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/ssl/lib/pkgconfig:/usr/share/pkgconfig"

export JAVA_HOME="/usr/local/java/jre1.6.0_31/bin"
export PHPSTORM="/home/vkimura/Downloads/PhpStorm-303/bin"
export ECLIPSE="/home/vkimura/eclipse"
export FIREFOX="/home/vkimura/firefox"
export WEBIDE_JDK="/usr/local/java/jdk1.7.0_03/"
export THUNDERBIRD="/home/vkimura/thunderbird10"
export APACHE="/usr/local/apache/bin/"

export PATH=$APACHE:$WEBIDE_JDK:$JAVA_HOME:$PHPSTORM:$ECLIPSE:$FIREFOX:$THUNDERBIRD:$PATH

Open in new window


The WEDIDE_JDK needs to be found by the PhpStorm. Where should I put these PATHs?

Thanks,
Victor
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi TobiasHolm,

Yes, when I run echo $PATH I get:
[vkimura@seokingdomheaven ~]$ echo $PATH
/usr/local/apache/bin/:/usr/local/java/jdk1.7.0_03/:/usr/local/java/jre1.6.0_31/bin:/home/vkimura/Downloads/PhpStorm-303/bin:/home/vkimura/eclipse:/home/vkimura/firefox:/home/vkimura/thunderbird10:/usr/bin:/usr/local/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/root/bin:/usr/local/lib:/lib64:/usr/lib64::/home/vkimura/bin:/usr/include/

---
Hi duncan_roe,

Yes, I see. How would I implement your suggestion:
"...the shell scripts which run your applications themselves augment the PATH. These scripts would put the old $PATH last..."

For instance, how would I augment the PATH for:
export PHPSTORM="/home/vkimura/Downloads/PhpStorm-303/bin"
in a shell script for the PHPSTORM application?
Where would I put this script?

Sorry, still new to shell scripting but not programming.

Thanks,
Victor
Did you try to remove the two trailing slashes as I suggested above?

Regards, Tobias
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi TobiasHolm,

I didn't try removing the trailing slash. Actually, I didn't know what you were referring to. I ended up placing the $PATH at the beginning of my /etc/profile

export JAVA_HOME="/usr/local/java/jre1.6.0_31/bin"
export PHPSTORM="/home/vkimura/Downloads/PhpStorm-303/bin"
export ECLIPSE="/home/vkimura/eclipse"
export FIREFOX="/home/vkimura/firefox"
export WEBIDE_JDK="/usr/local/java/jdk1.7.0_03/"
export THUNDERBIRD="/home/vkimura/thunderbird10"
export APACHE="/usr/local/apache/bin/"

export PATH=$PATH:$APACHE:$WEBIDE_JDK:$JAVA_HOME:$PHPSTORM:$ECLIPSE:$FIREFOX:$THUNDERBIRD

Then rebooted. I think that worked. It seems to work now. I don't know if that does it. Perhaps, it was your reinstall. Thank you fellas for the help and guidance.