[CBLX] ECAFE suite: test de brltty version officielle rpm

[ Thread Index | Date Index | More lists.tuxfamily.org/carrefourblinux Archives ]


Yo Pierre, Sam et les autres,

Quelques résultats de tests effectués là de suite:

essai de brltty, paquet (rpm) officiel sur la Mandriva de mon notebook
ECAFE.

D'abord:
[root@guillemot ~]# whereis brltty
brltty: /bin/brltty /etc/brltty /etc/brltty.conf /lib/brltty

Le bin brltty est pas dans /sbin mais dans /bin; mais je suppose que ça n'a
aucune importance ?

Parcontre je vois jusqu'à 3 fichiers /bin/brltt*:
[root@guillemot ~]# ls -l /bin/brltt*
-rwxr-xr-x 1 root root 283492 2008-03-10 22:38 /bin/brltty
-rwxr-xr-x 1 root root   1343 2008-03-10 22:38 /bin/brltty-config
-rwxr-xr-x 1 root root   3115 2008-03-10 22:38 /bin/brltty-install

Je les mets en pj mais ne les ai pas utilisés, je viens juste de lancer
brltty étant root, après avoir configuré /etc/brltty.conf à la main.

Autre recherche:
[root@guillemot ~]# locate -i brltt
/bin/brltty
/bin/brltty-config
/bin/brltty-install
/etc/brltty
/etc/brltty.conf
/etc/brltty.conf.orig
/etc/brltty/allchars.cti
/etc/brltty/attrib.tbl
/etc/brltty/attributes.tbl
/etc/brltty/brltty-al.hlp
/etc/brltty/brltty-at.hlp
/etc/brltty/brltty-ba.hlp
/etc/brltty/brltty-bd.hlp
/etc/brltty/brltty-bl.hlp
/etc/brltty/brltty-bm.hlp
/etc/brltty/brltty-bn.hlp
/etc/brltty/brltty-cb.hlp
/etc/brltty/brltty-ec.hlp
/etc/brltty/brltty-eu.hlp
/etc/brltty/brltty-fs.hlp
/etc/brltty/brltty-ht.hlp
/etc/brltty/brltty-il.hlp
/etc/brltty/brltty-lt.hlp
/etc/brltty/brltty-mb.hlp
/etc/brltty/brltty-md.hlp
/etc/brltty/brltty-mn.hlp
/etc/brltty/brltty-pm-2d_l.hlp
/etc/brltty/brltty-pm-2d_s.hlp
/etc/brltty/brltty-pm-c.hlp
/etc/brltty/brltty-pm-c_486.hlp
/etc/brltty/brltty-pm-el2d_80s.hlp
/etc/brltty/brltty-pm-el40s.hlp
/etc/brltty/brltty-pm-el66s.hlp
/etc/brltty/brltty-pm-el70s.hlp
/etc/brltty/brltty-pm-el80_ii.hlp
/etc/brltty/brltty-pm-el80s.hlp
/etc/brltty/brltty-pm-el_2d_40.hlp
/etc/brltty/brltty-pm-el_2d_66.hlp
/etc/brltty/brltty-pm-el_2d_80.hlp
/etc/brltty/brltty-pm-el_40_p.hlp
/etc/brltty/brltty-pm-el_80.hlp
/etc/brltty/brltty-pm-elba_20.hlp
/etc/brltty/brltty-pm-elba_32.hlp
/etc/brltty/brltty-pm-elba_trio_20.hlp
/etc/brltty/brltty-pm-elba_trio_32.hlp
/etc/brltty/brltty-pm-ib_80.hlp
/etc/brltty/brltty-pm-trio.hlp
/etc/brltty/brltty-pm.conf
/etc/brltty/brltty-pm.hlp
/etc/brltty/brltty-tn.hlp
/etc/brltty/brltty-ts.hlp
/etc/brltty/brltty-tt.hlp
/etc/brltty/brltty-vd.hlp
/etc/brltty/brltty-vo.hlp
/etc/brltty/brltty-vr.hlp
/etc/brltty/brltty-vs.hlp
/etc/brltty/compress.ctb
/etc/brltty/countries.cti
/etc/brltty/en-uebc-g2.ctb
/etc/brltty/en-us-g2.ctb
/etc/brltty/fr-abrege.ctb
/etc/brltty/fr-integral.ctb
/etc/brltty/text.brf.tbl
/etc/brltty/text.cz.tbl
/etc/brltty/text.da-1252.tbl
/etc/brltty/text.da-lt.tbl
/etc/brltty/text.da.tbl
/etc/brltty/text.de.tbl
/etc/brltty/text.en_UK.tbl
/etc/brltty/text.en_US.tbl
/etc/brltty/text.es.tbl
/etc/brltty/text.fi1.tbl
/etc/brltty/text.fi2.tbl
/etc/brltty/text.fr-2007.tbl
/etc/brltty/text.fr-cbifs.tbl
/etc/brltty/text.fr_CA.tbl
/etc/brltty/text.fr_FR.tbl
/etc/brltty/text.identity.tbl
/etc/brltty/text.it.tbl
/etc/brltty/text.nabcc.tbl
/etc/brltty/text.no-h.tbl
/etc/brltty/text.no-p.tbl
/etc/brltty/text.pl.tbl
/etc/brltty/text.pt.tbl
/etc/brltty/text.ru.tbl
/etc/brltty/text.se-old.tbl
/etc/brltty/text.se.tbl
/etc/brltty/text.simple.tbl
/etc/brltty/text.visiob.tbl
/etc/brltty/text.vni.tbl
/etc/brltty/zh-tw-big5.ctb
/etc/brltty/zh-tw-gb2312.ctb
/etc/brltty/zh-tw-ucb.ctb
/etc/brltty/zh-tw-utf8.ctb
/home/user/brltty
/home/user/brltty3.tar.gz
/home/user/brltty4.tar.gz
/lib/brltty
/lib/brltty/libbrlttybal.so
/lib/brltty/libbrlttybat.so
/lib/brltty/libbrlttybba.so
/lib/brltty/libbrlttybbd.so
/lib/brltty/libbrlttybbl.so
/lib/brltty/libbrlttybbm.so
/lib/brltty/libbrlttybbn.so
/lib/brltty/libbrlttybcb.so
/lib/brltty/libbrlttybec.so
/lib/brltty/libbrlttybeu.so
/lib/brltty/libbrlttybfs.so
/lib/brltty/libbrlttybht.so
/lib/brltty/libbrlttybil.so
/lib/brltty/libbrlttyblt.so
/lib/brltty/libbrlttybmb.so
/lib/brltty/libbrlttybmd.so
/lib/brltty/libbrlttybmn.so
/lib/brltty/libbrlttybpm.so
/lib/brltty/libbrlttybtn.so
/lib/brltty/libbrlttybts.so
/lib/brltty/libbrlttybtt.so
/lib/brltty/libbrlttybvd.so
/lib/brltty/libbrlttybvo.so
/lib/brltty/libbrlttybvr.so
/lib/brltty/libbrlttybvs.so
/lib/brltty/libbrlttysal.so
/lib/brltty/libbrlttysbl.so
/lib/brltty/libbrlttyscb.so
/lib/brltty/libbrlttyses.so
/lib/brltty/libbrlttysfv.so
/lib/brltty/libbrlttysgs.so
/lib/brltty/libbrlttyxsc.so
/lib/brltty/rw
/root/brltty
/root/urpmi.brltty.txt
/usr/share/doc/brltty
/usr/share/doc/brltty/COPYING
/usr/share/doc/brltty/ChangeLog
/usr/share/doc/brltty/README
/usr/share/doc/brltty/TODO
/usr/share/man/man1/brltty.1.lzma

