Technical Recipes

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


Tuesday 12, July 2011

If you want to install XFCE desktop on Fedora 15, you only need to execute the following command:

$ sudo yum groupinstall XFCE

After executing the command, you can choose XFCE using your default session manager.


Tuesday 28, June 2011

Fedora and other Red Hat based Linux distros can use chkconfig for enabling/disabling services at boot time.

If you want to enable Apache at boot time, just execute the following one command:

$ sudo chkconfig httpd on

Another example could be the next one:

$ sudo chkconfig mysqld off

Also it's possible to display the status for all services:

$ sudo chkconfig --list

Thursday 16, June 2011

Ubuntu and Debian users know that /tmp directory will be deleted after booting. However, this scenario is different on Fedora.

Fedora uses a program called tmpwatch, which removes files which haven't been accessed for a period of time. This program is invoked from cron through the script /etc/cron.daily/tmpwatch.

By default, Fedora removes those files that haven't been accessed for 30 days. Obviously, you can change the value editing the mentioned script.


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