Skype sounds stops media player or other sound sources

Whenever I’m listening to an mp3 or watching a movie and a skype message popups, my media stops playing. Here is the solution: Edit the file:

/etc/pulse/default.pa

Locate this line and comment it:

#load-module module-role-cork

Restart.

That should do the work.

More info at Skype – Arch Wiki page.

Advertisements

FUDCon Managua 2014

Well, FUDCon Managua is now over. It was awesome!!!

There were many interesting talks by Fedora Contributors and Users. I was able to be in a few of them and meet really interesting and kind people.

Some of the talks I attended were: oVirt, Nagios, Flask, Virtualization with KVM, OpenStack, SELinux, Icaro, among others.

Thanks to the people that gave time and energy into this, we really appreciate it.

I will be posting more information later, with URL to the talks when they are available online.

Now, some pictures I was able to take during the event.

DSC04151

DSC04161

DSC04165

DSC04177

DSC04246

DSC04247

DSC04255

Check your internet speed from command line with speedtest_cli

I found this the other day and couldn’t resist.

You can test your internet speed from command line using the python script “speedtest_cli”.

Here’s how to get it:

1. You can install it with pip:

pip install speedtest-cli

or use pip from github:

pip install git+https://github.com/sivel/speedtest-cli.git

2. Clone the whole code from github and install it with python:

git clone https://github.com/sivel/speedtest-cli.git
python speedtest-cli/setup.py install

3. Or just download the script and execute it.

wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x speedtest-cli

How to use it

From the command line:

$./speedtest_cli.py

Typical outout will be:

$ ./speedtest-cli 
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from XXX (XXX.XXX.XXX.XXX)...
Selecting best server based on latency...
Hosted by XXX (XXX) [2.12 km]: 92.277 ms
Testing download speed........................................
Download: 2.73 Mbits/s
Testing upload speed..................................................
Upload: 0.88 Mbits/s

You can even share your results by getting an image of it:

$ ./speedtest-cli --share

Which will generate a png file you can share.

Make sure to check all the option by using:

$ ./speedtest-cli --help

Install Oracle JDK 6 update 35 in Debian Sid

Oracle asked many linux distros to remove their JDK package from their repositories, the latest version was 6.0u26, now the latest is the update 35.

In order to get in installed in Debian Sid, some easy steps must be followed.

1. Download the latest JDK from Oracle Website
jdk-6u35-linux-x64.bin

2. Install debian package java-package

#aptitude install java-package

3. Let run the command to get our downloaded bin file converted into a debian package (this has to be made as a normal user, not root:

$fakeroot make-jpkg jdk-6u35-linux-x64.bin

4. Let’s install our new debian package:

#dpkg -i oracle-j2sdk1.6_1.6.0+update35_amd64.deb 

5. Now let’s update our alternatives:

#update-java-alternatives -s j2sdk1.6-oracle

6. Let’s make sure that we now have our Oracle JDK:

$java -version

This should be our output:

$java -version
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)

If we get this, then we got it right.

Hope that works for you.

Trigger onChange Event in IE for radio buttons and check boxes

onChage event in IE doesn’t get triggered until the onBlur event is fired up. This can be easily fixed with the next code:

if ($.browser.msie) {  
  $(function() {  
    $('input:radio, input:checkbox').click(function() {  
      this.blur();  
      this.focus();  
    });  
  });  
}

This code will fire up both events (blur and focus) to each radio button and check box.

This workaround was taken from here

Install Firefox 14 in Debian

We need to enable the Ubuntuzilla Project repository for the latest Mozilla Firefox/Thunderbird/SeaMonkey build.

Add to our /etc/apt/sources.list:

deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main

Then we need to add the GPG key:

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29

Then:

#apt-get update
#apt-get remove iceweasel ; apt-get install firefox-mozilla-build

This will remove Iceweasel and install the latest Firefox build.

Hope this works for you 🙂

Asus G74SX-DH71 Keyboard lights Function Keys in KDE (Debian and Fedora)

I was trying for a while to make my Function Keys (volume, keyboard lights, etc) work in KDE 4.x, and I was finely able to do it with a *funny* workaround. It turns out that the Fn keys works just fine in Gnome, so I dig a little bit and found that the responsible of making this work is a small daemon called gnome-settings-daemon… So it’s just a matter of starting up this daemon in KDE and that’s it.

So, for doing that I just needed to add the next bash file:

$vi ~/.kde/Autostart/gnome-settings-daemon.sh

and add this line:

For Debian:

gnome-settings-daemon

For Fedora:

/usr/libexec/gnome-settings-daemon

we save the file and then add exec permissions

$chmod u+x ~/.kde/Autostart/gnome-settings-daemon.sh

Now you need to logout and login again and that’s it.

For getting the screen brightness function keys working properly, we need to edit our xorg.conf file:

#vi /etc/X11/xorg.conf

Under the section “Device” we need to add:

Option "RegistryDwords" "EnableBrightnessControl=1"

So, at the end, our “Device” section should look similar to:

Section "Device"                                                                                                                     
    Identifier  "Video Card"                                                                                                         
    Driver      "nvidia"                                                                                                             
    Option "RegistryDwords" "EnableBrightnessControl=1"                                                                              
EndSection

You need to reboot in order to get this working.

Hope that works for you. 🙂