LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-12-2004, 10:43 PM   #1
Drayven
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
adjusting the time in debian


hey peeps, i was wondering how i could change the system time on a debian 3.0 r2 load without installing a separate package?

i've tried going through base-config, but switching the time to non-gmt still puts it off an hour (i figure its because of daylight savings).

i'm new to debian, but i've worked with many different linux distros over the past 3 years or so (#1 thing i noticed was no 'linuxconf' of course).

if anyone could let me know the command/config tool that i could use to change the date/time on my box, i'd appreciate it (and i repeat, i don't really wanna download anything that isn't core debian).

thanks!
 
Old 04-13-2004, 12:19 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Try the date command.
 
Old 04-13-2004, 12:44 AM   #3
mbegovic
Member
 
Registered: Nov 2003
Location: Vancouver, Canada
Distribution: Currently FC3
Posts: 342

Rep: Reputation: 30
date mmddhhmmyyyy
 
Old 04-13-2004, 11:25 AM   #4
ekman
Member
 
Registered: Apr 2004
Location: Sweden
Posts: 41

Rep: Reputation: 15
Hi,
The system clock can be changed with "date" as proposed, but I guess that you get the
wrong time after boot, and want to correct it, right? If you have configured the right
time-zone, the most likley cause is that you have the hwclock running at local time
(the usual windows setting) and Linux thinks it runs in UTC (in which case your location
would be 1 hour from GMT). If so, you can set the system clock from the hwclock with
> hwclock--hctosys --localtime
read the man page for more info. I don't know how Debian sets the time at boot, but
check the /etc/sysconfig/clock if it exists, hwclock is anyway a common Linux program and is
probably included in the distribution.

If you have the time-zone incorrect the "manual" way to set it is to make a link in /etc;
> cd /etc
> ln -sf /usr/share/zoneinfo/Europe/Stockholm localtime

Regards,
L Ekman
 
Old 04-15-2004, 10:20 PM   #5
Drayven
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Original Poster
Rep: Reputation: 0
ahhh...thank you ekman. i've been spoiled with redhat as of late, so i haven't had to worry about all this.

thanks again!
 
Old 04-16-2004, 01:33 AM   #6
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Oh, if you want to change time zones then tzconfig will to that with a minimum of fuss. Be aware that windows XP (not sure about 2k NT and the rest) get their time off a remote server at boot time by default. If you find your time changing consistently by an hour every time you boot windows then disable that feature.

Last edited by adz; 04-16-2004 at 01:34 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adjusting time under RH trutnev Red Hat 1 03-28-2004 01:56 PM
It's Debian Time Killer7 Linux - Software 2 02-08-2004 04:35 PM
TOTAL noob -> Difficult time adjusting to Linux no1sos Linux - Newbie 7 10-27-2003 05:10 AM
Debian for the first time. Omen.o_O Linux - Newbie 4 07-26-2003 08:59 AM
INFO: installing, configuring and adjusting AIDE for Debian markus1982 Linux - Software 4 05-26-2003 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration