Results 1 to 3 of 3

Thread: hwclock and local time on Windows machines

  1. #1
    Junior Member registered user
    Join Date
    Feb 2010
    Posts
    12

    hwclock and local time on Windows machines

    I've been having some interesting issues with the Windows convention of setting the hardware clock to local time. Knoppix seems to expect that the hardware clock will always be set to UTC and it seems that all the time zone-related cheatcodes are based around this assumption (they simply offset the hardware clock the appropriate amount). Normally this isn't a big deal: Knoppix just assumes that the hwclock and time zone are both UTC (even though they're both US/Eastern) and they all lived happily ever after.

    Not Tor, though. The combination of a UTC timezone and a hardware clock set to local time freaks Tor out to no end, and makes it unable to communicate properly with the network. Setting the time properly (or installing NTP or something) handles this issue nicely, but... now Windows thinks the clock is four hours off!

    I think I've tracked this issue to /usr/share/initscripts/default.rcS, where a setting of UTC=yes is requiring the OS to treat the hardware clock as UTC. This setting is "no" on my Ubuntu installation that dual-boots with Windows, and it treats the hardware clock properly. Does anyone know of a cheatcode that can change this value on the fly? I might try setting it to "no", then using the utc cheatcode in combination with tz and see what the results are sometime later.

  2. #2
    Junior Member registered user
    Join Date
    Feb 2010
    Posts
    12
    Ok, turns out /usr/share/initscripts/default.rcS is actually a reference file of the default values (which I guess was changed at installation, in Ubuntu's case). /etc/default/rcS is the actual configuration file. And it looks like it worked! I changed UTC to equal "no" and made sure I entered an appropriate time zone when I booted (I use EST5EDT), and everyone was happy, including Tor.

    Two problems though: first of all, boot is a little slower if you use the tz cheatcode with a persistent image (probably has something to do with access times), regardless of the value of UTC in /etc/default/rcS. The other problem is that there is now no simple way to get the old behavior back short of editing the file again and then rebooting (the utc cheatcode only changes the time zone).

    Other than that, this seems to be the best way to get Knoppix to handle hardware clocks set by Windows.

  3. #3
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by garaden View Post
    Ok, turns out /usr/share/initscripts/default.rcS is actually a reference file of the default values (which I guess was changed at installation, in Ubuntu's case). /etc/default/rcS is the actual configuration file. And it looks like it worked! I changed UTC to equal "no" and made sure I entered an appropriate time zone when I booted (I use EST5EDT), and everyone was happy, including Tor.

    Two problems though: first of all, boot is a little slower if you use the tz cheatcode with a persistent image (probably has something to do with access times), regardless of the value of UTC in /etc/default/rcS. The other problem is that there is now no simple way to get the old behavior back short of editing the file again and then rebooting (the utc cheatcode only changes the time zone).

    Other than that, this seems to be the best way to get Knoppix to handle hardware clocks set by Windows.
    Thanks! That worked well for me, too. The only trick I can add is to edit it with the following in the terminal window:
    Code:
    sudo leafpad /etc/default/rcS
    Cheers!
    Krishna

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Cisco 2801 Integrated Services Router ISR w/ WIC-1DSU-1-v2, VIC2-2FXS CISCO2801 picture

Cisco 2801 Integrated Services Router ISR w/ WIC-1DSU-1-v2, VIC2-2FXS CISCO2801

$59.99



Cisco 2900 Series CISCO2951/K9 v03 Integrated Services Router picture

Cisco 2900 Series CISCO2951/K9 v03 Integrated Services Router

$54.99



Cisco Nexus 48-Port 10G SFP+ Switch N9K-9396PX w/ 9K-M12PQ 12-Port 40G QSFP picture

Cisco Nexus 48-Port 10G SFP+ Switch N9K-9396PX w/ 9K-M12PQ 12-Port 40G QSFP

$249.99



Cisco Series 3845 Integrated Service Router picture

Cisco Series 3845 Integrated Service Router

$109.99



Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ C3850-NM-4-1G Mod picture

Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ C3850-NM-4-1G Mod

$83.00



Cisco QSFP-40G-SR-BD BiDi Short-reach Transceiver, 1 Year Warranty picture

Cisco QSFP-40G-SR-BD BiDi Short-reach Transceiver, 1 Year Warranty

$17.25



Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850 picture

Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850

$44.99



Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03  picture

Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03

$8.00



Cisco WS-C3850-48F-S Catalyst 3850 48x 1GB PoE+ RJ-45 1x Module Switch picture

Cisco WS-C3850-48F-S Catalyst 3850 48x 1GB PoE+ RJ-45 1x Module Switch

$185.00



Cisco C9300-48 48 Port Switch Dual PSU W/C9300-NM-8X P/N: C9300-48U-A Tested picture

Cisco C9300-48 48 Port Switch Dual PSU W/C9300-NM-8X P/N: C9300-48U-A Tested

$799.99