25 febrero, 2009

Bash 4.0 liberada

se ha liberado la version 4.0 de bash

puedes descargarla aqui

se instala asi... da una leida al README

./configure
make
make install

novedades...

+========== NEWS ==========+
This is a terse description of the new features added to bash-4.0 since
the release of bash-3.2. As always, the manual page (doc/bash.1) is
the place to look for complete descriptions.

1. New Features in Bash

a. When using substring expansion on the positional parameters, a starting
index of 0 now causes $0 to be prefixed to the list.

b. The `help' builtin now prints its columns with entries sorted vertically
rather than horizontally.

c. There is a new variable, $BASHPID, which always returns the process id of
the current shell.

d. There is a new `autocd' option that, when enabled, causes bash to attempt
to `cd' to a directory name that is supplied as the first word of a
simple command.

e. There is a new `checkjobs' option that causes the shell to check for and
report any running or stopped jobs at exit.

f. The programmable completion code exports a new COMP_TYPE variable, set to
a character describing the type of completion being attempted.

g. The programmable completion code exports a new COMP_KEY variable, set to
the character that caused the completion to be invoked (e.g., TAB).

h. If creation of a child process fails due to insufficient resources, bash
will try again several times before reporting failure.

i. The programmable completion code now uses the same set of characters as
readline when breaking the command line into a list of words.

j. The block multiplier for the ulimit -c and -f options is now 512 when in
Posix mode, as Posix specifies.

k. Changed the behavior of the read builtin to save any partial input received
in the specified variable when the read builtin times out. This also
results in variables specified as arguments to read to be set to the empty
string when there is no input available. When the read builtin times out,
it returns an exit status greater than 128.

