Software :: Unable To Get A Simple Atomic Clock Sync

Jan 31, 2010

I have this hdd and another with XP in it but when ever I chnage to UBuntu, the clock goes out of whack and, makes me manually change it whereas in my XP I have an atomic clock installed that I just click on 'Ping' and she's right. I've looked at heaps of downloads for similar on here but, I haven't found a free one other than a trial type that I'm not interested in, that works so, why is Linux so difficult in this regard? I will accept all the help I can get on here because I like the thought of being able to get away from Microsoft.

View 2 Replies


ADVERTISEMENT

Ubuntu :: Conky Clock And Top Panel Clock Not In Sync

May 27, 2011

I'm using a very simple conky script to diplay the date and time on my desktop. I've noticed that he conky clock is a few seconds early compared to the time displayed in the right hand side of the top panel (Natty). I guess both displays are based on the same "internal" time, so I'm left wondering how this could happen, and how to sync back the clocks.

It seems that Conky is in sync with the system date, while the panel clock is 2 seconds late (on my system). Checked with while true; do date; sleep 0.1; done

View 2 Replies View Related

Programming :: Atomic Variable Versus Atomic Operation

May 19, 2010

have two shared variables a,b which are related to each other.When multiple applications share these shared variables, access to them needs to be an atomic operation, otherwise the relation may break. So to ensure mutual exclusion, I'll put their modification under a critical section protected by lock.

Code:

critical_code
{
P(mutex)
a := something
b := something
V(mutex)
}

Lets say my hardware/OS/compiler supports atomic variables. Then I modified my above code as follows.

Code:

code
{
atomic a := something
atomic b := something
}

Can this code ensure mutual exclusion, when accessed by multiple applications?

View 2 Replies View Related

CentOS 5 :: How To Sync Clock Windows

Mar 13, 2010

I wanted to synchronize both clock from windowsxp and centos. whenever i switch to centos i have to change clock before use is there any method so that i can synch both windows clock and centos clock?

View 1 Replies View Related

Debian :: Sync Clock - NTPD Not Starting On Boot

Jul 19, 2011

I'm trying to sync my clock. I think I would like to do this by the "ntpd" daemon running. I think it should start up on boot, but it doesn't.

I have the following in my /var/log/syslog:
Jul 18 23:44:14 neo ntpd[1780]: ntpd 4.2.6p2@1.2194-o Sun Oct 17 13:45:13 UTC 2010 (1)
Jul 18 23:44:14 neo ntpd[1781]: proto: precision = 0.634 usec
Jul 18 23:44:14 neo ntpd[1781]: unable to bind to wildcard address 0.0.0.0 - another process may be running - EXITING
Jul 18 23:44:14 neo ntpdate[1194]: step time server 72.26.125.125 offset -0.505108 sec

Other posts say if ntpd and ntpdate run too close together, they cause one to think the other is locking a resource. It works to type "ntpdate pool.ntp.org" to manually update the clock. My Debian version is squeeze (6.0.2)

It works to start the ntpd daemon manually:
... sudo /etc/init.d/ntp start
... Starting NTP server: ntpd.

View 2 Replies View Related

Ubuntu :: Simple IPod Shuffle Sync To Copy MP3 Files

Aug 9, 2010

I have read couple articles here about ipod shuffle sync in ubuntu. Can't I just plug it into USB, mount the ipod shuffle as drive and copy my mp3 files over? What do I miss at the moment? (I haven't bought the ipod shuffe yet, that is why I can't test it right away. What is the deal with it?)

View 3 Replies View Related

General :: Unable To Execute Simple Bash Scripts ?

Dec 24, 2010

All of a sudden,i can't execute a simple script as follows:

exit 0

and:

exit

View 18 Replies View Related

Server :: Atomic.h Missing/can't Be Found?

Mar 12, 2011

When I'm recompiling apache and php, it doesn't go through and I get this error:

Code:
checking for atomic.h... no
/usr/include/mysql/my_global.h:364:24: error: asm/atomic.h: No such file or directory

[code]....

View 5 Replies View Related

Ubuntu :: Unable To Change Natty Clock Settings In Unity Menu Bar?

Apr 27, 2011

