Fedora 20 – UK International keyboard layout and Cedilla support

If your keyboard is generating letters like ‘a or ~a instead á or ã, this post is to you!

Setting up keyboard layout

[alex.ventura@razor ~]$ sudo localectl set-keymap gb-intl
[alex.ventura@razor ~]$ sudo localectl set-x11-keymap gb pc105 intl

The commands above will automatically generate the file /etc/X11/xorg.conf.d/00-keyboard.conf, which will be used by X11 next time it starts.

Now let’s setup the keyboard layout in Gnome “Control Panel”:

All settings > Region & Language > Input Sources > Choose English (UK, international with dead keys)

At this point your keyboard should be working fine, with exception of cedilla.

Fixing cedilla

Install gtk2-immodules:
[alex.ventura@razor ~]$ sudo yum install gtk2-immodules

Edit or create /etc/gtk-2.0/gtk.immodules:
"/usr/lib64/gtk-2.0/2.10.0/immodules/im-cedilla.so"
"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "en"

Edit /etc/environment:
GTK_IM_MODULE=cedilla

Log out and log on again. Voilà!

FATAL: Could not load modules.dep

I was trying to install Centos 6.2 in a VMware VM using graphical mode. Every time when I booted it, I always saw messages like these:

"FATAL: Could not load /lib/modules/2.6.32-220.el6.x86_64/modules.dep: No such file or directory."
"FATAL: Could not load /lib/modules/2.6.32-220.el6.x86_64/modules.dep: No such file or directory."
"FATAL: Could not load /lib/modules/2.6.32-220.el6.x86_64/modules.dep: No such file or directory."

And at the end:

"Kernel panic - not syncing: Attempted to kill init!"

My VM had 768MB of RAM but I was setting up only 256MB of swap space. After loads of reinstallations I solved this problem increasing my swap partition to 768MB.

Installing JRE 1.7 in Centos 6.2 and Chrome

It’s very simple to install Java Runtime Edition (JRE) 1.7 in Centos 6.2.

1. Download the latest RPM version from Oracle download page

2. Go to the folder where you have saved the file:

cd ~/Downloads

3. Install the package using the following command:

yum localinstall jre-7-linux-x64.rpm

4. Now, install Java plugin in Chrome using:

For x64
ln -s /usr/java/default/lib/amd64/libnpjp2.so /opt/google/chrome/plugins

For x86
ln -s /usr/java/default/lib/i386/libnpjp2.so /opt/google/chrome/plugins

5. If you do not have the folder /opt/google/chrome/plugins, just create it using:

mkdir -p /opt/google/chrome/plugins

6. Test it at Java Test Page.

Enjoy!

Extra packages in minimal installation of Centos 6.2

The minimal installation of Centos 6.2 installs a few extra packages if it’s done in graphical mode. The graphical installation adds the package matahari, which also adds another 32 dependencies.

  • matahari
  • matahari-lib
  • matahari-agent-lib
  • matahari-broker
  • matahari-host
  • matahari-service
  • matahari-sysconfig
  • matahari-network
  • qpid-cpp-client
  • qpid-cpp-client-ssl
  • qpid-cpp-server-ssl
  • qpid-cpp-server
  • sigar
  • polkit dbus
  • qpid-qmf
  • boost
  • ConsoleKit
  • eggdbus
  • boost-filesystem
  • boost-program-options
  • boost-graph
  • boost-date-time
  • boost-serialization
  • boost-test
  • boost-thread
  • boost-regex
  • boost-wave
  • boost-signals boost-iostreams
  • boost-python
  • ConsoleKit-libs
  • libicu

To remove all these packages and services, run this command:

yum erase matahari matahari-lib matahari-agent-lib matahari-broker \
matahari-host matahari-service matahari-sysconfig matahari-network \
qpid-cpp-client qpid-cpp-client-ssl qpid-cpp-server-ssl \
qpid-cpp-server sigar polkit dbus qpid-qmf boost ConsoleKit \
eggdbus boost-filesystem boost-program-options boost-graph \
boost-date-time boost-serialization boost-test boost-thread \
boost-regex boost-wave boost-signals boost-iostreams boost-python \
ConsoleKit-libs libicu