Set timezone and time on Centos 6.7

CK CK 3788 
Created at  
541 0 0

When using OAuth 1.0a, it requires timestamp for authentication. The followings are the example of shell commands which can set time information.

 

Setup timezone

To set the timezone of your system clock do the following:

# rm -rf /etc/localtime

# ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime

 

Set hardware time

The hardware clock is the clock that runs in you PC hardware even if you disconnect it from the main power supply. This is because it has a lithium battery in the modern computers and another type of battery in the old ones.

# hwclock --set --date="2012-04-19 16:45:05" –localtime

# hwclock –show

 

Setup NTP

To install NTP for automatic time setting:

# yum install ntp ntpdate ntp-doc

 

One more a thing you need to make system to run ntpd automatically, you should run below command:

# chkconfig ntpd on

Tags Centos Hardware time NTP OAuth Timezone hwclock localtime Facebook X
Comments 0
Similar posts
  1. mcrypt missing when using phpMyAdmin on Centos 6.7
    548
  2. Adding new cron job for automated processing on every 10 minutes on Centos 6.7
    1,330
  3. Setup Apache+PHP+MySQL on Centos 6.7
    605
  4. Configuring IP Address on Centos 6.7
    789
  5. How to mount windows shared folder on Centos 6.8 - mount error 12 = Cannot allocate memory to the mount.cifs(8)
    912
  6. How to optimize MySQL automatically in CentOS Linux
    1,007
  7. Generate Let’s Encrypt Wildcard SSL Certificate
    626
  8. Upgrading to GCC 4.9.4 in CentOS 7 requires installing a newer version manually
    583
  1. Gmail requires all senders to authenticate with either SPF or DKIM.
    681
  2. Bash script to install postfix and sasl for sending email
    1,195
  3. Guide for tmux shortcuts - split current pane, toggle pane
    1,300
  4. Tistory remote blogging example based in CLI & PHP
    2,719
  5. Generate Let’s Encrypt Wildcard SSL Certificate
    626
  6. Preventing Unauthorized Image Crawling by Bots: A Clever Discovery and How to Address It
    1,727
  7. Network diagnostic tool for IPv4/IPv6 - traceroute/traceroute6
    1,918
  8. chmod by type (directory and file permission)
    734
  9. Check network port is open or not on CentOS 7
    1,188
  10. Change MySQL port number for security purpose
    815
  11. CentOS warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory on CentOS 7
    1,072
  12. Set up an SMTP server on CentOS 7
    726
  13. How to mount windows shared folder on Centos 6.8 - mount error 12 = Cannot allocate memory to the mount.cifs(8)
    912
  14. Configuring IP Address on Centos 6.7
    789
  15. Adding new cron job for automated processing on every 10 minutes on Centos 6.7
    1,330
  16. How to optimize MySQL automatically in CentOS Linux
    1,007
  17. File conversion to UTF in Schell Script
    1,023
  18. Server status checking by Shell Script
    1,516
  19. How can I increase MySQL max connections?
    460
Recently updated
  1. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    40
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    34
  3. How do I create animated background for Google Meet?
    20,613
  4. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    244
  5. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    94
  6. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    157
  7. Array of arguments passed to script in PHP
    90
  8. Invalid Auction Storms in Ad Tech
    98
  9. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    202
  10. The Two Clocks of Ad Server Architecture
    70
  11. Frequency Cap Architecture Overview
    514
  12. Collecting Proof-of-Play from 100,000 Screens
    146
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    287
  14. What is RedisVL?
    109
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    230
  16. TPU & GPU Cluster Management Tools
    244
  17. The Concept of Scaffolding in AI Agents
    233
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    583
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    258
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    339
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    202
  22. Machine Learning: Training vs. Ranking
    221
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    222
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    195
  25. Designing a Data Curation System Around a Vector Database
    220
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    256
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    656
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    195
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    217
  30. Understanding Data Lineage
    260