Identificarse :: Nuevo usuario ?, Regístrese Aquí

Nicolás Boettcher

seguridad datos redes inalambricas ia teleco swi-prolog ns2 network simulator linux ubuntu tutorial


Instalar ns 2.34 en Ubuntu 9.10 Karmic Koala

En este caso NO instalaremos la versión allinone

wget http://ufpr.dl.sourceforge.net/project/nsnam/ns-2/2.34/ns-2.34.tar.gz
tar xzvf ns-2.34.tar.gz
cd ns-2.34
./configure

Siendo que ya tenía instalado tcl me apareció el siguiente error

checking Tcl http.tcl library... configure: error: Couldn't find http.tcl in  	 	/http 	/http2.4 	/http2.3 	/http2.1 	/http2.0 	/http1.0

La solución para tcl/tk es la siguiente

sudo ln -s /usr/share/tcltk/tcl8.4 /usr/share/
sudo ln -s /usr/share/tcltk/tk8.4 /usr/share/

volvemos a configurar

checking for tclsh8.4.18... no
checking for tclsh8.4... /usr/bin/tclsh8.4
configure: error: Installation of tcl seems incomplete or can't be found automatically.

checking for tk.h... no
checking for libtk8.4... no
checking for tk.tcl... /usr/share/tk8.4
configure: error: Installation of tk seems incomplete or can't be found automatically.

debemos instalar los headers de tcl y tk

sudo apt-get install tcl8.4-dev tk8.4-dev

volvemos a configurar

checking for otcl.h... no
checking for libotcl1.13... -L/usr/lib -lotcl
configure: error: Installation of otcl seems incomplete or can't be found automatically.

instalamos los paquetes faltantes

sudo apt-get install tclcl-dev xgraph

configuramos, compilamos e instalamos

./configure
make && sudo male install

Los archivos se ejemplo se encuentran en la carpeta /ns-allinone-2.34/ns-2.34/tcl/ex

ns.png

Ocultar versión de apache y php

Para evitar mostrar datos relevantes a los atacantes, ocultaremos la versión de nuestro servidor web. La versión puede verse al entrar a una carpeta que no contenga un index.html. Para buscar ejemplos podemos buscar en google

intitle:"Index of" -html -htm -php

version.png
Para ocultar esta info editamos el archivo /etc/apache2/conf.d/security

Reemplazamos ServerSignature Off por ServerSignature On

Luego reiniciamos el server

sudo /etc/init.d/apache2 restart
no_version.png

También podemos averiguar la versión de apache a través de los header http. Para averiguar este dato utilizamos wireshark

infoapache.png
Ahora para ocultar la versión modificamos el mismo archivo anterior

Reemplazamos ServerTokens OS por ServerTokens Prod

no_infoapache.png

Ahora solo nos queda ocultar la versión de php que también se envía en los paquetes

phpversion.png
debemos editar el archivo /etc/php5/apache2/php.ini

Reemplazamos expose_php = On por expose_php = Off

Fuente: http://systemadmin.es/2009/01/como-eliminar-la-informacion-sobre-versiones-de-los-headers-http

sha1 md5 hash cracking

Primero descargamos el crackeador

wget http://kalgecin.googlecode.com/files/crack.zip
crack -e crack.zip
cd crack
./crack_beta.pl

Can’t locate Digest/SHA1.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./crack_beta.pl line 4.
BEGIN failed–compilation aborted at ./crack_beta.pl line 4.

Para solucionar este problema debemos instalar la librería SHA1

perl -MCPAN -e "install Digest::SHA1"

ERROR: Can't create '/usr/local/lib/perl/5.10.0/Digest'
mkdir /usr/local/lib/perl: Permission denied at /usr/share/perl/5.10/ExtUtils/Install.pm line 479

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1
make: *** [pure_site_install] Error 13
  GAAS/Digest-SHA1-2.12.tar.gz
  /usr/bin/make install  -- NOT OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state

procedemos a instalar YAML para perl

sudo apt-get install libyaml-perl

volvemos a ejecutar la instalación del módulo SHA1 y de SHA (por si las moscas) con priviliegios de root para poder crear /usr/local/lib/perl/5.10.0/Digest

sudo perl -MCPAN -e "install Digest::SHA1"
sudo perl -MCPAN -e "install Digest::SHA"

