Changes between Version 16 and Version 17 of QuickStart

Show
Ignore:
Timestamp:
05/04/09 11:40:09 (16 months ago)
Author:
aj
Comment:

document current hald use

Legend:

Unmodified
Added
Removed
Modified
  • QuickStart

    v16 v17  
    55To install openct, please do as user, 
    66{{{ 
    7 $ wget http://www.opensc-project.org/files/openct/openct-0.6.13.tar.gz 
    8 $ tar xfvz openct-0.6.13.tar.gz 
    9 $ cd openct-0.6.13 
     7$ wget http://www.opensc-project.org/files/openct/openct-0.6.16.tar.gz 
     8$ tar xfvz openct-0.6.16.tar.gz 
     9$ cd openct-0.6.16 
    1010 
    1111$ ./configure --prefix=/usr --sysconfdir=/etc 
     
    8989This is rare, but it happends (especially while a card is initialized). 
    9090 
    91 Linux distributions know three menchanism for hotplugging: 
    92 hotplug and hotplug-ng (both old), udev (medium), hald (new). 
    93 If your distribution uses udev, here is what to do.  
     91Over the time different mechanisms were developed for hotplugging - 
     92how the kernel can get the message "here is a new usb device" to 
     93the user space application that can make good use of it. OpenCT 
     94now suggests to use hald for this, as most distributions prefer this 
     95way and favor it. 
    9496 
    9597{{{ 
    96 # cp etc/openct.udev /etc/udev/rules.d/95-openct.rules 
    97 # cp etc/openct_usb /lib/udev/openct_usb 
    98 # cp etc/openct_pcmcia /lib/udev/openct_pcmcia 
    99 # cp etc/openct_serial /lib/udev/openct_serial 
    100 }}} 
    101  
    102 If your linux distribution is still using old hotplug or hotplug-ng, you can 
    103 instead do this: 
    104  
    105 {{{ 
    106 # cp etc/openct.usermap /etc/hotplug/usb/openct.usermap 
    107 # cp etc/openct_usb /etc/hotplug/usb/openct 
    108 }}} 
    109  
    110 Note: we don't know how to write a map file for pcmcia card 
    111 readers, but the only reader we support needs a current kernel 
    112 and that most likely means you need to use udev anyway. Still, 
    113 if anyone figures out, it should be quite similar to the usb 
    114 hotplug setup. If it works for you, please report back, so we 
    115 can include it in OpenCT. 
    116  
    117 If your linux distribution uses the new hald setup, you can do this instead: 
    118 {{{ 
    119 # mkdir -p /usr/share/hal/fdi/information/10freedesktop/ 
    120 # cp etc/openct.fdi /usr/share/hal/fdi/information/10freedesktop/10-usb-openct.fdi 
    121 # cp etc/openct.hald /usr/bin/hald-addon-openct 
     98 mkdir -p /usr/share/hal/fdi/information/10freedesktop/ 
     99cp etc/openct.fdi /usr/share/hal/fdi/information/10freedesktop/10-usb-openct.fdi 
     100cp openct-policy.fdi /usr/share/hal/fdi/policy/10osvendor/10-usb-openct.fdi  
     101cp etc/openct.hald /usr/lib/hal/hald-addon-openct # distro dependent 
     102chmod 0755 /usr/lib/hal/hald-addon-openct # needs to be executable 
    122103}}} 
    123104 
     
    131112 
    132113{{{ 
    133 # cp etc/openct.conf /etc/openct.conf 
     114cp etc/openct.conf /etc/openct.conf 
    134115}}} 
    135116 
     
    151132 
    152133{{{ 
    153 # /etc/init.d/openct start 
     134/etc/init.d/openct start 
    154135}}} 
    155136 
    156137now you can test it as user: 
    157138{{{ 
    158 $ openct-tool list 
     139openct-tool list 
    159140  0 Towitoko Chipdrive Micro 
    160141  1 Schlumberger E-Gate 
     
    166147 
    167148{{{ 
    168 $ openct-tool list 
     149openct-tool list 
    169150  0 Towitoko Chipdrive Micro 
    170151  1 Aladdin eToken PRO 
     
    179160 
    180161{{{ 
    181 $ openct-tool -r 1 atr 
     162openct-tool -r 1 atr 
    182163Detected Aladdin eToken PRO 
    183164Card present, status changed