I recently upgraded my clean install Ubuntu Studio 10.10 64bit to Natty 11.04 and whilst everything is working well (except for having no plymouth boot splash - but I'm looking into this) I have noticed that when I log in to the "Ubuntu" desktop (with the Unity launcher and Menu bar in the top panel) I can't seem to change how the time and date is displayed. It seems to be stuck showing 24 hour time only with no date no matter which setting I select in the 'Clock' tab of 'Time & Date Settings' menu.

The clock applet works perfectly when I log into the 'Ubuntu Classic' desktop and I am able to display the date and weather ok.

I have a laptop which I upgraded from Ubuntu 10.10 64bit to 11.04 as well and it doesn't have the same issue.

I thought it might have been a rouge Gconf setting so I dumped my entire gconf using

Code:
gconftool-2 --dump / > ~/Desktop/allgconf.entries

then restarted into recovery and removed my ~/.gconf folder entirely, rebooted again and logged back on. Apart from losing some settings like Evolution and Networking, which I reloaded, and my theme going back to the default theme, the problem still exists.

View 9 Replies View Related

Ubuntu :: Possible To Have Clock In Center Of Task Bar Centered Clock In U11.04?

Aug 2, 2011

Just curious as to if it is possible to have the clock in the center of the task bar centered clock in Ubuntu 11.04?

View 1 Replies View Related

Ubuntu :: Unable To Delete Simple Backup Folder From Trash

Jul 17, 2010

I'm a beginner at backing up my Ubuntu system, but I've set Simple Backup to do a backup once a week. I deleted the oldest of these files, but now it's sitting in my Trash and I can't empty it. I get a permission denied error for the folders within the backup folder in the trash, yet I can't restore the folder either - Ubuntu says it 'failed to determine the original path' for the folder. I've just discovered this in Xubuntu Jaunty, but I'm confident the same will happen in any other WM I choose (I have several installed - I like variety ).

It's not a huge file, but it's hanging out there and I'd like to get it either deleted or restored. Possibly I oughtn't to have deleted it in the first place (it usually lives in /var/backup, which I can't access except as root). The files, which I probably deleted /as/ root, show up in my user trash rather than root's trash. I found the trash in ~/.local/share/Trash/files, but I'm not sure if just deleting them as root would be a good.

View 1 Replies View Related

Red Hat / Fedora :: Ram Drive With Atomic Write-to-disk

Apr 12, 2011

I'm only somewhat new to linux but I still don't have a real grasp of it's deep innards and I had a fairly outlandish idea that I'm wondering whether is possible/plausible or not.I want to run a game server on CentOS that has a very high dependency on fast writes-to-disk. Disk writes are pretty much the single bottleneck in this server.First I looked at allowing a high queue of writes to pile up before it flushes them to the disk, but I read that this causes fsync, which is still used commonly, to take a very long time.

I've been thinking about the possibility of running the server on a RAM disk, but I still want changes to be saved to non-volatile storage. Not all at once, but have it actively write the changes to disk. The hope is that this would smooth out the peaks and valleys of write activity and improve overall performance, but I have not seen this idea discussed anywhere.

So my question is, is there any plausible way to continuously copy writes to a RAM disk to a physical drive without slowing down the speed of the writes to the RAM drive below the speed of said RAM? Or is there a better way to obtain this sort of performance, short of investing in expensive equipment?

View 1 Replies View Related

Software :: Critical Code Needs Atomic Execution?

May 13, 2011

I need to insure the "writer" to named shared memory (small size, 160 bytes) completes his task such that the many "readers" always get the latest data. The machine is a multi-processor (8 CPU, 24 Gig RAM), non-real time system. The system has multiple processes that are also multi-threaded. Thankfully, there is only 1 "writer" and many "readers". There is no semaphore or mutex locking. "Readers" must not block each other and especially not block the "writer".

By design, it is expected from time to time a "reader" will be in the middle of reading when the "writer" begins to update the data. I want to protect against the case of the "writer" being interrupted and a "reader" completes it's read before the "writer" wakes up and completes it's changes. In this case the "reader" will get corrupt data, some new and some old.

View 7 Replies View Related

Programming :: Achieve Atomic Increment/decrement?

Jan 13, 2010

Is there anyway in Linux that can achieve atomic increment/decrement for an integer variable without being interrupted? It means that the thread should not chance for other thread to run until theincrement/decrement is completed.

View 11 Replies View Related

General :: Install Atomic Built-in Function On Gcc3.4

Sep 1, 2010

According to [URL], gcc 4.3 supports atomic built-in function "GCC can now use load-linked, store-conditional and sync instructions to implement atomic built-in functions such as __sync_fetch_and_add" However, I am still using gcc 3.4 on my Redhat EL4. How do I get this built-in function installed?

View 2 Replies View Related

Debian Installation :: MacbookPro - Unable To Sync GPT And MBR Part Tables

Apr 22, 2011

I'm trying to install Debian 6.0.1a on a MacBookPro5,5 (intel core 2 duo - EFI firmware). I have rEFIt 0.14 and a live cd of Debian (on a usb stick). I'm installing Debian on a usb stick. The installation process goes along smoothly, but then, it's impossible to boot up the freshly installed system (I get a black screen with a blinking cursor). I read that this is a common problem but all the solutions I have found have not worked for me.

The underlying idea is that since Macs have EFI firmware instead of a BIOS, the partition tables of devices are different (GPT for EFI versus MBR for BIOS), and grub is incompatible with GPT (I know there is an EFI version of grub but it is said to not work well). So the devices must have both a GPT partition table and a MBR one. These have to be "synced".
The tools available for this are:

- rEFIt can sync the partitions, but I haven't managed to have it sync them on any other device than the main hardrive. If I sync the main hardrive, then even the live cd (which is on a usb stick) won't boot (black screen with "GRUB _").
- Debian has a tool called gptsync, which returns a message saying "no data partition in gpt table, nothing to sync".
- Mac OS X has a tool called gptsync which returns a message saying "unknown partition type detected - I'm not touching this disc".

The reason there is no data partition is that gptsync sees my main partition as "EFI system". If I could change that, maybe I could sync the partition tables. Can that be done? Also, something I don't understand is: the live cd boots fine without grub. So why do I need grub? Couldn't the system boot up without it like the live cd does?

View 5 Replies View Related

Programming :: How To Compile / Simple Tutorial For Making Simple Program

Oct 7, 2010

i'm a college student studying pc programing, and i was given today a special work and i have to program using miranda... which i've never used it >.< can anyone give me a hand to where to download, how to compile, and a simple tutorial for making a simple program or something?

View 3 Replies View Related

Hardware :: Interface To A Quartz Clock That Can Be Used For A TOD Clock?

May 2, 2011

Does anyone know of an interface to a quartz clock that can be used for a TOD clock?? I want to interface it to an Arduino board. Can be GPIO or USB.

View 1 Replies View Related

CentOS 5 :: Get Rid Of Virtual Clock And Use Physical Clock?

Sep 2, 2011

I had cloned a centos 5.6 installation from virtualbox virtual machine to physical box. Everything work fine. However, the time showing in os using date command differs from bios time by roughly 4 hours. I am running ntp services which sync the time with another centos server on the network. It appears that some services are using virtual clock and some use physical clock. How do I get rid of virtual clock and only use physical clock?

View 1 Replies View Related

General :: Non-atomic Scokect Write And EAGAIN Error In RHEL 5.4?

Aug 26, 2010

Introduction : We have a C++ application in RHEL 5.4 platform. We are using TCP/IP socket programming as well to send and receive some sort of messages. We are using socket write and read command for this purpose and we are getting some run-time write issues in between. By doing various debugging and strace operations, we came to the conclusion that issue happens in some write attempts as follows.

Detailed Description : In the simplest case, consider I have a server and a client. Server writes some messages using write command and client is supposed to read the same data.Major code snippets in Server side is as follows [It is not feasible to extract the actual files and application codes as a whole, below are just the major commands used in server side]:

sockfd = socket(AF_INET, SOCK_STREAM, 0);
int reuse=1;
setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR,& reuse, sizeof(reuse));

[code]....

View 3 Replies View Related

CentOS 5 Server :: Apache Mod_security Looking For Atomic Secured Directory?

Mar 6, 2010

I wasn't sure if this is the right place to ask or comment on this, but since it's about Apache web server I thought it should work. I finally figured out how to set up and bring up the site using virtual hosts in Apache, though at the moment it's just for my localhost install.

I set them up so I can have a place to play with possible new themes and/or test out the Drupal 7 alpha / beta releases without messing up my current configuration. I decided to look at the error logs for the currently configured site and it had a lot of messages similar to the following:

[Sat Mar 06 09:45:39 2010] [error] [client 127.0.0.1] ModSecurity: Unable to retrieve collection (name "ip", key "127.0.0.1"). Use SecDataDir to define data directory first. [hostname "site.local"] [uri "/"] [unique_id "ZnUHgsCoAAEAABdzR2QAAAAB"]

View 4 Replies View Related

OpenSUSE :: Sync Pim Data With Palm Treo 680 Via Bluetooth - Jpilot Sync Suddenly Broken

Oct 24, 2010

I use jpilot on opensuse 11.3 64bit to sync pim data with my Palm Treo 680 via bluetooth. This worked fine until today. Now I get the following error message when I try to sync: Syncing on device bt: Press the HotSync button now dlp_ReadSysInfo error Exiting with status YNC_ERROR_PI_CONNECT Finished.

The last successfull sync was on the 20th October and today is the 24th October. I did not change any settings in jpilot or on my palm device. So I guess there must have been an update of opensuse which causes this error. But I do not now how to look up the updates during this period or how to undo them. Was there an update between the 20th and the 24th Oktober, which might affect either jpilot or bluetooth functionality?

View 1 Replies View Related

General :: Sync Thunderbird Contacts Between Computers, Like Firefox Sync?

Sep 19, 2011

I've discovered Firefox Sync a while ago, and it's absolutely awesome. Now of course I'd like most of my software to work this way! So is there a way to get the same behavior with Thunderbird?

View 1 Replies View Related

Ubuntu One :: Sync Chewing Up CPU Cycles - Using From 50-80% Long After Any Sync-able Files

Sep 10, 2010

I've got Ubuntu One syncing a single 25MB folder on 4 computers. On one of these computers, the ubuntuone-syncdaemon process constantly pegs the CPU, using from 50-80% long after any sync-able files have been modified and successfully synced. The process is only using 8.9MB of RAM.

Specs:
Ubuntu 10.04 (lucid)
Kernel 2.6.32-24-generic
1000.8 MB RAM
Pentium 4 2.53GHz
Free disk space: 280.9 GB
System monitor shows 56.8% total RAM usage, 15.4% swap file usage.

View 3 Replies View Related

Ubuntu Multimedia :: How To Sync Audio On Already Badly Out Of Sync Video?

Jul 9, 2011

Audio sync method. "Stretches/squeezes" the audio stream to match the timestamps, the parameter is the maximum samples per second by which the audio is changed. -async 1 is a special case where only the start of the audio stream is corrected without any later correction.Searching the net makes one believe that this command is just some sort of magic.People just put it in the line and it just works. Isn't that nice?

It says nothing about how to change the TIME the audio starts syncing. Like do I want it to start 5 seconds delayed? Or what about 5 seconds sooner?What if the audio gets more out of sync as the video goes on? Can I slip it a little at a time? What? No magic?No one mentions a file that already has badly synced audio.So what -async 1 really does is simply start the audio at the beginning of the file. LIKE AS IF THAT ISN'T STANDARD PROCEDURE?So what is the exact solution to syncing a messed up video? And why can't it just do the proper "timestamp" sync in the first place?No docs, no info and you are left out in the cold.

View 4 Replies View Related

Ubuntu :: Unable To Install "Simple Compiz Config Settings Manager"

May 31, 2011

Am not able to install "Simple Compiz Config Settings Manager" When I try to install via Ubuntu Software Center (running unity) I get the following messages: "Package dependencies cannot be resolved" "CCSM has unmet dependencies". How can I resolve this issue to install Simple compiz config settings manager ? Is there a workaround ?

View 1 Replies View Related

Fedora :: Firefox Sync Can't Sync Well Under F13

Jun 3, 2010

It seems that selinux has stop weav to sync the bookmarks.I followed the fix code as SELinux suggested,but it can't work.Does anyone know how to solve it?

View 3 Replies View Related

Ubuntu Multimedia :: Get Ipod Nano 3rd Gen 4gig To Sync With Rhythm Box Or Sync Rhythm Box Back To The Ipod?

Jan 9, 2010

able to get an I pod nano 3rd gen 4gig to sync with Rhythm box or sync rhythm box back to the Ipod?

View 2 Replies View Related

Fedora :: Kde Clock Changes?

Feb 6, 2010

i set my clock with this command-/usr/sbin/ntpdate -v ntp-1.mcs.anl.gov ntp-2.mcs.anl.gov
but my clock changes to incorrect time when i restart my system,how can i make it stable?

View 4 Replies View Related

Ubuntu :: How To Set Clock To GMT+2

Aug 25, 2010

I live in Helsinki. The time zone is GMT+2. I tried to set the clock in BIOS but Ubuntu's clock is still 3 hours late. Why? And how to fix it? PS. I want command-line solutions, not GUI.

View 2 Replies View Related







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