me sigue apareciendo el mismo problema :(

Can't locate Digest/SHA1.pm in @INC

Alguien tiene alguna solución?

Instalar Songbird 1.4 en Ubuntu 9.10 Karmic Koala

La actual versión estable de songbird es la 1.2, pero procederemos a descargar la versión developer

wget http://developer.songbirdnest.com/builds/trunk/latest/Songbird_1.4.0a-1198_linux-x86_64.tar.gz
tar xzvf Songbird_1.4.0a-1198_linux-x86_64.tar.gz
cd Songbird_build-1198
./songbird
././songbird-bin: 1: Syntax error: "(" unexpected

./songbird-bin
bash: ./songbird-bin: cannot execute binary file

Al ejecutar cualquier ejecutable obtenemos un error. El error es debido a que tengo un procesador de 32 bits y no uno de 64… (el ejemplo lo puse porque en varios foros tenian el mismo error y era debido a eso)
Ahora procedemos a decargar la versión de 32 bits

wget http://developer.songbirdnest.com/builds/trunk/latest/Songbird_1.4.0a-1198_linux-i686.tar.gz
tar xzvf Songbird_1.4.0a-1198_linux-i686.tar.gz
cd Songbird_build-1198
./songbird

(songbird-bin:1964): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstdeinterlace.so': /usr/lib/gstreamer-0.10/libgstdeinterlace.so: undefined symbol: gst_video_format_parse_caps_interlaced

(songbird-bin:1964): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstlibvisual.so': /usr/lib/gstreamer-0.10/libgstlibvisual.so: undefined symbol: gst_adapter_prev_timestamp

(songbird-bin:1964): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstapp.so': /usr/lib/libgstapp-0.10.so.0: undefined symbol: gst_buffer_list_get_type
././songbird-bin: symbol lookup error: /usr/lib/python2.6/dist-packages/gst-0.10/gst/_gst.so: undefined symbol: gst_task_pool_get_type
Could not initialize GStreamer: Error re-scanning registry , child terminated by signal

./songbird-bin
./songbird-bin: error while loading shared libraries: libjemalloc.so: cannot open shared object file: No such file or directory

en el segundo caso no encuentra la librería, por lo tanto la buscamos y la exportamos a /lib

locate libjemalloc
/usr/lib/xulrunner-1.9.0.12/libjemalloc.so

sudo cp /usr/lib/xulrunner-1.9.0.12/libjemalloc.so /lib

Al ejecutar ocurre el mismo error que en el primer ejecutable.
Intentamos la misma solución que expliqué para la versión 1.3

sudo apt-get remove libvisual-0.4-plugins

Sigue con el mismo problema, por lo que intento instalar plugins de gstreamer

sudo apt-get install gstreamer0.10-plugins-bad gstreamer0.10-plugins-good

Ahora ejecutamos songbird

./songbird
(songbird-bin:14823): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libresindvd.so': /usr/lib/gstreamer-0.10/libresindvd.so: undefined symbol: gst_navigation_event_parse_command

(songbird-bin:14823): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgsthdvparse.so': /usr/lib/gstreamer-0.10/libgsthdvparse.so: undefined symbol: _gst_debug_dump_mem

(songbird-bin:14823): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstdeinterlace.so': /usr/lib/gstreamer-0.10/libgstdeinterlace.so: undefined symbol: gst_video_format_parse_caps_interlaced

(songbird-bin:14823): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstlibvisual.so': /usr/lib/gstreamer-0.10/libgstlibvisual.so: undefined symbol: gst_adapter_prev_timestamp

(songbird-bin:14823): GStreamer-WARNING **: invalid name template bwf_audio_sink_%u: conversion specification must be of type '%d' or '%s' for GST_PAD_REQUEST padtemplate

(songbird-bin:14823): GStreamer-WARNING **: invalid name template alaw_audio_sink_%u: conversion specification must be of type '%d' or '%s' for GST_PAD_REQUEST padtemplate

(songbird-bin:14823): GStreamer-WARNING **: invalid name template dv_dif_video_sink_%u: conversion specification must be of type '%d' or '%s' for GST_PAD_REQUEST padtemplate

(songbird-bin:14823): GStreamer-WARNING **: invalid name template jpeg2000_video_sink_%u: conversion specification must be of type '%d' or '%s' for GST_PAD_REQUEST padtemplate

(songbird-bin:14823): GStreamer-WARNING **: invalid name template mpeg_audio_sink_%u: conversion specification must be of type '%d' or '%s' for GST_PAD_REQUEST padtemplate

(songbird-bin:14823): GStreamer-WARNING **: invalid name template mpeg_video_sink_%u: conversion specification must be of type '%d' or '%s' for GST_PAD_REQUEST padtemplate

(songbird-bin:14823): GStreamer-WARNING **: invalid name template up_video_sink_%u: conversion specification must be of type '%d' or '%s' for GST_PAD_REQUEST padtemplate

(songbird-bin:14823): GStreamer-WARNING **: invalid name template vc3_video_sink_%u: conversion specification must be of type '%d' or '%s' for GST_PAD_REQUEST padtemplate

(songbird-bin:14823): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstapp.so': /usr/lib/libgstapp-0.10.so.0: undefined symbol: gst_buffer_list_get_type
././songbird-bin: symbol lookup error: /usr/lib/python2.6/dist-packages/gst-0.10/gst/_gst.so: undefined symbol: gst_task_pool_get_type
Could not initialize GStreamer: Error re-scanning registry , child terminated by signal

Al parecer esto no quiere funcionar…
Encontré los repositorios de la versión developer de songbird para karmic
debemos agregar las siguientes lineas al archivo /etc/apt/sources.list

deb http://ppa.launchpad.net/songbird-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/songbird-daily/ppa/ubuntu karmic main

Ahora instalamos la llave para el repositorio y luego procedemos a la instalación

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 5719E347
sudo apt-get update && sudo apt-get install songbird
songbird1.png

Fuente: http://developer.songbirdnest.com/builds/trunk/latest/

Integrar facebook a Empathy en Ubuntu 9.10 Karmic Koala

Primero que nada, les cuento que Karmic Koala Alpha 3, trae por defecto como cliente de mensajería a Empathy y no a Pidgin
Una de las ventajas es que trae soporte para audio y video (aún no lo he testeado).
Como todo apunta a que Empathy probablemente se utilize más que pidgin empezé la migración de plugins
Para agregar una cuenta de facebook a Empathy debemos hacer lo siguiente

sudo apt-get install pidgin-facebookchat telepathy-haze
cp /usr/share/telepathy/managers/haze.manager /tmp/
wget https://bugs.freedesktop.org/attachment.cgi?id=20810
sudo mv attachment.cgi?id=20810 /usr/share/telepathy/managers/haze.manager
wget https://bugs.freedesktop.org/attachment.cgi?id=20811
sudo mv attachment.cgi?id=20811 /usr/share/mission-control/profiles/bigbrownchunx-facebookim-haze.profile
facebook.png

Fuente: http://aslakjohansen.wordpress.com/2009/06/21/facebook-chat-with-empathy-and-ubuntu/

Instalar Wireshark 1.2.1 en Ubuntu 9.10 Karmic Koala

Procedemos a la descarga del tarball

wget http://media-2.cacetech.com/wireshark/src/wireshark-1.2.1.tar.bz2
tar xjvf wireshark-1.2.1.tar.bz2
cd wireshark-1.2.1
./configure

checking for pcap.h... no
configure: error: Header file pcap.h not found; if you installed libpcap
from source, did you also do "make install-incl", and if you installed a
binary package of libpcap, is there also a developer's package of libpcap,
and did you also install that package?

debemos instalar las librerias pcap. Además instalaremos la librería geoip que es opcional

sudo apt-get install libpcap-dev libgeoip-dev

Ahora ejecutamos wireshark

$ wireshark
wireshark: error while loading shared libraries: libwiretap.so.0: cannot open shared object file: No such file or directory

no se encuentra la librería, por lo que la buscamos en la carpeta y la exportamos a la carpeta /lib

wireshark-1.2.1$ find . -name "libwiretap.*"
./wiretap/.libs/libwiretap.lai
./wiretap/.libs/libwiretap.so.0.0.1T
./wiretap/.libs/libwiretap.so.0
./wiretap/.libs/libwiretap.so.0.0.1
./wiretap/.libs/libwiretap.la
./wiretap/.libs/libwiretap.so
./wiretap/libwiretap.la

$ sudo cp wiretap/.libs/libwiretap.so.0 /lib/
$ sudo ldconfig
sudo wireshark
wireshark1.png

Instalar ns3 developer version en Ubuntu 9.10 Karmic Koala

La versión actual es la 3.5, pero para tener siempre la última novedad, se procederá a descargar la versión developer

sudo apt-get install mercurial
hg clone http://code.nsnam.org/ns-3-dev

Ahora instalaremos las librerias que requiere ns3

sudo apt-get install libgsl0-dev libgtk2.0-dev libxml2-dev libsqlite3-dev python2.6-dev valgrind

procedemos a configurar

cd ns-3-dev
./waf configure

Checking for pybindgen location                         : not found
Checking for Python module pybindgen                    : not found

pybindgen no se encuentra en los repositorios, por lo que procedemos a la descarga e instalación

wget http://pybindgen.googlecode.com/files/pybindgen-0.11.0.tar.bz2
tar xjvf pybindgen-0.11.0.tar.bz2
cd pybindgen-0.11.0
./waf configure

Checking for program gccxml              : not found
Checking for Python module pygccxml      : not found

instalamos los paquetes faltantes

sudo apt-get install gccxml
wget http://sourceforge.net/projects/pygccxml/files/pygccxml/pygccxml-0.9.5/pygccxml-0.9.5.zip/download
unzip e pygccxml-0.9.5.zip
cd pygccxml-0.9.5
sudo python setup.py install

Ahora volvemos a pybindgen para volver a configurar

./waf configure
./waf
sudo ./waf install

volvemos a ns3

./waf configure
Checking for pybindgen version                          : not found
pybindgen (found 0.11.0), (need 0.10.0.640)

al parecer no siempre la última versión es lo más conveniente, así que descargaremos la versión indicada

bzr checkout -rrevno:640 https://launchpad.net/pybindgen pybindgen

este pybindgen no incluye un waf ejecutable para linux, solo un .bat para win
Como ns-3-dev también posee un waf, copiamos este a la carpeta pybindgen y ahora configuramos

./waf configure
./waf
sudo ./waf install

ahora volvemos a ns-3-dev para volver a configurar

./waf configure

Checking for Python module pybindgen                    : ok
Checking for pybindgen version                          : ok 0.10.0.640
Checking for Python module pygccxml                     : ok  

./waf
./waf --check

ahora ejecutamos un ejemplo que nos genere un archivo .pcap para interpretar con wireshark

cd examples
./waf --run simple-point-to-point-olsr
cd ..
wireshark simple-point-to-point-olsr-0-1.pcap
olsr.png

Fuente: http://www.nsnam.org/docs/tutorial/tutorial_12.html

Instalar Inkscape 0.47 en Ubuntu 9.10 Karmic Koala

Como aún no existe la versión final descargaremos la última versión desde el svn

svn co https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk inkscape
cd inkscape
./autogen.sh
./configure

Aparecen los siguientes errores:

configure: error: libgc (the Boehm Conservative Collector) 6.4+, is needed to compile inkscape -- http://www.hpl.hp.com/personal/Hans_Boehm/gc
configure: error: --enable-lcms was specified, but appropriate LittleCms development packages could not be found

los solucionamos con

sudo apt-get install libgc-dev liblcms1-dev

volvemos a configurar y obtenemos más errores

checking for INKSCAPE... configure: error: Package requirements (gdkmm-2.4  glibmm-2.4 giomm-2.4 gtkmm-2.4 >= 2.10.0  gtk+-2.0  libxml-2.0 >= 2.6.11  libxslt >= 1.0.15  cairo  sigc++-2.0 >= 2.0.12    gthread-2.0 >= 2.0 libpng >= 1.2 gsl) were not met:

No package 'gdkmm-2.4' found
No package 'gtkmm-2.4' found
No package 'libxslt' found

instalamos los paquetes faltantes

sudo apt-get install libgtkmm-2.4-dev libxslt1-dev

volvemos a configurar

configure: error: You need the boost package (e.g. libboost-dev)

instalamos la librería faltante y volvemos a configurar, compilamos e instalamos

sudo apt-get install libboost-dev
./configure
make && sudo make install
inkscape.png

Problema al montar usb un Ubuntu

El problema que me apareció, fué que al conectar el dispositivo usb, ubuntu ya no lo montaba automáticamente. Para ver que es lo que sucede hacemos lo siguiente:

dmesg

Buscamos la info sobre el dispositivo usb y aparece lo siguiente:

[  382.181253] sd 4:0:0:0: [sdb] Write Protect is off
[  382.181257] sd 4:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  382.181260] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  382.187132] sd 4:0:0:0: [sdb] 15523840 512-byte hardware sectors: (7.94 GB/7.40 GiB)
[  382.187623] sd 4:0:0:0: [sdb] Write Protect is off
[  382.187627] sd 4:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  382.187630] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  382.187636]  sdb:<6>sd 4:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
[  382.869734] sd 4:0:0:0: [sdb] Sense Key : Medium Error [current]
[  382.869741] sd 4:0:0:0: [sdb] Add. Sense: Unrecovered read error
[  382.869748] end_request: I/O error, dev sdb, sector 0
[  382.869754] Buffer I/O error on device sdb, logical block 0
[  383.551819] sd 4:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK

En este caso, ubuntu reconoce el usb (SD Reader) en /dev/sdb pero encuentra un error input output.

Me puse a buscar info y encontré un software que permite arreglar los discos, su nombre: testdisk

sudo apt-get install testdisk
sudo testdisk

Como se puede apreciar en el screenshot testdisk detecta al usb

testdisk.png

Ahora tratamos de arreglar el disco (en este caso una memoria microSD)

read.png

Partition: Read error

No encontré ningún caso en el que pasara esto. Probé con otro lector SD y asunto solucionado!

[ 2939.281596] sd 5:0:0:0: [sdb] Write Protect is off
[ 2939.281600] sd 5:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 2939.281602] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 2939.283585] sd 5:0:0:0: [sdb] 15523840 512-byte hardware sectors: (7.94 GB/7.40 GiB)
[ 2939.284800] sd 5:0:0:0: [sdb] Write Protect is off
[ 2939.284803] sd 5:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 2939.284806] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 2939.284810]  sdb: sdb1
[ 2939.285978] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[ 2939.286066] sd 5:0:0:0: Attached scsi generic sg2 type 0

Como conclusión, si les llega a pasar este error, probar inmediatamente con otro lector

Benchmark Maple13 vs WolframAlpha

Probemos una integral trivial que no converge
integral.gif

