https://github.com/thenets/chronos-sync-rpc
Application to synchronize clock between a client and a server using RPC. Core written in C and UI written in Python.
https://github.com/thenets/chronos-sync-rpc
Last synced: 10 months ago
JSON representation
Application to synchronize clock between a client and a server using RPC. Core written in C and UI written in Python.
- Host: GitHub
- URL: https://github.com/thenets/chronos-sync-rpc
- Owner: thenets
- Created: 2015-10-21T13:09:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-23T19:11:30.000Z (almost 10 years ago)
- Last Synced: 2025-08-02T01:37:56.238Z (11 months ago)
- Language: C
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chronos Sync RPC
A simple way to synchronize the clock between two machines over a network.
## 1. Requirements
This project was created over Ubuntu 14.04.
You'll need to install some additional packages on your server and developer machines.
Just run the following command:
```
# sudo apt-get install -y rpcbind gcc build-essential
```
## 2. How to use
Run the server and open the client to get the server's clock.
### 2.1. Running the server
Run as root:
```
# sudo ./dist/server
```
### 2.2. Running the client (command line)
Run as root:
```
"./dist/client "
@method: [0-Basic] [1-Christian] [2-NTP]
```
Example:
```
$ ./dist/client 192.168.0.105 0
```
### 2.3. Running the client from GUI
The client with GUI needs to be run from a super user.
```
# sudo ./chronos.sh
```
## 3. How to build
Run as a normal user, just run:
```
$ ./compile.sh
```