Linux System Administration

Those who are still did not make switch from KDE3 to KDE 4 here is a small note on how to set /change default internet browser to firefox.

KMenu -> Control Center -> KDE Components -> Component Chooser -> Web Browser

Now tick the radio button "in the following browser" and enter the full path to firefox executable which can be obtained by running 'which firefox' from the command line. For example /usr/bin/firefox

Now you are all set and no restart is required.

There are two time-keeping clock's on your computer. One is hardware clock to set you bios and another is system clock. System clock is set on linux system during the boot time by copying a hardware clock time with hwclock command. To change the hardware clock we use hwclock command:

# hwclock --set --date="5/1/10 15:48:07"

The command above will change hardware clock to 15:48:07 1st May 2010. In case you need to change hardware clock to you current system clock execute a command below:

# hwclock --systohc

It also works the other way around. To set system clock from hardware clock use:

# hwclock --hctosys

The Timezone under Linux as just a symbolic link to an appropriate timezone file in the /usr/share/zoneinfo. It may happen that your time within GUI applications is correct, however time on the command line is wrong. One of the possible reasons could be that your system's timezone is not set correctly. To set you correct time zone first investigate what file from /usr/share/zoneinfo would be appropriate for your timezone. For example if you are from Europe/Slovakia you would set your symlink as follows:

# ln -sf /usr/share/zoneinfo/Europe/Bratislava /etc/localtime

Now you can set correct time with ntpdate command:

# ntpdate pool.ntp.org

If you do not have an internet avaiable to set your time to NTP server you can also set your time from you hardware time ( assuming hardware time is correct )

# hwclock --hctosys

Confirm correct time with:

$ date

Page 58 of 73



Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top