Maple13

maple13.png

WolframAlpha

wolfram.png

Resultado: Maple 0 Wolfram 1

Instalar fotoxx 7.5 en Ubuntu 9.04 Jaunty Jackalope

Iniciamos la descarga

wget http://kornelix.squarespace.com/storage/downloads/fotoxx-7.5.tar.gz
tar xzvf fotoxx-7.5.tar.gz
cd fotoxx-7.5
./dependencies.sh

obtenemos la siguiente salida

found:  g++
 missing:  exiftool
 missing:  ufraw
   found:  xdg-open
   found:  /usr/include/gtk-2.0/gtk/gtk.h
 missing:  /usr/include/FreeImage.h
 missing:  /usr/lib*/libfreeimage.so

Please install missing dependencies.

instalamos las dependencias faltantes

sudo apt-get install ufraw libfreeimage-dev libimage-exiftool-perl

ahora compilamos

make && sudo make install
fotoxx

sh: printoxx: not found
sh: /usr/local/bin/printoxx: not found
fotoxx.png

Para instalar printoxx hacemos lo siguiente

wget http://kornelix.squarespace.com/storage/downloads/printoxx-2.0.2.tar.gz
tar xzvf printoxx-2.0.2.tar.gz
cd printoxx-2.0.2
make && sudo make install

VLC 1.0.0 en Ubuntu Jaunty Jackalope 9.04

Procedemos a la descarga

wget http://launchpadlibrarian.net/28761831/vlc_1.0.0.orig.tar.gz
tar xzvf vlc_1.0.0.orig.tar.gz
cd vlc_1.0.0
./configure

aparecen los siguientes problemas que se solucionan instalando las librerías que aparecen abajo

checking for AVFORMAT... no
configure: error: Could not find libavformat or libavutil. Use --disable-avformat to ignore this error.

sudo apt-get install libavformat-dev libavutil-dev

