Programming :: Set Time Using Settimeofday But It Sets Local Time?

Jan 12, 2010

I am trying to set time using settimeofday in linux. But it sets local time. i.e works like SetLocalTime in windows. But I want to set system time(like SetSystemTime in windows). I could'nt find no other api in linux. What should i do? I had tried with mktime/gmtime apis

View 3 Replies


ADVERTISEMENT

Networking :: NTP Can't Use Its Local Time As Its Time Reference?

Jul 23, 2010

I use Debian Lenny .I installed NTP server on my debian and take following changes to /etc/ntp.confserver 127.127.1.0fudge 127.127.1.0 stratum 10but when I try to sync time from clients I cant and I see following error message :no suitable server found for synchronization

View 1 Replies View Related

General :: How Computer Sets Time

Apr 26, 2010

I want to know how the computer sets time? When I turn off my computer or it is not connected to internet it shows me the correct time. When I login to my computer after so many days, it shows me the correct time though it was turned off for so many days. How is it possible?

View 5 Replies View Related

General :: Command Or Script Which Sets Time From Some Internet Timeserver Everytime?

Dec 19, 2010

I am a programmer working on embedded linux, On my device, I need to set time everytime when I want to use it to check my program.

Is there any command or script which sets time from some Internet timeserver everytime?

View 1 Replies View Related

Slackware :: Apple Time Capsule DHCP Sets Bogus Hostname?

Jan 20, 2011

During Slackware 13.1 setup, I chose the hostname stella-sl2. This hostname is also the one that the system is displaying before I configured network access. After configuring wired network access to my Apple Time Capsule, my hostname suddenly changed to INTERFACE='eth0'. As a result I'm noticing some very strange things, like the login prompt which has become "INTERFACE='eth0' login: ".

After configuring wireless network access to the Time Capsule, the hostname changed to "INTERFACE='wlan0'". Note that, during boot, wlan0 is brought up AFTER eth0.

Also strange is this:

bash-4.1$ cat /etc/HOSTNAME
INTERFACE='eth0'.DNSSERVERS='10.0.1.1'
bash-4.1$ /bin/hostname
INTERFACE='wlan0'
bash-4.1$

Until now, it was only a minor annoyance, it didn't prevent anything from happening, internet connection was not affected. But now I'm configuring sendmail which needs to talk to a relay SMTP server, and sendmail "HELO"'s itself using the bogus hostname:

>>> HELO INTERFACE='wlan0'
<<< 501 HELO requires valid address
554 5.0.0 Service unavailable

Probably this is caused by the Time Capsule not adhering to standards. However, the Time Capsule's firmware is the latest version, so I cannot fix this. Is there a way to prevent dhcp from changing the hostname? How can I make sure that the hostname that I configured during setup remains active?

View 2 Replies View Related

Programming :: Function Handler Is Called One Time Only Instead 2 Times If The 2 Timers Expires At A Time

Mar 2, 2011

I am using Debian linux. I have 100 timers running. If a timer expired which will generate a signal and it was mapped to a same function handler. All the timers are mapped to one function handler. The problem is if the timer expires one at a time, the function handler called at a time. But if the 2 timers expires at a time, the function handler is called one time only instead 2 times. Is it possible to invoke the function handler as many times based on timer expirary happens simultaneoulsy?

View 14 Replies View Related

Programming :: Get The Current Time As Provided From NTP (not The Currently Set Time On The Server)?

Jun 9, 2010

Is there a way to get the current time as provided from NTP (not the currently set time on the server)?

View 4 Replies View Related

Fedora :: 11 Clock Showing Local Time + 2h

Aug 10, 2009

Before my windows clock was at local time + 2h. Now my Win clock is ok but my F11 clock is at local time +2h. What happened?!

View 9 Replies View Related

Ubuntu :: System Clock Will Not Set To Local Time

Aug 15, 2010

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).

View 6 Replies View Related

General :: Calculate Local Time In Seconds?

Sep 3, 2010

