From owner-freebsd-questions@FreeBSD.ORG Sat Nov 5 07:48:22 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81106106566C for ; Sat, 5 Nov 2011 07:48:22 +0000 (UTC) (envelope-from alexander.kapshuk@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0B3EF8FC1B for ; Sat, 5 Nov 2011 07:48:21 +0000 (UTC) Received: by faar19 with SMTP id r19so5027654faa.13 for ; Sat, 05 Nov 2011 00:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=2NqxwfmEjN8e1hjFlO1mv2HNYjgzkHRc/fWcjawPJzw=; b=FfgxuEciUFPQYpDYKaONIUF5rBq5osGWJdx045Jtbvaqwg5JgIErYGafpqMk/U10E2 rHRNOgbB5Ypz6Ib/Afdyvd6zXr82tC+OKRquTnh2me5y0N+ZbEY0oprCgoLBT+o1+Mxn Qsv0sN9eg9fGynfZvECj/slh3BSBkSnp8TNF4= Received: by 10.223.92.135 with SMTP id r7mr15199304fam.35.1320479300844; Sat, 05 Nov 2011 00:48:20 -0700 (PDT) Received: from [192.168.1.2] (93-127-96-97.static.vega-ua.net. [93.127.96.97]) by mx.google.com with ESMTPS id d3sm7850331fad.2.2011.11.05.00.48.19 (version=SSLv3 cipher=OTHER); Sat, 05 Nov 2011 00:48:20 -0700 (PDT) Message-ID: <4EB4EA43.80405@gmail.com> Date: Sat, 05 Nov 2011 09:48:19 +0200 From: Alexander Kapshuk User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:7.0.1) Gecko/20111014 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4EB44272.6060809@gmail.com> <44vcqzbrlu.fsf@be-well.ilk.org> <20111104215321.5f9ca2eb@nonamehost.> <44r51nbq4p.fsf@be-well.ilk.org> <4EB457C1.2070607@gmail.com> <44lirvbopw.fsf@be-well.ilk.org> <4EB46E5C.2000107@gmail.com> <44bosro5uj.fsf@lowell-desk.lan> In-Reply-To: <44bosro5uj.fsf@lowell-desk.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: timothyk@wallnet.com, Lowell Gilbert Subject: Re: trouble setting timezone for ukraine X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2011 07:48:22 -0000 On 11/05/11 00:55, Lowell Gilbert wrote: > Alexander Kapshuk writes: > >> On 11/04/11 22:46, Lowell Gilbert wrote: >>> Alexander Kapshuk writes: >>> >>>> the actual current time is 10.21 pm. >>> Your system's clock may be off as well... >>> >>>> any idea when an updated time zone file will become available? >>> It's already in the FreeBSD tree: >>> http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/tzdata/europe?rev=1.7.2.2;content-type=text%2Fplain >>> >>> To install it, you'll need something like >>> # zic europe >>> (where "europe" is the file from the URL above) >>> and then tzsetup(8) should install the correct information. >>> >>> Or you could update your system to anything after October 26. >> thanks. >> >> here's what i did based on my understanding of the instructions given above: >> # cd $HOME >> # fetch -o europe >> http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/tzdata/europe?rev=1.7.2.2;content-type=text%2Fplain >> # zic europe >> # tzsetup -r >> >> :; date >> Sat Nov 5 00:54:32 EET 2011 >> >> the timezone did change from 'FET' to 'EET', but the time is still >> wrong by being 1 hour ahead of the actual ukraine time. >> >> another thing i tried, which didn't seem to help was set these >> environment variables in my /etc/rc.conf: >> (as suggested here: http://forums.freebsd.org/showthread.php?t=10276 >> [post # 6]) >> >> ntpdate_enable="YES" >> ntpdate_flags="-u -b" >> ntpdate_hosts="ua.pool.ntp.org" > That will only do anything at startup. > To do the same thing without needing to reboot, the command line would be > # ntpdate -u -b ua.pool.ntp.org > >> i must be doing something wrong. just don't know what is it. >> >> can anyone please suggest what it is i should be doing? > Well, start with what I suggested a while back: try "date -u" > and see whether that is the correct UTC time. If not, the ntpdate > command will solve you problems. If it is, there's still something else > wrong. > thanks for your replies. running 'date -u' indicated that the system clock on my machine was out of sync as well. running 'ntpdate -u -b ua.pool.ntp.org' set both the system clock and the local time to the right time. :; date -u Sat Nov 5 07:24:23 UTC 2011 :; date Sat Nov 5 09:24:26 EET 2011 then i read somewhere that 'ntpdate' is bound to become deprecated at some stage. it was suggested that 'ntpd' be used instead. so i removed the 'ntpdate' variables from my '/etc/rc.conf' and replaced them with: :; grep ntpd /etc/rc.conf ntpd_enable="YES" ntpd_sync_on_start="YES" http://www.freebsd.org/doc/handbook/network-ntp.html talks about modifying the '/etc/ntp.conf' file by adding information on what servers to use. it also said that 'By default, your NTP server will be accessible to all hosts on the Internet. The restrict option in /etc/ntp.conf allows you to control which machines can access your server' i'm not sure i clearly understand what has to be done to make the ntp server on my system to be inaccessible to anyone but me. a sample /etc/ntp.conf would be appreciated. thanks. sasha