checking for SWSCALE... no
configure: error: Could not find libswscale. Use --disable-swscale to ignore this error. Proper software scaling and some video chroma conversion will be missing.

sudo apt-get install libswscale-dev

checking for POSTPROC... no
configure: error: Could not find libpostproc. Use --disable-postproc to ignore this error.

sudo apt-get install  libpostproc-dev

checking for a52dec/a52.h... no
configure: error: Could not find liba52 on your system: you may get it from http://liba52.sf.net/. Alternatively you can use --disable-a52 to disable the a52 plugin.

sudo apt-get install liba52-0.7.4-dev

configure: WARNING: The development package for SDL_image is not installed.
  You should install it alongside your SDL package.

checking for FRIBIDI... configure: error: Package requirements (fribidi) were not met:

No package 'fribidi' found

sudo apt-get install  libfribidi-dev

Ahora volvemos a configurar y compilamos

./configure
make && sudo make install
$ vlc --version
vlc: error while loading shared libraries: libvlccore.so.2: cannot open shared object file: No such file or directory

debemos actualizar los cambios

$ sudo ldconfig
$ vlc --version
VLC media player 1.0.0 Goldeneye
VLC version 1.0.0 Goldeneye
Compiled by dragonx@dell-desktop.example.com
Compiler: gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU vlc -vvGeneral Public License;
see the file named COPYING for details.
Written by the VideoLAN team; see the AUTHORS file.

Si tratamos de ejecutar vlc nos aparece lo siguiente

$ vlc
VLC media player 1.0.0 Goldeneye
[0xa0b2ed0] main interface error: no interface module matched "globalhotkeys,none"
[0xa0b2ed0] main interface error: no suitable interface module
[0x9f78140] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x9f78140] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Segmentation fault

googleando leí que las soluciones al Segmentation Fault podrían solucionarse con:

sudo apt-get build-dep vlc
cd ~/.config/vlc
rm *
vlc -vv
vlc --reset-config --reset-plugins-cache

Ninguna de esta “soluciones” me ayudó, por lo que traté de seguir buscando librerías o algo que me faltara en la instalación

./configure > global.txt
configure: WARNING: only static linking is available, you must provide a gme-tree
configure: WARNING: Not building Roku HD1000 compatible video output
configure: WARNING: Not building Roku HD1000 compatible video output
configure: WARNING: XCB keysyms was not found

Instalé las librerías faltantes

sudo apt-get install libxcb-keysyms0-dev gobjc++-4.3 gawk

Volví a configurar y compilar

make[2]: *** No rule to make target `skins2/fonts/FreeSans.ttf', needed by `all-am'.  Stop.

Instalé los fonts necesarios

sudo apt-get install msttcorefonts

Volví a configurar y compilar

./configure
./compile
WARNING : ./qt4.hpp:43: 3:  #warning Please update Qt version to 4.5.1. This warning will become an error.

WARNING : ../../../include/vlc_mtime.h: 79:  'error' attribute directive ignored
WARNING : ../../../include/vlc_mtime.h: 89:  'warning' attribute directive ignored
WARNING : ../../../include/vlc_mtime.h: 107:  'error' attribute directive ignored

Miré cual era la versión Qt instalada en mi sistema

sudo apt-cache show libqt4-dev
Package: libqt4-dev
Priority: optional
Section: libdevel
Installed-Size: 23024
Maintainer: Kubuntu Developers
Original-Maintainer: Debian Qt/KDE Maintainers
Architecture: i386
Source: qt4-x11
Version: 4.5.0-0ubuntu4

Instalé el último Qt4 junto a su SDK

wget http://get.qtsoftware.com/qtsdk/qt-sdk-linux-x86-opensource-2009.03.bin
chmod +x qt-sdk-linux-x86-opensource-2009.03.bin
./qt-sdk-linux-x86-opensource-2009.03.bin
qt4sdk.png

Instalar amule 2.3.0 en Ubuntu Jaunty Jackalope 9.04

Procedemos a la descarga de la última versión del SVN

wget https://launchpad.net/~amule-trunk/+archive/ppa/+files/amule_2.3.0~svnr9692.orig.tar.gz
tar xzvf amule_2.3.0~svnr9692.orig.tar.gz
cd amule_2.3.0
./configure

Se presentan los siguientes errores:

checking for wx-config... no
configure: error:
		wxWidgets must be installed on your system but wx-config
		script couldn't be found. Please check that wx-config is
		in path or specified by --with-wx-config=path flag, the
		directory where wxWidgets libraries are installed (returned
		by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
		equivalent variable and wxWidgets version is 2.8.0 or above.

checking for crypto++ version >= 5.1... no
configure: error:
	Could not find crypto++ header file "cryptlib.h".
	Please try again with --with-crypto-prefix=/my_crypto_prefix
	(replace /my_crypto_prefix with a valid path to your crypto++
	installation directory).

Para solucionarlos instalamos:

sudo apt-get install wx2.8-headers libwxgtk2.8-dev libcrypto++-dev

tambień aparecen los siguientes warnings

configure: WARNING:
        UPnP code has been disabled because libupnp >= 1.6.6 not found (try to use --with-libupnp-prefix=PREFIX).

configure: WARNING:
        bfd.h not found or unusable, please install binutils development
        package if you are a developer or want to help testing aMule

Se soluciona instalando lo siguiente

sudo apt-get install libupnp4-dev binutils-dev

Ahora configuramos y compilamos

./configure
make

UPnPBase.cpp: In static member function ‘static int CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)’:
UPnPBase.cpp:1183: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1380: error: invalid use of incomplete type ‘struct Upnp_State_Var_Complete’
UPnPBase.cpp:1375: error: forward declaration of ‘struct Upnp_State_Var_Complete’
make[3]: *** [amule-UPnPBase.o] Error 1

