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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-12-2004, 10:43 PM
|
#1
|
LQ Newbie
Registered: Apr 2004
Posts: 2
Rep:
|
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!
|
|
|
04-13-2004, 12:19 AM
|
#2
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
Try the date command.
|
|
|
04-13-2004, 12:44 AM
|
#3
|
Member
Registered: Nov 2003
Location: Vancouver, Canada
Distribution: Currently FC3
Posts: 342
Rep:
|
date mmddhhmmyyyy
|
|
|
04-13-2004, 11:25 AM
|
#4
|
Member
Registered: Apr 2004
Location: Sweden
Posts: 41
Rep:
|
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
|
|
|
04-15-2004, 10:20 PM
|
#5
|
LQ Newbie
Registered: Apr 2004
Posts: 2
Original Poster
Rep:
|
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!
|
|
|
04-16-2004, 01:33 AM
|
#6
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|