/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Teddy Hogeborn
  • Date: 2008-11-09 06:40:29 UTC
  • mto: (24.1.113 mandos)
  • mto: This revision was merged to the branch mainline in revision 238.
  • Revision ID: teddy@fukt.bsnet.se-20081109064029-df71jpoce308cq3v
First steps of a D-Bus interface to the server.

* mandos: Also import "dbus.service".
  (Client): Inherit from "dbus.service.Object", which is a new-style
            class, so inheriting from "object" is no longer necessary.
  (Client.interface): New temporary variable which only exists during
                     class definition.

  (Client.getName, Client.getFingerprint): New D-Bus getter methods.
  (Client.setSecret): New D-Bus setter method.
  (Client._set_timeout): Emit D-Bus signal "TimeoutChanged".
  (Client.getTimeout): New D-Bus getter method.
  (Client.TimeoutChanged): New D-Bus signal.
  (Client._set_interval): Emit D-Bus signal "IntervalChanged".
  (Client.getInterval): New D-Bus getter method.
  (Client.intervalChanged): New D-Bus signal.
  (Client.__init__): Also call "dbus.service.Object.__init__".
  (Client.started): New boolean attribute.
  (Client.start, Client.stop): Update "self.started", and emit D-Bus
                               signal "StateChanged".
  (Client.StateChanged): New D-Bus signal.
  (Client.stop): Use "self.started" instead of misusing "self.secret".
                 Also simplify code by using "getattr" instead of
                 "hasattr".
  (Client.checker_callback): Emit D-Bus signal "CheckerCompleted".
  (Client.CheckerCompleted): New D-Bus signal.
  (Client.bumpTimeout): D-Bus method name for "bump_timeout".
  (Client.start_checker): Emit D-Bus signal "CheckerStarted".
  (Client.CheckerStarted): New D-Bus signal.
  (Client.checkerIsRunning): New D-Bus method.
  (Client.StopChecker): D-Bus method name for "stop_checker".
  (Client.still_valid): First check "self.started".
  (Client.stillValid): D-Bus method name for "still_valid".

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
  
5
5
** Operating System
6
6
   
7
 
   Debian 6.0 "squeeze" or Ubuntu 10.10 "Maverick Meerkat".
 
7
   Debian 5.0 "lenny" or Ubuntu 8.04 "Hardy Heron".
8
8
   
9
9
   This is mostly for the support scripts which make sure that the
10
10
   client is installed and started in the initial RAM disk environment
11
11
   and that the initrd.img file is automatically made unreadable.  The
12
12
   server and client programs themselves *could* be run in other
13
13
   distributions, but they *are* specific to GNU/Linux systems, and
14
 
   are not written with portabillity to other Unixes in mind.
 
14
   are not intended to be portable to other Unixes.
15
15
  
16
16
** Libraries
17
17
   
39
39
*** Mandos Server
40
40
    + GnuTLS 2.4          http://www.gnu.org/software/gnutls/
41
41
    + Avahi 0.6.16        http://www.avahi.org/
42
 
    + Python 2.6          http://www.python.org/
 
42
    + Python 2.4          http://www.python.org/
43
43
    + Python-GnuTLS 1.1.5 http://pypi.python.org/pypi/python-gnutls/
44
44
    + dbus-python 0.82.4  http://dbus.freedesktop.org/doc/dbus-python/
45
 
    + PyGObject 2.14.2    http://library.gnome.org/devel/pygobject/
46
 
    + Urwid 0.9.8.3       http://excess.org/urwid/
 
45
    + python-ctypes 1.0.0 http://pypi.python.org/pypi/ctypes
47
46
    
48
47
    Strongly recommended:
49
48
    + fping 2.4b2-to-ipv6 http://www.fping.com/
50
49
    
51
50
    Package names:
52
51
    python-gnutls avahi-daemon python python-avahi python-dbus
53
 
    python-gobject python-urwid
 
52
    python-ctypes
54
53
   
55
54
*** Mandos Client
56
55
    + initramfs-tools 0.85i
99
98
     server computer*.
100
99
  
101
100
  4. Configure the client to use the correct network interface.  The
102
 
     interface to use is automatically chosen at boot, and if this
103
 
     needs to be adjusted, it will be necessary to edit
104
 
     /etc/initramfs-tools/initramfs.conf to change the DEVICE setting
105
 
     there.  Alternatively, the file /etc/mandos/plugin-runner.conf
106
 
     can be edited to add a "--device" parameter for the
107
 
     mandos-client(8) plugin.  Please note: If any of those files are
108
 
     changed, the initrd.img file must be updated, possibly using the
109
 
     following command:
 
101
     default is "eth0", and if this needs to be adjusted, it will be
 
102
     necessary to edit /etc/mandos/plugin-runner.conf to uncomment and
 
103
     change the line there.  If that file is changed, the initrd.img
 
104
     file must be updated, possibly using the following command:
110
105
     
111
106
        # update-initramfs -k all -u
112
107
  
113
108
  5. On the server computer, start the server by running the command
114
109
     For Debian: su -c 'invoke-rc.d mandos start'
115
 
     For Ubuntu: sudo service mandos start
 
110
     For Ubuntu: sudo invoke-rc.d mandos start
116
111
     
117
112
     At this point, it is possible to verify that the correct password
118
113
     will be received by the client by running the command: