Solved

Ubuntu Manually Set Time

Posted on 2013-05-17
4
473 Views
Last Modified: 2013-05-21
I have an Ubuntu server that is about 30 minutes off. It's on a private 10. network with no access to the outside (and no proxy to use) so I syncing with an ntp server doesn't work.

How can I manually tell the server what time it is?
0
Comment
Question by:brendan-amex
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
msifox earned 250 total points
ID: 39175813
console command
date MMDDhhmm[[CC]YY][.ss]
for example
date 05172105
for 17th may 9:05pm
0
 
LVL 7

Expert Comment

by:msifox
ID: 39175818
Or reboot, enter bios setup, and do it there.
I did this once on a windows client that thought that I'm not autorized to correct the time setting.
0
 
LVL 29

Assisted Solution

by:serialband
serialband earned 250 total points
ID: 39176198
After you set the date and time with the date command, sync it to hardware with
hwclock --systohc
so that you don't have to reboot.
0
 

Author Closing Comment

by:brendan-amex
ID: 39186007
Thank you both. The answer from msifox answered my question but the help from serialband is a great suggestion!!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
wifi not working on Raspberry Pi 3? 2 76
linux 13 75
Linux Real Time Memory on Distinct 24 Cycle 7 29
Linux mount of Windows Shared Now Fails 8 73
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question