Solved

Ubuntu Manually Set Time

Posted on 2013-05-17
4
469 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 28

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Video Streaming 6 73
Steps to follow for Maintenance of Servers 4 62
curl SSL certificate unable to get local issuer certificate 15 66
linux 13 49
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

776 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