Upload
rajeshsgss
View
221
Download
4
Embed Size (px)
Citation preview
HomeSubscribe FeedAdvertiseContact UsForumRSS
How To Configure Timezone on SLES LinuxPosted by Planet Malaysia on May 9, 2008
The following tutorial will guide you How to configure TIMEZONE on SLES Linux.
Basically you can configure Linux timezone using two methods which is using command or YaST.
Note: use timezone GMT+0 for an example below.
For YaST timezone setup, its pretty simple. Login to terminal and type:
#YasT Setup
yast timezone
Select Global, select GMT+0Hardware clock Set To: LocaltimeClick Accept.
For command line setup, youre require to know these 2 files /etc/localtime and /etc/sysconfig/clock.
#Backup existing file
mv /etc/localtime /etc/localtime.old
cp /etc/sysconfig/clock /etc/sysconfig/clock.old
: : !
How To Configure Timezone on SLES Linux | Planet Malaysia http://www.planetmy.com/blog/how-to-configure-timezone-on-sles-linux/
1 of 5 2/24/2015 12:30 PM
ln -s /usr/share/zoneinfo/GMT+0 /etc/localtimevi /etc/sysconfig/clock
TIMEZONE=GMT+0
HWCLOCK="--localtime"
Bear in mind, you can have different timezone setup for individual or global user by using user profile inyour system. For an example,
#Edit configuration file
vi /etc/profile or ~username/.bash_profileexport TZ=/usr/share/zoneinfo/Asia/Kuala_Lumpur
Export TZ will overwrite /etc/sysconfig/clock or /etc/localtime setup. Mean that I can use Kuala Lumpuras my separate time zone for particular user in the same system eventhrough my primary timezone setup isGMT+0.
NTP setup#Edit NTP configuration file
vi /etc/ntp.confserver 0.europe.pool.ntp.org
server 1.europe.pool.ntp.orgserver 2.europe.pool.ntp.orgserver 3.europe.pool.ntp.orgserver your.ntp.server
#Restart NTP Server
rcxntpd xntpd restart
Hardware Clock
#showing hardware clock
hwclock --show
#set the system time from the hardware clock
hwclock --hctosys
#set the hardware clock from the system time
hwclock --systohc
Done!
Possibly Related Posts:
How to Install Webmin on OpenFilerlppasswd: Unable to open passwd file: Permission deniedMissing /var/log/lastlogTelnet service_limit errorHow To Capture PUTTY Session Log
How To Configure Timezone on SLES Linux | Planet Malaysia http://www.planetmy.com/blog/how-to-configure-timezone-on-sles-linux/
2 of 5 2/24/2015 12:30 PM
Categories How's To, Open Source
Linux LAST Login Admin Details Script
Comments
Leave a Reply
Name (required)
Email Address(required)
Website
Notify me of followup comments via e-mail
" #&' (*+
Planet MalaysiaFollow us on Twitter
web www.planetmy.com
Planet Malaysia on Facebook
Recent Posts
Android Development Training Program for Beginner (FREE)MSC Malaysia Fully Sponsored 3D Animation CourseHow to add Dell PERC Drivers into VMware Converter Cold Clone ISOTop 10 Free Anti VirusHow to Install Webmin on OpenFiler
How To Configure Timezone on SLES Linux | Planet Malaysia http://www.planetmy.com/blog/how-to-configure-timezone-on-sles-linux/
3 of 5 2/24/2015 12:30 PM
Google Tablet iPadMost Expensive Domain Names UpdatedMicrosoft SQL 2008 Agent not startsVMware Workstation 7 Serial Key
Recent CommentsUbuntu Tips And Tricks just-shared on How to Install Citrix ICAClient 10 on Ubuntu 7.04Feisty FawnChee YP on Android Development Training Program for Beginner (FREE)johnpfjefferies on Windows cant stop your Generic volume device because a program isstill using itjohnpfjefferies on Windows cant stop your Generic volume device because a program isstill using ityunodie on Maxis Broadband
Archives
CategoriesAdvertisementAggregatesamuletsAnnouncementBlogBlogrollContactsEventsHow's ToISPMake MoneyMicrosoftNewsOpen SourcePersonalPoliticsPollReligionSEOSoccerTipsTrainingUncategorizedVMwareWeb 2.0Windows
How To Configure Timezone on SLES Linux | Planet Malaysia http://www.planetmy.com/blog/how-to-configure-timezone-on-sles-linux/
4 of 5 2/24/2015 12:30 PM
Recently WrittenAndroid Development Training Program for Beginner (FREE)MSC Malaysia Fully Sponsored 3D Animation CourseHow to add Dell PERC Drivers into VMware Converter Cold Clone ISOTop 10 Free Anti VirusHow to Install Webmin on OpenFiler
Yearly Archives201120102009200820072006
Subscribe RSS Feed
Find It
loading
How To Configure Timezone on SLES Linux | Planet Malaysia http://www.planetmy.com/blog/how-to-configure-timezone-on-sles-linux/
5 of 5 2/24/2015 12:30 PM