Technical Recipes

Thursday 1, March 2012

After installing urxvt and using it as my default terminal application I detected that it's not possible to type ñ character.

I solved the problem setting my locale to en_US.UTF-8:

$ sudo /usr/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
$ export LC_ALL=en_US.UTF-8
$ export LANG=en_US.UTF-8

Then it could be required to change the next file:

 /etc/sysconfig/i18n

adding these lines:

LANG="en_US.UTF-8"
LC_LANG=en_us.UTF-8
SYSFONT="latarcyrheb-sun16"

Finally, it works on my Fedora!


Monday 27, February 2012

Sometimes my lpd is blocked launching the following error:

StateMessage /usr/lib/cups/backend/lpd failed

After restarting cups the problem is still there.

I found a simple solution, just change the /etc/cups/printers.conf file. First stop your cups daemon:

$ sudo service cups stop

Then you should change the file:

$  sudo sed -i -e '/StateMessage .*lpd failed/d' \\ 
    -e 's/State Stopped/State \\
    Idle/' /etc/cups/printers.conf

Then restart your cups daemon:

$ sudo service cups start

It works properly on Fedora


Monday 13, February 2012

I've recently installed Emacs 24 on my Fedora workstation. I followed these simple steps to do that:

$ git clone git://github.com/emacsmirror/emacs.git
$ cd emacs
$ ./autogen.sh
$ ./configure --prefix=/opt/emacs24 --without-makeinfo  
       --with-xpm=no  --with-jpeg=no --with-gif=no 
       --with-tiff=no
$ make
$ sudo make install

Then, I executed:

$ sudo ln -s /opt/emacs24/bin/emacs /usr/bin/emacs

... and...

$ emacs --version
GNU Emacs 24.0.93.1
Copyright (C) 2012 Free Software Foundation, Inc.

Voila!!


Thursday 15, December 2011

We always should apply security updates for our operating system. Usually, we don't want to update all binary packages for our system, just we want to update those packages that need an update for security reasons. Fedora offers us a simple and effective way to do that thanks to yum-plugin-security. Let's see how to use it.

First, you need to install the mentioned plugin:

$ sudo yum install yum-plugin-security

Then we can use it for finding out which packages requires a security update:

$ yum --security check-update

Also, you can list all security updates available for your operating system version:

$ yum list-sec

Finally, the following command will install all security updates:

$ yum update --security
tags: fedora

Tags

My latest tweets

tweet Only one week for Fedora 17! #fedora
tweet At Least 100,000 March in Spain Over Austerity http://t.co/LIvRCkTO
tweet Hoy es el día: Protesta como un ciudadano o calla como un súbdito. Tú eliges #12m15m
tweet Somos campeones!! #atleti
tweet Dell is working on a new laptop designed for developers with Ubuntu http://t.co/CemtM2fw
tweet Good tutorial about Flask, how to get up and running a web application with Python http://t.co/RtcW4f9d
Buy me a coffee!! Coffee cup

Advertisment