Linux administrado por r0ver

Yo prefereria no hacer esto, pero es un trabajo sucio que alguien tiene que hacer... asi que las circunstancias me inducen a darme mania y administrar algun que otro linux. La idea de este blog es ir guardando preguntas/respuestas y problemas/soluciones, para no irritar a la gente que suele darme una mano, preguntandole dos veces lo mesmo :)

En el blog hay informacion en ingles de vez en cuando. Si necesitas la información en español avisame y veo de darte una mano.

viernes, marzo 24, 2006

Usando un source particular para traer un paquete en debian

Quisiera usar thunderbird 1.5 pero todavia no está disponible en debian. Encontre otro repositorio no oficial que ya lo tiene. Y las indicaciones como de como usarlo solo con ese. Las indiciaciones que segui son esta y esta.

Los pasos que seguir son:

1. Editar /etc/apt/sourcers.list y agregar la linea: deb http://www.backports.org/debian sarge-backports main

2. En /etc/apt/apt.conf agregar: APT::Default-Release "stable";

3. Correr apt-get update

4. Correr apt-get install package-name -t sarge-backports , en el caso de thunderbird: apt-get install thunderbird -t backports.org

jueves, marzo 02, 2006

Gnome no anda en ubuntu

Siguiendo con la configuración de la entrada anterior (cliente ubuntu, server de nfs debian). Tengo problemas con algunos usuarios y gnome. Cuando autentico en gdm, gnome muestra el splash pero se queda ahi. No aparece la barra de titulos. Nada. Probe borrando y sobreescribiendo los archivos de gnome pero no fue suficiente.

Probe levantar X y usar un escritorio mas amigable como window maker. Cuando intento tirar gnome-panel (no uno de los errores que obtenia era de esta aplicación), obtengo el siguiente error:


No database available to save your configuration: Unable to store a value at key '/apps/panel/toplevels/top_panel_screen0/size', as the configuration server has no writable databases. There are some common causes of this problem:

1) your configuration path file /etc/gconf/2/path doesn't contain any databases or wasn't found
2) somehow we mistakenly created two gconfd processes
3) your operating system is misconfigured so NFS file locking doesn't work in your home directory or
4) your NFS client machine crashed and didn't properly notify the server on reboot that file locks should be dropped. If you have two gconfd processes (or had two at the time the second was launched), logging out, killing all copies of gconfd, and logging back in may help. If you have stale locks, remove ~/.gconf*/*lock. Perhaps the problem is that you attempted to use GConf from two machines at once, and ORBit still has its default configuration that prevents remote CORBA connections - put "ORBIIOPIPv4=1" in /etc/orbitrc. As always, check the user.* syslog for details on problems gconfd encountered. There can only be one gconfd per home directory, and it must own a lockfile in ~/.gconfd and also lockfiles in individual storage locations such as ~/.gconf


Mmm... parece que el problema de NFS de la entrada anterior no esta del todo solucionada. El punto 3 es claro your operating system is misconfigured so NFS file locking doesn't work in your home directory. Veamos que dice google.

Leyendo el NFS HowTo parece que me estoy olvidando de algo , you will also need rpc.statd and rpc.lockd running on both the client and the server chequeo si tengo alguno de ellos andando:


rover@grendel:~$ sudo lsof | grep rpc
portmap 6016 daemon 3u IPv4 7467 UDP *:sunrpc
portmap 6016 daemon 4u IPv4 7468 TCP *:sunrpc (LISTEN)
rpciod/0 6046 root cwd DIR 3,1 4096 2 /
rpciod/0 6046 root rtd DIR 3,1 4096 2 /
rpciod/0 6046 root txt unknown /proc/6046/exe


Mmmm parece que no. Me fije en los paquetes y vi que no tenia instaldo el nfs-common que es necesario para que esto funcione. Lo instale, reinicie y voila. Ahora el mismo comando da:


rover@grendel:~$ sudo lsof | grep rpc
Password:
portmap 6025 daemon 3u IPv4 7507 UDP *:sunrpc
portmap 6025 daemon 4u IPv4 7508 TCP *:sunrpc (LISTEN)
rpciod/0 6055 root cwd DIR 3,1 4096 2 /
rpciod/0 6055 root rtd DIR 3,1 4096 2 /
rpciod/0 6055 root txt unknown /proc/6055/exe
rpc.statd 7206 root cwd DIR 3,1 4096 164578 /var/lib/nfs
rpc.statd 7206 root rtd DIR 3,1 4096 2 /
rpc.statd 7206 root txt REG 3,1 37156 1197113 /sbin/rpc.statd
rpc.statd 7206 root mem REG 0,0 0 [heap] (stat: No such file or directory)
rpc.statd 7206 root mem REG 3,1 37480 621568 /lib/tls/i686/cmov/libnss_files-2.3.5.so
rpc.statd 7206 root mem REG 3,1 1226096 621559 /lib/tls/i686/cmov/libc-2.3.5.so
rpc.statd 7206 root mem REG 3,1 77176 621565 /lib/tls/i686/cmov/libnsl-2.3.5.so
rpc.statd 7206 root mem REG 3,1 27024 621705 /lib/libwrap.so.0.7.6
rpc.statd 7206 root mem REG 3,1 86596 621395 /lib/ld-2.3.5.so
rpc.statd 7206 root 0u CHR 1,3 1200 /dev/null
rpc.statd 7206 root 1u CHR 1,3 1200 /dev/null
rpc.statd 7206 root 2u CHR 1,3 1200 /dev/null
rpc.statd 7206 root 3u unix 0xc837b8c0 10073 socket
rpc.statd 7206 root 4u IPv4 10095 UDP *:601
rpc.statd 7206 root 5u IPv4 10074 UDP *:1022
rpc.statd 7206 root 6u IPv4 10107 TCP *:604 (LISTEN)
rpc.statd 7206 root 7w REG 3,1 5 180815 /var/run/rpc.statd.pid

NFS tarda mucho en montar en ubuntu

Tengo un server de nfs en debian. Cliente en ubuntu. En tiempo de buteo el cliente tarda mucho en montar el file system remoto. Corriendo cat /var/log/messages hay una linea que dice:


Mar 2 11:52:21 grendel kernel: [4294713.202000] nfs warning: mount version older than kernel
Mar 2 11:52:21 grendel kernel: [4294748.203000] portmap: server localhost not responding, timed out
Mar 2 11:52:21 grendel kernel: [4294748.203000] RPC: failed to contact portmap (errno -5).
Mar 2 11:52:21 grendel kernel: [4294783.203000] portmap: server localhost not responding, timed out
Mar 2 11:52:21 grendel kernel: [4294783.203000] RPC: failed to contact portmap (errno -5).
Mar 2 11:52:21 grendel kernel: [4294783.203000] lockd_up: makesock failed, error=-5
Mar 2 11:52:21 grendel kernel: [4294818.203000] portmap: server localhost not responding, timed out
Mar 2 11:52:21 grendel kernel: [4294818.203000] RPC: failed to contact portmap (errno -5).
Mar 2 11:52:21 grendel kernel: [4294820.176000] NET: Registered protocol family 1


Finalmente lo monta. Pero tarda mucho.
Leyendo el error vi que busca portmap en localhost asi que instale el paquete portmap en ubuntu y funciono. Era eso.