Redirect the HTTP Requests to HTTPS in Apache Webserver

The best way to do a redirect from HTTP to HTTPS site is to use the Redirect directive in the Apache virtual host configuration. If you have a site configured at https://sample.com and if you want to redirect the http://sample.com requests to the https site it can be achieved as follows:

References:

[1] https://wiki.apache.org/httpd/RewriteHTTPToHTTPS
[2] https://wiki.apache.org/httpd/RedirectSSL

Sound card issue on Fedora 23 with Intel HDA

I recently installed Fedora 23 in my Desktop and everything was working great except the sound.

I did the ldconfig and it didn’t solve it.

Hardware detail fetched by

$ alsa-info.sh --no-upload

[Extracted]
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)

$ lspci -nn | grep -i audio

00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 04)

And then used the speaker-test utility to test the speakers

$ speaker-test

speaker-test 1.0.29

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
/usr/bin/pulseaudio: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Playback open error: -111,Connection refused

So I installed the libgomp library with dnf and sound started working

$ sudo dnf install libgomp

Previously I tried uninstalling the alsa-plugins-pulseaudio as described in the reference below and it removed the proprietary media plugins, skype etc all that was installed. So it’s better to avoid following as described in reference[1]

Reference:
[1] https://fedoraproject.org/wiki/How_to_debug_sound_problems

Solution for “undefined symbol: menu_proxy_module_load”

Environment: Linux Mint 13.04
Eclipse: Kepler

I was running eclipse on terminal, and the following error message kept on coming up.
“undefined symbol: menu_proxy_module_load”

Because it was making the terminal clutter I wanted to clean it up.

A little bit of googling revealed that installing the following package solves the issue.
sudo apt-get install appmenu-gtk

It really did and problem gone.

Replace OpenJDK with Oracle JDK

Replace OpenJDK with Oracle JDK. Here carefully replace the JDK path according to your installation

sudo apt-get purge openjdk-\*

sudo update-alternatives --install "/usr/bin/java" "java" "/home/ramanan/dev/sdk/jdk1.6.0_26/jre/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/home/ramanan/dev/sdk/jdk1.6.0_26/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/home/ramanan/dev/sdk/jdk1.6.0_26/bin/javaws" 1

sudo update-alternatives --set java /home/ramanan/dev/sdk/jdk1.6.0_26/jre/bin/java
sudo update-alternatives --set javac /home/ramanan/dev/sdk/jdk1.6.0_26/bin/javac
sudo update-alternatives --set javaws /home/ramanan/dev/sdk/jdk1.6.0_26/bin/javaws