February 28, 2009

Tip : Shutting down your system automatically

Welcome again,
this post I've a tip for you, it is how to shut down your system automatically, such operation required a tool in the past when I was operating windows, but now, you can do it without any additional tools, just your system :)

the command is shutdown, and here is the syntax

shutdown -P [time]

this command require root access on the system, and very flexible too, you can use it in many diffrent ways,

here are some examples of using the command:

shutdown -P now
this command will shutdown the system immediately

shutdown -P 10:23
this will shutdown the system on 10:23 AM

shutdown -P 22:23
this will shutdown the system on 10:23 PM

shutdown -P +15
this will shutdown the system after 15 minutes

the command has lot of options you can test it,

that's all for the moment

February 03, 2009

YUM segmentation fault in fedora 10 >>> It's Fix

the Problem

While I was updating my fedora 10. I accidentally restarted my PC.
after restating the PC. I tried to update the packages by package managers it takes too long.
I used the # yum update  command it give me the error message "Segmentation fault" and aborts.

I searched for the solution and found this one.

the reason

this error is a result of a corruption in RPM Database Files located int /var/lib/rpm/
 
how i fixed it

by executing the following commands ( while I'm root )

# rm -f /var/lib/rpm/__db*
# rpm --rebuilddb

It worked for me hope it works for you too ;)

more details about this problem and RPM DB Recovery

RPM DB Recovery in Details (RHEL 3 )

Working With the RPM Database (Fedora)

How to "repair" /var/lib/rpm/Packages

the solution posted here was found in the following link
yum Segmentation fault