I`m looking to calculate my Local Time in seconds from APOC - 1970.I found only - date +%s -> that display the UTC and not my Local Time.

View 3 Replies View Related

Server :: NTPD Giving Non Local Time - How To Set

Feb 10, 2011

NTPD on Fedora 14.

View 2 Replies View Related

Debian :: Set System Time To Local Region Using Tzselect Command

Jun 14, 2011

i have a debian 5 vps system.. it reports the time as beeing one hour behind, i have tried to change this by setting the time to GMT+1 and setting the time to my local region (Europe-Brittian) using the tzselect command but none get the time to the correct time, one hour ahead of the current time.

View 3 Replies View Related

General :: Need To Synchronize Local And Remote Directories In Real Time

May 18, 2010

I'd like to have a copy of a web site on my local drive. Then when I make changes to that copy, have those changes automatically updated on the site's server. Ideally I'd like to tell it to only do this for certain file types. Does anybody know of a way to do this with Linux?

View 2 Replies View Related

Ubuntu :: Won't Gnome Panel Clock Show Local Time / Why Is So?

Sep 30, 2010

When I travel, I would like to tell my laptop that I, as a user, am in a different time zone that what the OS may think is local. And I would like the clock on my desktop (default Gnome bar date/time display) to show the local time.

Instead, I currently have to use sudo and change the system time... (click on the clock, choose time settings, set system time -- there are no other choices given). The applet thing allows me to add other locations, but they only show up if I click on the icon, as extra times below the main one.

Am I missing something? Using the wrong app?

View 9 Replies View Related

Fedora :: 11 Boot Time / System Hangs For A Very Long Time On Starting Udev?

Sep 25, 2009

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.

View 7 Replies View Related

Fedora Installation :: Set The Time In The System Tray To The Standard AM/PM Setting Instead Of Military Time?

Jan 29, 2010

Just making one last tweak with my fresh install of F12KDE. I need to . How do I do this

View 2 Replies View Related

Ubuntu :: After Log In Takes Long Time To Show Desktop, Monitor Events At Log In Time?

May 24, 2011

It takes me a while to log in the splash screen just sits there for ages before i get to the desktop. Never used to be this slow and I'm not sure why. Firstly, I'm running Ubuntu 11.04, standard DE. I do have conky starting up in a script but it has the & at the end of the line so I didn't think this would cause it (or is there some special case for log in time on how & is treated?). However as a test I will comment out the line in the script and see if it is the cause.

However just for general knowledge and in case that isn't the problem, how does one go seeing what is happening during the time from when one log's in and the desktop is displayed? Is there some kind of log that shows the date/time that can be enabled or is there a debug mode that can be enabled somehow via special keys or maybe from grub?

View 8 Replies View Related

Fedora :: Network Time Protocol Part Of Date / Time Settings

Oct 3, 2009

I've got fedora 11 set up to use network time protocol to sync my laptop's date & time when I'm on-line. The question is simple really, I've added a local universality's time server (what is public) and it's live. but it's added to the end of the default time servers what come with fedora. How do I get fedora to just use the local time server, is it a case of removing the default time servers for fedora, but there is a box what says advanced options which are. sync system clock before starting service ???? & use Local time source (( is that the same as the local ntp server that I've got set up ))Hope some body can help me with the network time protocol part of Date/Time settings.

View 9 Replies View Related

General :: Change The Creation Time Of All A Folder's Files To The Current Time?

Jun 19, 2011

Under a Linux shell, how can I change the creation time of all a folder's files to the current time?

View 2 Replies View Related

Ubuntu Servers :: Get Notices That There Are Updates For The Server Software From Time To Time?

Mar 29, 2010

I have several file servers in our offices and I am relatively new to Ubuntu / Linux. I get notices that there are updates for the server software from time to time. Is it typical to update everything when available or should I follow "If it ain't broke, don't fix it..." mentality?I would hate for everything to be working fine and then have an update throw me a curve.

View 9 Replies View Related

Ubuntu Servers :: System Time Runs Slow Hareware Time Run Right?

Apr 11, 2011

I am running my Ubuntu 32 bit server on top of Windows 7 64 bit with VirualBox. It's a 2 core Atom. It's been working good for about half a year. But the last about 6 weeks the system time only in Ubuntu is going slow. About -8 per 24 hours! I can only guess because I have more things running in my Windows 7 and Ubuntu.

I can set it right by coping the hareware time to system time with this command:

Code:
hwclock --hctosys

I want to run a crontab to have that command run every minute. But it don't seem to run.

[Code]...

View 9 Replies View Related

Debian :: Connection Breaks Time To Time / Sometimes Cannot Connect Automaticaly After Restart

Apr 22, 2010

Since the upgrade from Lenny to Squeeze on my Notebook Toshiba Satellite Pro U200 with Intel Pro/Wireless 3945 ABG I have wireless connection problems.The connection breaks time to time and sometimes cannot connect automaticaly after restart. BTW I didn't change anything on the wireless or network configurations on the notebook and on the wiereless router.

View 8 Replies View Related

CentOS 5 Networking :: No Wired Network Connection From Time To Time At Logon?

Oct 20, 2010

In the right upper corner of your screen,you can see if you have a network connection or not.Most of the time I do not have one according to Networkmanager (?).So I have to enable my wired connection manually.I already tried a lot to change my settings so I would have a network connection at boot,but it doesn't seem to work....Firefox is in Offline modus when I logon..

View 2 Replies View Related

Ubuntu :: Messed Up Vital Files Could Go Back In Time And Restore Computer To A Selected Time

Nov 26, 2010

For like windows you can resore your os to a state of peace kind of. If you messed up your vital files you could go back in time and restore you computer to a selected time. I was wondering if you could do that for ubuntu

View 4 Replies View Related

Debian Configuration :: Restore From Hibernate Fails From Time To Time?

Apr 28, 2011

I have a Insprion 14R (N4010) and when I hibernate it will usually restore without a problem, but maybe 15% of the time it will reboot while loading. I would like to figure why, since I'd rather not lose anything... My swap space is 5.9GB, I have 4GB RAM (video uses 1gb, so I have 3gb usable)

lspci says

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 18)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)

[code]....

I do have the hibernate package installed...

View 6 Replies View Related

OpenSUSE :: Software To Display Time From Multiple Time Zones?

Jun 15, 2011

I'm looking for a program that will digitally display the time in three different cities - all showing at once. I don't care if it is a panel applet or stand-alone. I'm using Suse 11.3 and Gnome.

View 5 Replies View Related

General :: Change Time (Advanced Eastern Time) On Slackware 8.1?

Mar 24, 2010

I have a linux (Slackware) machine and the time/date is like, June 23rd 2003, 10:00am (It's 11 here) and I am not able to set the time to have it correct. I change the timezome to Montreal but the time is still wrong.

Is there a way to force it to sync with my domain controler or even another online NTP server?

View 1 Replies View Related

General :: Short A Time Can Time (system Program) Measure?

Apr 15, 2010

I'm just wondering what the limits for time are. I have a program that always takes exactly 20 ms, so I assume this is the lowest it can measure, but I want to see if there's some sort of documentation of this.

View 3 Replies View Related

Ubuntu :: Screen / Everything Freezes From Time To Time For No Reason In Natty?

May 4, 2011

Ever since I installed Ubuntu Natty, from time to time, for no particular reason, the entire computer screen freezes, and I am forced to hold the power button on my laptop to restart things with a hard reset. I cannot explain why it happens.

Such an issue never occurred in any of the past installations and versions of Ubuntu. This is a fresh installation of Natty by the way.

Also, I can currently be running a lot or nothing and it does this. Thus, it does not matter what I am actually doing (ie, what programs I might be running).

It has occurred about 10 times since I freshly installed Natty 6 days ago.

View 9 Replies View Related

General :: Computer Time Difference At Windows / Make The Time The Same?

Apr 13, 2011

My computer has different time when booting to linux or Windows.How to make the time the same?My computer time is 10:57pm Apr 14 when booting to linux.My computer time is 2:57am Apr 14 when booting to Windows Vista Home Premimum SP2.Both OS are set to the same time zone (GMT-5. Eastern Time US & Canada).

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved