Fedora :: System Clock - How To Permanently Setting The Correct Time
Jul 21, 2009
I have adjust the clock to my country current time but after a reboot,all the setting is gone. How to permanently setting the correct time?I have select my country region.
I'm setting the hardware clock on RHEL 5.1 system using /sbin/hwclock --systohc. After setting the clock I issue a date command followed by a /sbin/hwclock --show from within a script to get fast resolution and I see that the hardware clock precedes the system time on average by .5 seconds. I would think the clock should be identical after setting.
When I boot into Debian (lenny) my clock is always 4 hours slow. Whether I set it manually, or set it to get it's time from the network, the next time I boot into debian, it's back to being 4 hours slow.
In Kubuntu 10.10, the clock is set to military time. I shouldn't have to do the math just to look at the clock. There is no setting anywhere to change it to normal time.
I live in India and my computer's time is always a minute ahead. I have selected the option to keep it synchronized with internet time servers but as there does not appear to be a time server for ubuntu in India I am not sure what to do. As of now I tried selecting foreign server but can't see anything happen.
Try as I might I cannot seem to get the system clock to display local time. It looks like it's stuck on GMT. In the System>Administration>Time and Date I have my local time zone set correctly and also set to update automatically with an appropriate time server selected. It still displays my local time +5 hours (I'm central time, USA).
I restored my .kde directory after changing some stuff unrelated to my clock and now all plasma clocks are exactly 5 hours faster than my system time (the correct time).I've set the time zone for Date&Time in System Settings properly and that's working well and I've ALSO gone into the time zone settings for the plasma widgets and switched between UTC and Local manually but that doesn't do anything.
I have cron jobs running and the timing is critical, because I'm running Nessus scans on production servers. If I hit them at the wrong time, I'm toast. But when I check the cron log, I see that it is an hour off. Here is the output for the command "clock": Wed 31 Mar 2010 03:01:26 PM CDT -0.257677 seconds
And this is the tail of the cron log: Mar 31 16:00:01 nes-001 CROND[8790]: (root) CMD (/Nessus/Targets/NessusScriptDataCenterScan.test) Mar 31 16:01:02 nes-001 CROND[8822]: (root) CMD (run-parts /etc/cron.hourly) Mar 31 16:01:02 nes-001 run-parts(/etc/cron.hourly)[8822]: starting 0anacron Mar 31 16:01:02 nes-001 anacron[8832]: Anacron started on 2010-03-31 Mar 31 16:01:02 nes-001 anacron[8832]: Normal exit (0 jobs run) Mar 31 16:01:02 nes-001 run-parts(/etc/cron.hourly)[8834]: finished 0anacron
Cron thinks it is 4:00 p.m., but it's really 3:00 p.m. How do I tell Cron what time it is? (Stopping and restarting the crond service did not change it.)
My server is a VPS which is running with CentOS. I found a wield problem that the system clock always runs faster than the hardware clock. For example, I set system clock and hardware clock both on 20:00. After about half an hour, the system clock will be 20:34/5 which is wrong while the hardware clock remains correct (20:30).
I have Ubuntu 10.04.1 32bit installed on my flash drive so wherever I go I can have my own mini personal computer, but one problem I'm having is every computer it is run on the next time it's rebooted to the OS on the hard drive it has UTC time instead of the actual time for the timezone you're in that Windows uses. So is their a way I can make Ubuntu not automatically change the clock to what it wants?
I installed Java on a server and anytime I have to start or stop a service that requires the $JAVA_HOME variable I have to manually set it with the export command such as: Code: export JAVA_HOME=/usr/java-jdk1.6.0_21 How can I permanently set this variable?
When installing I perhaps mistakingly told Fedora it should use the BIOS clock and now it shows the wrong time, 1 hour ahead of my time-zone GMT+0. If I try and go to the preferences and set the time the 'Advanced Options' one of which I need are grayed out, I need the 'Use local time source' option to be unchecked. Could somebody tell me a workaround or the command-line commands to tell it not to do this anymore?
I have dual boot on my comp. Windows XP and Fedora 11 Now in both systems time zone is set to Belgrade ( which is my time zone), but when I setup clock in fedora to be, let's say 16.15h, then when I swich to windows it says time is 14.15h. When I setup in windows on 16.15h, and I swich to fedora, it says time is 18.15h. So I can't get accurate time on both systems in no way.
By default, Fedora 11 sets my clock to military time. For example it says 16:22. I would like it to show civilian time (or at least know how to do it) I logged into the clock settings and had to put in the root password, but couldn't find where you do this. If you scroll on the time for hours, it just goes from 0 to 23 and back, not to AM and PM like some others.
I have a debian system that's freezing in the boot sequence at "Setting system clock".Several sites I looked at recommended changing the init scripts to disallow hardware access to the clock. But, I can't boot! Is there a parameter I can pass to the kernel at boot so that it will skip init scripts?
I have a number of CentOS 5.5 virtual machines running on VMware ESXi 4. Most of them are fine, but one of them has the incorrect time and no matter what I try I can't get it to display properly. The time seems to be 15 hours behind and I think that might be because the original source virtual machine was an appliance built in Canada and my timezone is Australia/Sydney.
I'm running windows 7 and the F12 Beta (although the same issue existed in my f11 distro) on an asus g71 bb. When ever I boot into windows my time is correct. If I boot into to F12 my time is wrong. Usually by 4 hours. If I change it in Linux when I boot into windows I end up switching the time on my windows partition. I tried searching the forum (rather casual I'll admit) and couldn't find any solutions.
I'd like to have two gnome clock applets, one with the regular default time and date in the upper right hand corner (the default) and another set to epoch time. However, I can't figure out how to set the second gnome clock applet to display the epoch time. I'm running FC12.
Dual boot system. Boot Linux Fedora 13 and the hardware clock is set to GMT. Boot Windows 7, time is wrong, as it expects the hardware clock to be set to the local time. reset the hardware clock each time I reboot in to the other O/S.
I know - who uses parallel ports any more? People like me with an excellent, but old, HP OfficeJetPro 1150C. This is an old problem marked [SOLVED] in the following link to nowhere:
[URL]
I'm at Fedora 13 - 2.6.34.8-68.fc13.i686.PAE
Problem 1. /dev/parport0 is not found by sane unless you reset permissions after each boot 2. hplip udev rules only seem to support usb devices. 3. there are no/dev/parport[0-9] rules in udev/rules.d anymore 4. Did I read something about these ports being handled by HAL ACLs? If so, how do you do it?
default: ls -laF /dev/parport0 crw-rw---- 1 root lp 99, 0 Jun 23 07:48 /dev/parport0
must do at each boot: sudo chmod 666 /dev/parport0
Right now I'm 2hrs ahead of my normal time zone, i.e. the time zone I chose when I installed. So I changed the system clock right , ie right click Time > Prefferences. But when I re-boot it keeps reverting to the original time.
I want to set up a web server, and I want to set up NTP so to always keep the clock in sync. I have installed a very basic system (No GUI or X components), to keep it slim and thereby a little less prone to security problems. However, does anybody know what the Synchronize system clock before starting option in system-config-date actually does in terms of changing config files or permissions? I'd like to know so I can do it manually via the commandline.
When booting Fedora 11, my system hangs for a very long time on starting udev. Sometimes I get an I/O error. However, my hardware is fine. I do eventually get in to the system.
My system clock loses about 10 seconds every minute. The hwclock is fine. I've tried different kernel args (clocksource=acpi_pm, nohz=off, highres=off). None of these have any effect. I am running Fedora 11 with kernel 2.6.30-105.2.23.fc11.x86_64 on an AMD Istanbul node (Processor 2439 SE).
I was using the command export, but it looks that after some time the set variables disappears. What is the easiest way of setting an environment variable forever?
I would like to set both user and group permissions permanently to be 'rwx' (read-write-execute). I would like these rwx settings for all the future files and folders.
I tried umask 002, chmod etc, but they don't set it for future files.