Changes between Version 1 and Version 2 of doc/TorBOX/Dev/timesync


Ignore:
Timestamp:
Sep 27, 2012, 11:40:24 PM (7 years ago)
Author:
proper
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/TorBOX/Dev/timesync

    v1 v2  
    1 [http://aos.sf.net aos Homepage]
     1TorBOX has been renamed to Whonix.
    22
    3 [https://tails.boum.org/contribute/design/Time_syncing/ tails_htp] has already been copied into aos. This file documents the steps done to copy it and implementation differences.
     3This page has been moved. The History of this page might still be interesting.
    44
    5 = Overview =
    6 
    7 ||                                              ||Tails                                 ||aos
    8 ||based on                                      ||Debian                                ||Ubuntu
    9 ||adduser htp                                   ||/chroot_local-hooks/06-adduser_htp    ||Done in aos_internal_install_script.
    10 ||init script                                   ||/etc/init.d/htpdate                   ||/etc/init.d/htpdate ^1^
    11 ||tails_htpdate configuration file              ||/etc/default/htpdate                  ||/etc/default/htpdate
    12 ||uwt wrapper for stream isolation              ||Not used in Tails.                    ||/|usr/local/sbin/htpdate
    13 ||tails_htpdate binary                          ||/usr/local/sbin/htpdate               ||/usr/bin/htpdate
    14 ||anachron script                               ||Not used in Tails.                    ||/etc/cron.hourly/htpdate
    15 ||anachron helper delay script                  ||Not used in Tails.                    ||/usr/local/bin/htpdate_hourly
    16 ||timesync gui                  ||Not used in Tails.                    ||/usr/local/bin/timesync
    17 ||/etc/init.d/htpdate sudoers exception || Not used in Tails. || /etc/sudoers
    18 
    19 ^1^ minor changes: deactivates guest additions time sync.
    20 
    21 Aos essentially adds stream isolation, runs every hour at a random minute and an optional graphical user interface.
    22 
    23 = Knowledge assumed =
    24 {{{
    25 # Ubuntu Precise:
    26 echo $PATH
    27 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    28 }}}
    29 
    30 = Instructions getting tails_htp into aos =
    31 
    32 {{{
    33 # Get the Tails signing key:
    34 # https://tails.boum.org/doc/about/openpgp_keys/index.en.html
    35 #
    36 # https://tails.boum.org/contribute/git/
    37 git clone git://git.immerda.ch/amnesia.git
    38 cd amnesia
    39 git tag -v 0.12
    40 
    41 # Alternatively it's also possible to download Tail's CD and to unpack it.
    42 # sudo unsquashfs -x -dest /home/user/b filesystem.squashfs
    43 }}}
    44 
    45 {{{
    46 # /amnesia/config/chroot_local-packageslists/tails-common.list contains a list of all Tails dependencies.
    47 # Seach for "needed by htpdate". You'll see tails_htp depends on the following packages.
    48 libdatetime-perl libdatetime-format-dateparse-perl libgetopt-long-descriptive-perl libtry-tiny-perl
    49 }}}
    50 
    51 {{{
    52 # adduser htp
    53 /home/user/amnesia/config/chroot_local-hooks/06-adduser_htp
    54 # Has been added to aos_internal_install_script(s).
    55 }}}
    56 
    57 {{{
    58 # We need tails_htpdate, the actual binary.
    59 cp /home/user/amnesia/config/chroot_local-includes/usr/local/sbin/htpdate /home/user/aos/aos_shared/usr/bin/htpdate
    60 }}}
    61 
    62 {{{
    63 # Init script.
    64 mkdir -p /home/user/aos/aos_shared/etc/init.d/
    65 cp /home/user/amnesia/config/chroot_local-includes/etc/init.d/htpdate /home/user/aos/aos_shared/etc/init.d/htpdate
    66 # got added by aos_internal_install_script: update-rc.d htpdate defaults
    67 }}}
    68 
    69 {{{
    70 # Copy server pool for tails_htp.
    71 cp /home/user/amnesia/config/chroot_local-includes/etc/default/htpdate /home/user/aos/aos_shared/etc/default/htpdate
    72 }}}
    73 
    74 {{{
    75 # The server pool /etc/default/htpdate contains a line:
    76 # config/chroot_local-includes/usr/local/bin/getTorbuttonUserAgent
    77 #
    78 # Will not be used in aos, since there is also no Ubuntu package with Tor Button.
    79 # Open Tor Browser about:config and search for "useragent_override", copy the value.
    80 # Manually add to /home/user/aos/aos_shared/etc/default/htpdate
    81 # Replace
    82 HTTP_USER_AGENT="$(/usr/local/bin/getTorbuttonUserAgent)"
    83 # with
    84 #HTTP_USER_AGENT="$(/usr/local/bin/getTorbuttonUserAgent)"
    85 HTTP_USER_AGENT="Mozilla/5.0 (Windows NT 6.1; rv:10.0) Gecko/20100101 Firefox/10.0"
    86 }}}
     5https://sourceforge.net/p/whonix/wiki/Dev_timesync/