la version est bien la:
[root@guillemot ~]# rpm -qa brltty
brltty-3.9-1mdv2008.1
....Assez récente donc...

Mais ...:
[root@guillemot ~]# ps ax |grep brlt
24041 pts/1    S+     0:00 grep --color brlt
....pas de brltty démarré automatiquement...

Alors je le lance!
[root@guillemot ~]# /bin/brltty
BRLTTY 3.9 rev UNKNOWN [http://mielke.cc/brltty/]
Pas de message d'erreur, malgré pas de vcs*
Et "screen not in text mode" sur ma barrette Alva Satellite 544.

Test:
[root@guillemot ~]# ps ax |grep -i brltty
24155 ?        Ssl    0:00 /bin/brltty
24351 pts/1    S+     0:00 grep --color -i brltty

OK, le processus y est.

Autre test à toutes fins utiles, mais il ne semble rien manquer à brltty,
hormis un vcs* :
[root@guillemot ~]# ldd /bin/brltty
	linux-gate.so.1 =>  (0xffffe000)
	libdl.so.2 => /lib/libdl.so.2 (0xb7eff000)
	libgpm.so.1 => /lib/libgpm.so.1 (0xb7ef9000)
	libpthread.so.0 => /lib/libpthread.so.0 (0xb7ee2000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7ed6000)
	libc.so.6 => /lib/libc.so.6 (0xb7d92000)
	/lib/ld-linux.so.2 (0xb7f15000)
	libm.so.6 => /lib/libm.so.6 (0xb7d6c000)

La preuve:
[root@guillemot ~]# ls -l /dev/vcs*
crw-rw---- 1 root tty 7,  12 2009-08-22 14:12 /dev/vcs12
crw-rw---- 1 root tty 7,   3 2009-08-22 14:10 /dev/vcs3
crw-rw---- 1 root tty 7, 140 2009-08-22 14:12 /dev/vcsa12
crw-rw---- 1 root tty 7, 131 2009-08-22 14:10 /dev/vcsa3

CQFD! 

Question: à quoi servent alors les scripts brltty-install et brltty-config 
vu q'uon a urpmi pour installer ?
et la conf est faite; le script fait-il qq chose de plus ?

Aldo.
#!/bin/sh
###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
#          text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2007 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
# GNU General Public License, as published by the Free Software
# Foundation.  Please see the file COPYING for details.
#
# Web Page: http://mielke.cc/brltty/
#
# This software is maintained by Dave Mielke <dave@xxxxxxxxx>.
###############################################################################

# Installation script for binary BRLTTY distributions.
# Usage: brltty-install dest-prefix [source-prefix]

programName="${0}"
programMessage()
{
   echo "${programName}: ${1}"
}
syntaxError()
{
   programMessage "${1}"
   exit 2
}

execute()
{
   "${@}"
   returnCode="${?}"
   [ "${returnCode}" -eq 0 ] || exit "${returnCode}"
   return 0
}
makeDirectory()
{
   if [ ! -a "${1}" ]
   then
      echo "Creating ${2} directory: ${1}"
      execute mkdir -p -- "${1}"
   elif [ ! -d "${1}" ]
   then
      syntaxError "not a directory: ${1}"
   fi
}
copyContents()
{
   execute cp -pR -- "${1}/"* "${2}"
}
copyFiles()
{
   for f in $4
   do
      if [ -f "${1}/${f}" ]
      then
         echo "Installing ${3}: ${2}/${f}"
         execute cp -p -- "${1}/${f}" "${2}"
      elif [ -a "${1}/${f}" ]
      then
         programMessage "not a file: ${1}/${f}"
      else
         programMessage "${3} not found: ${1}/${f}"
      fi
   done
}

.. "`dirname "${0}"`/brltty-config" || exit "${?}"

if [ "${#}" -eq 0 ]
then
   syntaxError "missing destination directory."
fi
to="${1}"
shift

if [ "${#}" -eq 0 ]
then
   from="${BRLTTY_EXECUTE_ROOT}"
elif [ "${#}" -eq 1 ]
then
   from="${1}"
   if [ ! -d "${from}" ]
   then
      syntaxError "source file hierarchy not found: ${from}"
   fi
   if [ ! -d "${from}" ]
   then
      syntaxError "source is not a directory."
   fi
else
   syntaxError "too many parameters."
fi

if [ "${to}" = "${from}" ]
then
   syntaxError "source and destination are the same."
fi
makeDirectory "${to}" "destination"

makeDirectory "${to}${BRLTTY_PROGRAM_DIRECTORY}" "executables"
copyFiles "${from}${BRLTTY_PROGRAM_DIRECTORY}" "${to}${BRLTTY_PROGRAM_DIRECTORY}" "executable" "brltty brltty-config brltty-install"

conf="brltty.conf"
if [ -f "${from}${sysconfdir}/${conf}" ]
then
   makeDirectory "${to}${sysconfdir}" "configuration"
   copyFiles "${from}${sysconfdir}" "${to}${sysconfdir}" "configuration file" "${conf}"
else
   programMessage "no configuration file: ${from}${sysconfdir}/${conf}"
fi

makeDirectory "${to}${BRLTTY_LIBRARY_DIRECTORY}" "library"
echo "Installing library files."
copyContents "${from}${BRLTTY_LIBRARY_DIRECTORY}" "${to}${BRLTTY_LIBRARY_DIRECTORY}"

makeDirectory "${to}${BRLTTY_DATA_DIRECTORY}" "data"
echo "Installing data files."
copyContents "${from}${BRLTTY_DATA_DIRECTORY}" "${to}${BRLTTY_DATA_DIRECTORY}"

echo "Installation complete."
exit 0
#!/bin/sh
###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
#          text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2007 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
# GNU General Public License, as published by the Free Software
# Foundation.  Please see the file COPYING for details.
#
# Web Page: http://mielke.cc/brltty/
#
# This software is maintained by Dave Mielke <dave@xxxxxxxxx>.
###############################################################################

prefix="/usr"
exec_prefix="/usr"
datarootdir="@datarootdir@"
bindir="/bin"
sbindir="/usr/sbin"
libexecdir="/lib"
datadir="/usr/share"
sysconfdir="/etc"
sharedstatedir="/usr/com"
localstatedir="/var/lib"
libdir="/lib"
includedir="/usr/include"
oldincludedir="/usr/include"
infodir="/usr/share/info"
mandir="/usr/share/man"

BRLTTY_VERSION="3.9"
BRLTTY_EXECUTE_ROOT=""
BRLTTY_PROGRAM_DIRECTORY="/bin"
BRLTTY_LIBRARY_DIRECTORY="/lib/brltty"
BRLTTY_DATA_DIRECTORY="/etc/brltty"
BRLTTY_MANPAGE_DIRECTORY="/usr/share/man"
BRLTTY_INCLUDE_DIRECTORY="/usr/include/brltty"

BRLAPI_VERSION="0.5"
BRLAPI_RELEASE="0.5.1"
BRLAPI_AUTH="brlapi.key"


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/