l. The shell now has the notion of a `compatibility level', controlled by
new variables settable by `shopt'. Setting this variable currently
restores the bash-3.1 behavior when processing quoted strings on the rhs
of the `=~' operator to the `[[' command.

m. The `ulimit' builtin now has new -b (socket buffer size) and -T (number
of threads) options.

n. The -p option to `declare' now displays all variable values and attributes
(or function values and attributes if used with -f).

o. There is a new `compopt' builtin that allows completion functions to modify
completion options for existing completions or the completion currently
being executed.

p. The `read' builtin has a new -i option which inserts text into the reply
buffer when using readline.

q. A new `-E' option to the complete builtin allows control of the default
behavior for completion on an empty line.

r. There is now limited support for completing command name words containing
globbing characters.

s. Changed format of internal help documentation for all builtins to roughly
follow man page format.

t. The `help' builtin now has a new -d option, to display a short description,
and a -m option, to print help information in a man page-like format.

u. There is a new `mapfile' builtin to populate an array with lines from a
given file. The name `readarray' is a synonym.

v. If a command is not found, the shell attempts to execute a shell function
named `command_not_found_handle', supplying the command words as the
function arguments.

w. There is a new shell option: `globstar'. When enabled, the globbing code
treats `**' specially -- it matches all directories (and files within
them, when appropriate) recursively.

x. There is a new shell option: `dirspell'. When enabled, the filename
completion code performs spelling correction on directory names during
completion.

y. The `-t' option to the `read' builtin now supports fractional timeout
values.

z. Brace expansion now allows zero-padding of expanded numeric values and
will add the proper number of zeroes to make sure all values contain the
same number of digits.

aa. There is a new bash-specific bindable readline function: `dabbrev-expand'.
It uses menu completion on a set of words taken from the history list.

bb. The command assigned to a key sequence with `bind -x' now sets two new
variables in the environment of the executed command: READLINE_LINE_BUFFER
and READLINE_POINT. The command can change the current readline line
and cursor position by modifying READLINE_LINE_BUFFER and READLINE_POINT,
respectively.

cc. There is a new &>> redirection operator, which appends the standard output
and standard error to the named file.

dd. The parser now understands `|&' as a synonym for `2>&1 |', which redirects
the standard error for a command through a pipe.

ee. The new `;&' case statement action list terminator causes execution to
continue with the action associated with the next pattern in the
statement rather than terminating the command.

ff. The new `;;&' case statement action list terminator causes the shell to
test the next set of patterns after completing execution of the current
action, rather than terminating the command.

gg. The shell understands a new variable: PROMPT_DIRTRIM. When set to an
integer value greater than zero, prompt expansion of \w and \W will
retain only that number of trailing pathname components and replace
the intervening characters with `...'.

hh. There are new case-modifying word expansions: uppercase (^[^]) and
lowercase (,[,]). They can work on either the first character or
array element, or globally. They accept an optional shell pattern
that determines which characters to modify. There is an optionally-
configured feature to include capitalization operators.

ii. The shell provides associative array variables, with the appropriate
support to create, delete, assign values to, and expand them.

jj. The `declare' builtin now has new -l (convert value to lowercase upon
assignment) and -u (convert value to uppercase upon assignment) options.
There is an optionally-configurable -c option to capitalize a value at
assignment.

kk. There is a new `coproc' reserved word that specifies a coprocess: an
asynchronous command run with two pipes connected to the creating shell.
Coprocs can be named. The input and output file descriptors and the
PID of the coprocess are available to the calling shell in variables
with coproc-specific names.

ll. A value of 0 for the -t option to `read' now returns success if there is
input available to be read from the specified file descriptor.

mm. CDPATH and GLOBIGNORE are ignored when the shell is running in privileged
mode.

nn. New bindable readline functions shell-forward-word and shell-backward-word,
which move forward and backward words delimited by shell metacharacters
and honor shell quoting.

oo. New bindable readline functions shell-backward-kill-word and
shell-kill-word
which kill words backward and forward, but use the same word boundaries
as shell-forward-word and shell-backward-word.

2. New Features in Readline

a. A new variable, rl_sort_completion_matches; allows applications to inhibit
match list sorting (but beware: some things don't work right if
applications do this).

b. A new variable, rl_completion_invoking_key; allows applications to discover
the key that invoked rl_complete or rl_menu_complete.

c. The functions rl_block_sigint and rl_release_sigint are now public and
available to calling applications who want to protect critical sections
(like redisplay).

d. The functions rl_save_state and rl_restore_state are now public and
available to calling applications; documented rest of readline's state
flag values.

e. A new user-settable variable, `history-size', allows setting the maximum
number of entries in the history list.

f. There is a new implementation of menu completion, with several improvements
over the old; the most notable improvement is a better `completions
browsing' mode.

g. The menu completion code now uses the rl_menu_completion_entry_function
variable, allowing applications to provide their own menu completion
generators.

h. There is support for replacing a prefix of a pathname with a `...' when
displaying possible completions. This is controllable by setting the
`completion-prefix-display-length' variable. Matches with a common prefix
longer than this value have the common prefix replaced with `...'.

i. There is a new `revert-all-at-newline' variable. If enabled, readline will
undo all outstanding changes to all history lines when `accept-line' is
executed.

j. If the kernel supports it, readline displays special characters
corresponding to a keyboard-generated signal when the signal is received.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer

09 febrero, 2009

Enviar archivos bluetooth con thunar

quiere el gnome y para enviar con thunar archivos via bluetooth hay que instalar

gnome-bluetooth

cuando ya este configurado bluetooth , abrimos thunar y en


Editar/aciones personalizadas/ añadir una nueva accion

en orden ponemos

gnome-obex-send %f

%f es la ruta al primer fichero seleccionado. ahi hay mas opciones

ahora ponle cosas bonitas...

ya que tengas esto con el boton secundario sobre send to o enviar a algo asi. sale bluetooth =)

Debian y opengl habilitar

puse el openarena y era el openarena lento -.- , no tenia el opengl corriendo segun algunos test de cedega tons instale estos...

libgl1-mesa-dri libgl1-mesa-glx mesa-utils

solo hay que instalarles jeje

08 febrero, 2009

Fingerprint en Lenovo R61 huella digital

exelente tuto

pd acualize el kernel y ya no sirvio xD use el 2.6.26

Por cdk1:

na de las características que mas me llamó la atención de este laptop -Lenovo R61- pués es su lector de huellas digitales para autenticar…

1.- Resolviendo problemas de dependencias:

Reina-Tonia:/# apt-get -f install
Leyendo lista de paquetes… Hecho
Creando árbol de dependencias
Leyendo la información de estado… Hecho
0 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
Reina-Tonia:/#

2.- Updateando los repositorios:

Reina-Tonia:/# apt-get update

3.- Actualizar el sistema;

Reina-Tonia:/# apt-get upgrade
Leyendo lista de paquetes… Hecho
Creando árbol de dependencias
Leyendo la información de estado… Hecho
0 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
Reina-Tonia:/#

Con esto verificamos que tenemos un sistema limpio y al día, en realidad no tan limpio pero algo es algo…

4.- Instalando lo necesario;

Reina-Tonia:/# apt-get install libthinkfinger0 libpam-thinkfinger thinkfinger-tools
Leyendo lista de paquetes… Hecho
Creando árbol de dependencias
Leyendo la información de estado… Hecho
Se instalarán los siguientes paquetes NUEVOS:
libpam-thinkfinger libthinkfinger0 thinkfinger-tools
0 actualizados, 3 se instalarán, 0 para eliminar y 0 no actualizados.
Se necesita descargar 0B/56,9kB de archivos.
After this operation, 348kB of additional disk space will be used.
Seleccionando el paquete libthinkfinger0 previamente no seleccionado.
(Leyendo la base de datos …
77977 ficheros y directorios instalados actualmente.)
Desempaquetando libthinkfinger0 (de …/libthinkfinger0_0.3+rev118.2-4_amd64.deb) …
Seleccionando el paquete libpam-thinkfinger previamente no seleccionado.
Desempaquetando libpam-thinkfinger (de …/libpam-thinkfinger_0.3+rev118.2-4_amd64.deb) …
Seleccionando el paquete thinkfinger-tools previamente no seleccionado.
Desempaquetando thinkfinger-tools (de …/thinkfinger-tools_0.3+rev118.2-4_amd64.deb) …
Processing triggers for man-db …
Configurando libthinkfinger0 (0.3+rev118.2-4) …
Configurando libpam-thinkfinger (0.3+rev118.2-4) …
Configurando thinkfinger-tools (0.3+rev118.2-4) …
Reina-Tonia:/#

Configurando:

Reina-Tonia:/# tf-tool –acquire

ThinkFinger 0.3 (http://thinkfinger.sourceforge.net/)
Copyright (C) 2006, 2007 Timo Hoenig

Initializing… done.
Please swipe your finger (successful swipes 3/3, failed swipes: 0)… done.
Storing data (/root/.thinkfinger.bir)… done.
Reina-Tonia:/# tf-tool –verify

ThinkFinger 0.3 (http://thinkfinger.sourceforge.net/)
Copyright (C) 2006, 2007 Timo Hoenig

Initializing… done.
Please swipe your finger (successful swipes 1/1, failed swipes: 0)… done.
Result: Fingerprint does match.
Reina-Tonia:/#

Nos falta configurar PAM para seleccionar el método de autentificaicón;
Reina-Tonia:/# nano etc/pam.d/common-auth

Dejándolo de este modo;

#
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
#auth required pam_unix.so nullok_secure

auth sufficient pam_thinkfinger.so
auth required pam_unix.so nullok_secure try_first_pass

Añadiendo usuarios a thinkfiner;

Reina-Tonia:/# tf-tool –add-user CdK1

ThinkFinger 0.3 (http://thinkfinger.sourceforge.net/)
Copyright (C) 2006, 2007 Timo Hoenig

Two output paths specified, but you may only specify one:
–add-user
CdK1
Reina-Tonia:/# tf-tool –add-user root

ThinkFinger 0.3 (http://thinkfinger.sourceforge.net/)
Copyright (C) 2006, 2007 Timo Hoenig

Two output paths specified, but you may only specify one:
–add-user
root
Reina-Tonia:/#

Y seguimos;

Reina-Tonia:/# groupadd fingerprint
Reina-Tonia:/#

Reina-Tonia:/# nano etc/udev/rules.d/60-thinkfinger.rules

Quedando así:

#
# udev rules file for the thinkfinger fingerprint scanner
#
# gives access to the fingerprint reader to those in the "fingerprint" group
#
# Taken from:
# http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger
# which was taken and modified from:
# http://article.gmane.org/gmane.linux.drivers.thinkfinger/329
#

# SGS Thomson Microelectronics Fingerprint Reader
SYSFS{idVendor}=="0483", SYSFS{idProduct}=="2016", SYMLINK+="input/thinkfinger-%k", MODE="0660", GROUP="fingerprint"

# the also-needed uinput device

Editamos;

Para los que usamos GNOME, lo siguiente nos permite autenticarnos usando la huella digital en GDM;

Como $USER repetimos los pasos anteriores;

CdK1@Reina-Tonia:~$ tf-tool --acquire

ThinkFinger 0.3 (http://thinkfinger.sourceforge.net/)
Copyright (C) 2006, 2007 Timo Hoenig

Initializing... done.
Please swipe your finger (successful swipes 3/3, failed swipes: 0)... done.
Storing data (/home/CdK1/.thinkfinger.bir)... done.
CdK1@Reina-Tonia:~$ tf-tool --verify

ThinkFinger 0.3 (http://thinkfinger.sourceforge.net/)
Copyright (C) 2006, 2007 Timo Hoenig

Initializing... done.
Please swipe your finger (successful swipes 1/1, failed swipes: 0)... done.
Result: Fingerprint does match.
CdK1@Reina-Tonia:~$

CdK1@Reina-Tonia:~$ su
Password or swipe finger:
Reina-Tonia:/home/CdK1# cp .thinkfinger.bir /etc/pam_thinkfinger/CdK1.bir
Reina-Tonia:/home/CdK1# gpasswd -a CdK1 fingerprint
Añadiendo al usuario CdK1 al grupo fingerprint
Reina-Tonia:/home/CdK1# chown CdK1:root /etc/pam_thinkfinger/CdK1.bir
Reina-Tonia:/home/CdK1# chmod 400 /etc/pam_thinkfinger/CdK1.bir
Reina-Tonia:/home/CdK1#

Para el "screensaver"

Si bien se necesitan determinadas versiones de xscreensaver y gnome-screensaver,
dudo que alguien no las tenga debido a lo antiguas que son...

Reina-Tonia:/# nano etc/pam.d/gnome-screensaver

Reina-Tonia:/# nano /etc/udev/rules.d/60-thinkfinger.rules

#
# udev rules file for the thinkfinger fingerprint scanner
#
# gives access to the fingerprint reader to those in the “fingerprint” group
#
# Taken from:
# http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_Thin$
# which was taken and modified from:
# http://article.gmane.org/gmane.linux.drivers.thinkfinger/329
#

# SGS Thomson Microelectronics Fingerprint Reader
SYSFS{idVendor}==”0483″, SYSFS{idProduct}==”2016″, SYMLINK+=”input/thinkfinger-$

# the also-needed uinput device
KERNEL==”uinput”, MODE=”0660″, GROUP=”fingerprint”

Editamos;

Reina-Tonia:/# nano /etc/pam.d/gnome-screensaver

@include common-auth
#auth optional pam_gnome_keyring.so

auth sufficient pam_thinkfinger.so
auth required pam_unix.so try_first_pass nullok_secure

Verificamos que el módulo del thiinkfinger este cargado;

Reina-Tonia:/# lsmod | grep uinput
uinput 14208 1
Reina-Tonia:/#

Agregamos “uinput” a /etc/modules

Reina-Tonia:/# nano etc/modules

añadimos

uinput

Con esto tenemos todo listo…

03 febrero, 2009

wicd instalando en debian, adios nm-applet y wifi-radar,

wicd es un administrador grafico para conectarnos a redes wifi wpa wep y wpa y wep y tambien wpa entre otras que no menciono aqui. ok ustedes entienden

pero no esta en los repos de debian, el dia de hoy... y añadir lineas al sources.list para 1 solo paquete como que no me gusta je =P

este tiene la opcion de manejar ip fija, manejar los DNS, algunos programas externos y nos dice los dbm de la señal =)

en debian lo instale asi

primero consegui en sourceforge el paquete de wicd, en lo personal use la version 1.5.8 (por que es la unica que hay cuando escribi esto talvez cuando lo leas tu ya hay una mas nueva)
y es la actual version estable (feb 2009 xD ) hay una testing pero mas delante la mirare

yo lo que tengo es esto

neo@Bragas:~$ uname -a
Linux Bragas 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux
neo@Bragas:~$ cat /etc/debian_version
5.0

Instalando.

ya que tenemos el paquete lo ponemos con

dpkg -i paquete.deb
pero nos marcara un error que no encuentra este directorio. habra que crearlo
/opt/wicd/encryption/configurations



cd /opt
mkdir wicd
cd wicd
mkdir encryptions
cd encryptions
mkdir configurations

yo lo reinstale xD .

ahora solo corremos wicd como root, yo no tenia un area de noticifacion pero al dar
Bragas:/opt/wicd/encryption/configurations# ps aux | grep wicd
root 7315 0.4 0.5 11352 5480 ? S 12:48 0:01 python -O /usr/lib/wicd/wicd-daemon.py
root 7320 0.0 0.5 10384 5460 ? S 12:48 0:00 python /usr/lib/wicd/monitor.py
neo 7484 0.7 2.1 33040 22144 ? Ss 12:50 0:01 python -O /usr/lib/wicd/wicd-client.py
root 8312 0.0 0.0 3144 768 pts/2 R+ 12:53 0:00 grep wicd

note que el proceso ahi estaba espero le sirva a alguien mas bytez!!
ahi una screenshot pero tiene mas cosas