Este error se produce porque la última versión de upnp no sirve, debemos instalar la versión 3

sudo apt-get remove libupnp4-dev
sudo apt-get install libupnp3-dev
make && sudo make install
amule.png

Fuente: https://launchpad.net/~amule-trunk/+archive/ppa

Ejecutar páginas aspx usando mono en Ubuntu Jaunty Jackalope 9.04

Primero debemos instalar lo siguiente

sudo apt-get install mono-vbnc mono-xsp2

xsp permite arrancar un servidor en el puerto 8080 que interpreta código asp

$ xsp2
xsp2
Listening on address: 0.0.0.0
Root directory: /home/dragonx/MD5
Listening on port: 8080 (non-secure)
Hit Return to stop the server.

El problema que se presenta es al ejecutar la url http://localhost:8080

Server Error in '/' Application
application.png

Para solucionar el problema traté de ejecutar mono directamente desde apache, para lo cual instalé mono para apache

sudo apt-get install libapache2-mod-mono

la librería se instala en:

/usr/lib/apache2/modules/mod_mono.so

la configuración de mono está en:

/etc/apache2/mods-enabled/mod_mono.conf

Para poder probar si mono se instala correctamente debemos probar los examples de xsp2, el problema es que directamente desde el repositorio no se instalan, por lo que descargamos el tarball

wget http://ftp.novell.com/pub/mono/sources/xsp/xsp-2.4.2.tar.bz2
tar xjvf xsp-2.4.2.tar.bz2
cd xsp-2.4.2
./configure
make

se presenta siguiente problema

/usr/bin/mcs -pkg:dotnet -r:System.Xml.dll -target:library -out:SiteMapReader_1.1.dll SiteMapReader_1.1.cs
error CS0006: cannot find metadata file `cscompmgd.dll'
error CS0006: cannot find metadata file `Microsoft.JScript.dll'
error CS0006: cannot find metadata file `Microsoft.VisualC.dll'
error CS0006: cannot find metadata file `Microsoft.Vsa.dll'
error CS0006: cannot find metadata file `System.Data.OracleClient.dll'
error CS0006: cannot find metadata file `System.DirectoryServices.dll'
error CS0006: cannot find metadata file `System.Messaging.dll'
Compilation failed: 7 error(s), 0 warnings

Instalamos las librerias necesarias

sudo apt-get install libmono-cscompmgd7.0-cil libmono-microsoft7.0-cil libmono-system-messaging1.0-cil libmono-oracle1.0-cil

volvemos a compilar

/usr/bin/mcs -pkg:dotnet -r:System.Xml.dll -target:library -out:SiteMapReader_1.1.dll SiteMapReader_1.1.cs
error CS0006: cannot find metadata file `System.DirectoryServices.dll'

instalé todas las librerias system pero nada, por lo que instalé el último mono que incluye todas las librerias

wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.1.tar.bz2
tar xjvf mono-2.4.2.1.tar.bz2
cd mono-2.4.2.1
./configure --prefix=/usr
make && sudo make install

nótese que debe incluir el prefijo /usr, sino no funciona
Ahora que ya tenemos los ejemplos de asp debemos configurar en apache la carpeta que los contiene
agregamos lo siguiente en /etc/apache2/mods-availables/mod_mono.conf

Alias /test "/usr/lib/xsp/test"
AddMonoApplications default "/test:/usr/lib/xsp/test"
&ltlocation>
SetHandler mono
</location>

ahora reiniciamos apache

sudo service apache2 restart
mono.png

Instalar emulador Mojo SDK Palm WebOS en Ubuntu Jaunty Jackalope 9.04

Primero debemos entrar a la página de palm y pedir una cuenta para desarrollador
Una vez con la cuenta procedemos a la descarga

wget https://prerelease.palm.com/sdk-beta/release20090701/palm-sdk_0.3.5-sdk60-eng8_i386.deb
sudo dpkg -i palm-sdk_0.3.5-sdk60-eng8_i386.deb

para ejecutar el emulador debemos tener instalado VirtualBox, ya que el emulador corre bajo una máquina virtual

palm-emulator

Si tratan de hacer la arroba deben hacerla con SHIFT+2
Las teclas que sirven para el emulador son:
inicio, fin, esc, flechas (izq, derecha)

palmos.png name.png

clock.png  photo.png

Si te aparece el siguiente error:

In order to install or debug applications in the Palm Emulator, the novacom service must be running on your desktop

novacom.png

debes instalar el driver novacom

wget https://prerelease.palm.com/sdk-beta/release20090701/palm-novacom_0.3-svn177284-hud9_i386.deb

Instalar monodevelop en Ubuntu Jaunty Jackalope 9.04

Procedemos a la instalación

sudo apt-get install monodevelop

Ahora verificamos el correcto funcionamiento del compilador

$ mcs
Cannot open assembly '/usr/lib/mono/1.0/mcs.exe': No such file or directory.

Como no encuentra el ejecutable lo instalamos

sudo apt-get install mono-mcs

Ahora creamos un archivo que utilize la librería GTK y lo guardamos como example.cs

using Gtk;

class HelloGtkSharp {
public static void Main() {
Application.Init();

Window MiVentana = new Window("Hello Gtk-Sharp");
MiVentana.Show();

Application.Run();
}
}

Ahora lo compilamos

$ mcs example.cs
example.cs(1,7): error CS0246: The type or namespace name `Gtk' could not be found. Are you missing a using directive or an assembly reference?
    Try using -pkg:gtk-sharp
Compilation failed: 1 error(s), 0 warnings

Para poder compilar con gtk debemos incluir el paquete para la compilación

$ mcs -pkg:gtk-sharp example.cs
Package gtk-sharp was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk-sharp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk-sharp' found
error CS8027: Error running pkg-config. Check the above output.

Instalé gtk-sharp2 desde el repositorio pero seguía el mismo problema. Para solucionarlo descargamos la última versión gtk

wget http://ftp.novell.com/pub/mono/sources/gtk-sharp-2.0/gtk-sharp-2.4.3.tar.gz
tar xzvf gtk-sharp-2.4.3.tar.gz
cd gtk-sharp-2.4.3
./configure
make && sudo make install

ahora debemos modificar el nombre de las librerias para que mcs las reconosca

cd /usr/local/lib/pkgconfig/
sudo ln -s gtk-sharp-2.0.pc gtk-sharp.pc
sudo ln -s glib-sharp-2.0.pc glib-sharp.pc

Ahora compilamos

$ mcs -pkg:gtk-sharp example.cs

Esto nos creará un archivo .exe que se ejecuta de la siguiente manera

mono example.exe
gtk-sharp.png

Para crear más programas, podemos utilizar monodevelop

monodevelop.png

Segmentation Fault al ejecutar Streamtuner en Ubuntu Jaunty y Karmic Koala

Streamtuner permite buscar radios online
Al ejecutarlo en ubuntu 9.04 o 9.10 se produce un segmentation fault. Para solucionarlo debemos aplicar un parche al código fuente y volver a compilar

wget http://mirrors.openfountain.cl/savannah/streamtuner/streamtuner-0.99.99.tar.gz
tar xzvf streamtuner-0.99.99.tar.gz
cd streamtuner-0.99.99

debemos aplicar el parche para solucionar el problema

--- src/streamtuner/st-thread.c
+++ src/streamtuner/st-thread.c
@@ -108,1 +108,1 @@
-			     0x18000, /* 96k, big enough for libcurl */
+			     0x40000, /* change from 96k to 256k */

ahora configuramos

./configure
checking for curl-config... no
configure: error: unable to find the libcurl library

debemos instalar la librería curl

sudo apt-get install libcurl4-gnutls-dev

streamtuner.png

Fuente: http://bugs.gentoo.org/attachment.cgi?id=195390&action=view

Instalar Songbird 1.3.0 en Ubuntu Jaunty Jackalope 9.04

Para instalar songbird desde los repositorios de ubuntu, debemos agregar la siguiente línea a /etc/apt/sources.list

deb http://getdeb.masio.com.mx/ jaunty/

Luego hay que actualizar el repositorio y luego se instala
Como en los repositorios aún no está la versión 1.3.0, se realiza la descarga

wget http://developer.songbirdnest.com/builds/trunk/latest/Songbird_1.3.0a-1170_linux-x86_64.tar.gz
tar xzvf Songbird_1.3.0a-1170_linux-x86_64.tar.gz
cd Songbird_1.3.0a-1170
./songbird

Al ejecutar songbird aparece un error

*** glibc detected *** ././songbird-bin: free(): invalid pointer: 0xb12933e0 ***

Luego de mucho googlear encontré la solución

sudo apt-get remove libvisual-0.4-plugins

Una vez desintalada esa librería no habrán problemas al ejecutar songbird

songbird.png
Addons para Songbird: http://developer.songbirdnest.com/builds/trunk/latest/addons/

Instalar ekiga 3.2.5 en Ubuntu Jaunty Jackalope 9.04

Procedemos a la descarga

wget http://chuangtzu.acc.umu.se/pub/GNOME/sources/ekiga/3.2/ekiga-3.2.5.tar.gz
tar xzvf ekiga-3.2.5.tar.gz
cd ekiga-3.2.5
./configure

En el intento de la instalación aparecen muchos errores debido a la falta de librerias
Acá les dejo un resumen de todos los errores que me salieron:

checking for SIGC... configure: error: Package requirements (sigc++-2.0) were not met:

No package 'sigc++-2.0' found

checking for GCONF... configure: error: Package requirements (gconf-2.0 >= 2.6.0) were not met:

No package 'gconf-2.0' found

Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking for EDS... configure: error: Package requirements (libebook-1.2) were not met:

No package 'libebook-1.2' found

checking for LIBSASL2 includes in /usr/include/...
configure: error: *** libsasl2 headers not found

checking for PTLIB... configure: error: Package requirements (ptlib >= 2.6.4) were not met:

No package 'ptlib' found

Ahora instalamos las librerias

sudo apt-get install libsigc++-2.0-dev libgconf2-dev libebook1.2-dev libsasl2-dev libpt2.6.1-dev

Continuamos con la configuración

./configure
checking for PTLIB... configure: error: Package requirements (ptlib >= 2.6.4) were not met:

Requested 'ptlib >= 2.6.4' but version of ptlib is 2.6.1

La versión opal que instalamos (2.6.1) es muy antigua por lo que debemos descargar la version 3.6.4 e instalarla

wget http://caesar.acc.umu.se/pub/GNOME/sources/ptlib/2.6/ptlib-2.6.4.tar.bz2
tar xjvf ptlib-2.6.4.tar.bz2
cd ptlib-2.6.4
./configure
make && sudo make install

Ahora continuamos con ekiga

./configure
checking for OPAL... configure: error: Package requirements (opal >= 3.6.4) were not met:

No package 'opal' found

Para evitar instalar una versión antigua, descargamos la última versión y la instalamos

wget http://laotzu.acc.umu.se/pub/GNOME/sources/opal/3.6/opal-3.6.4.tar.bz2
tar xjvf opal-3.6.4.tar.bz2
cd opal-3.6.4
./configure
make && sudo make install

Ahora continuamos con ekiga

./configure
make && sudo make install

Al momento de ejecutar ekiga nos aparece el siguiente mensaje

$ ekiga
ekiga: error while loading shared libraries: libopal.so.3.6.4: cannot open shared object file: No such file or directory

Para solucionarlo escribimos:

sudo ldconfig

ekiga.png

Instalar gpxviewer 0.0.5 en Ubuntu Jaunty Jackalope 9.04

gpxviewer es un programa que permite visualizar los tracks gpx. Procedemos a la descarga

http://download.sarine.nl/Programs/GPXViewer/gpxviewer-0.0.5.tar.gz
tar xzvf gpxviewer-0.0.5.tar.gz
cd gpxviewer-0.0.5
./configure

Se obtiene el primer problema

checking for modules... configure: error: Package requirements (gtk+-2.0 champlain-gtk-0.3 gmodule-2.0 libxml-2.0) were not met:

No package 'champlain-gtk-0.3' found

La librería champlain no está disponible en los repositorios por lo que hay que descargarla y compilarla

wget http://ftp.gnome.org/pub/GNOME/sources/libchamplain/0.3/libchamplain-0.3.3.tar.gz
wget libchamplain-0.3.3.tar.gz
tar xzvf libchamplain-0.3.3.tar.gz
cd libchamplain-0.3.3
./configure

Como era de esperar también se producen errores

checking for DEPS... configure: error: Package requirements (   glib-2.0 >= 2.16,
      gobject-2.0 >= 2.10,
      gdk-2.0 >= 2.10,
      clutter-0.8 >= 0.8.4,
      clutter-cairo-0.8 >= 0.8,
      cairo >= 1.4,
      gio-2.0 >= 2.16,
      sqlite3 >= 3.0

) were not met:

No package 'clutter-0.8' found
No package 'clutter-cairo-0.8' found
No package 'sqlite3' found

Instalamos las librerias faltantes

sudo apt-get install libclutter-0.9-dev libclutter-cairo-0.8-dev libsqlite3-dev

Volvemos a configurar

configure: error: Couldn't find libsoup or libsoup-gnome.

instalamos libsoup

sudo apt-get install libsoup-gnome2.4-dev

Volvemos a configurar

checking for GTK_DEPS... configure: error: Package requirements (   gtk+-2.0 >= 2.2
        clutter-gtk-0.8 >= 0.8

) were not met:

No package 'clutter-gtk-0.8' found

instalamos clutter

sudo apt-get install libclutter-gtk-0.8-dev

Ahora al fin podemos configurar e instalar champlain

./configure
make && sudo make install

Ahora volvemos a la carpeta de gpxviewer y continuamos con la configuaración

./configure
make

valac -C -H gpx-parser.h gpx-parser.vala --pkg=gtk+-2.0 --pkg=libxml-2.0 --pkg=glib-2.0 --library=gpx-parser --basedir=../src
/bin/bash: valac: command not found

No se encontró valac, por lo que la descargamos

sudo apt-get install valac

volvemos a compilar

make clean && make
gpx-graph.vala:54.4-54.29: error: The name `connect' does not exist in the context of `null'
			this.size_allocate.connect(size_allocate_cb);
			^^^^^^^^^^^^^^^^^^^^^^^^^^
gpx-graph.vala:55.4-55.34: error: The name `connect' does not exist in the context of `null'
			this.button_press_event.connect(button_press_event_cb);
			^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 2 error(s), 0 warning(s)
make[2]: *** [gpx-graph.vala.stamp] Error 1

El error anterior se produce porque se está utilizando una versión muy antigua de valac (0.5.7-1)
Descargamos la última versión (0.7.2) y la compilamos

wget https://launchpadlibrarian.net/26680654/vala_0.7.2.orig.tar.gz
tar xzvf vala_0.7.2.orig.tar.gz
cd vala_0.7.2.orig
./configure
make && sudo make install

Ahora volvemos nuevamente a gpxviewer y compilamos

make clean && make
/usr/local/bin/valac: symbol lookup error: /usr/local/bin/valac: undefined symbol: vala_code_context_set_verbose_mode
make[2]: *** [gpx-parser.vala.stamp] Error 127

Busqué ese error en google y no encontré NADA!!
Alguna sugerencia?