Find the answer to your Linux question:
Results 1 to 6 of 6
hi,guys i need to change my hardware time and date as my hardware time don't right but i don't have network i need the the commands and the steps please ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    17

    how to change time of my system


    hi,guys

    i need to change my hardware time and date as my hardware time don't right
    but i don't have network
    i need the the commands and the steps

    please help me

    Thanks & best regards

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,890
    Make sure the clock is set correctly in the BIOS, this will have the biggest impact. The way you set your timezone varies between distributions. Have you tried right-clicking on the clock on your Gnome desktop? That gives you options to set the system clock.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    17
    but i can't change it from Gnome Desktop
    i need to change it by commands

  4. #4
    Just Joined! Ajax4Hire's Avatar
    Join Date
    May 2006
    Location
    3rd planet from sun
    Posts
    12
    Use the date command to set the date/time for your system.
    You need to be root (su -) or have root priviledge (sudo).

    sudo date -s "07/04/1776 13:14:34"
    Set the date to July(07), 4th (04), 1:14:34pm (1314 :34), 1776 AD

    But the real answer is to use ntpd (network time protocol) to update your system time daily. ntpd is the daemon that contacts the time server(s) and synchronizes your system with accurate stable world clocks.

  5. #5
    Just Joined!
    Join Date
    Jun 2010
    Posts
    17
    what can i make to change using ntpd?
    please tell me the steps & commands
    thanks for your help

  6. #6
    Just Joined! Ajax4Hire's Avatar
    Join Date
    May 2006
    Location
    3rd planet from sun
    Posts
    12

    Google is your friend...

    Quote Originally Posted by kareem View Post
    what can i make to change using ntpd?
    please tell me the steps & commands
    thanks for your help
    Google is your friend...
    Google Search "linux ntpd client"

    My problem with ntpd is udp port 123 is firewall blocked in my corporate environment.
    If you are on an open network, then update /etc/ntp.conf to add servers and turn on ntpd.
    Now your system will update its time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •