domingo 10 de mayo de 2009
Fotos de la cena de ex-alumnos Margarida Xirgú 1ª y 2ª promoción
Publicado por
Pere Moltó Agut
a las
12:53
Deja tu comentario
Labels: amigos
sábado 18 de abril de 2009
VMware 1.0.9 + tarjeta de red realtek RTL8168C(P)/8111C(P)
Realtek RTL8168C(P)/8111C(P) PCI-E Gigabit Ethernet NIC
... no consigo hacer funcionar la red de las máquinas virtuales Linux (en concreto Ubuntu y Xubuntu). En cambio las VMs Windows funcionan sin problemas. Despues de hacer el downgrade de VMware Server a la versión 1.0.8 todas las VM vuelven a funcionar de nuevo... Me planto con 1.0.8.
ACTUALIZACION 2009-05-03: Tras actualizar el driver de la tarjeta de red (5.720), vuelvo a probar con VMWare 1.0.9 y parece que funciona todo bien. Pero no. Las transferencias por samba siguen sin ir, devuelven el famoso "El nombre de red especificado ya no está disponible". Pruebo lo mismo con VMWare 1.0.8 y tampoco... Desactivando las opciones offload de la tarjeta de red del sistema host tampoco arreglo nada. Probaré con otra tarjeta porque de momento parece que la Realtek y VMware se dan de hostias.
ACTUALIZACION 2009-05-05: Bueno, lo de las transferencias samba quizá no sea un enfado entre Realtek y VMWare... La verdad es que no acabo de decidirme acerca de a quién habría que exculpar, pero si tuviera que sentenciar ahora mismo a alguien, se la cargaría el Windows XP. En cualquier caso la solución al problema se encuentra en una nota de Microsoft. Yo he utilizado el segundo método propuesto (Disable denial of service attack detection). Lo tiraría todo hacia atrás para volver a repetirlo todo y asegurarme de que no influyen otros factores (versión drivers y VMware, parámetros driver, parámetros TCP...). Pero con lo que me ha constado arreglar este problema prefiero no arriesgar.
Publicado por
Pere Moltó Agut
a las
11:51
Deja tu comentario
Labels: hardware, linux, networking, ubuntu, vmware, windows, xubuntu
domingo 5 de abril de 2009
VMware server, Linux, NTFS
Con VMware en una partición NTFS, si intentas botar la máquina virtual desde Linux, es posible que la VM reviente nada más arrancar.El log en la carpeta donde vive la VM puede estar diciendo algo así:
Apr 05 22:26:16: vcpu-0| CPU reset: hard
Apr 05 22:26:16: vcpu-0| Could not mmap paging file : No such device
Apr 05 22:26:16: vcpu-0| Could not mmap paging file : No such device
Apr 05 22:26:16: vcpu-0| Failed to allocate page for guest RAM!
Apr 05 22:26:16: vcpu-0| Backtrace:
Apr 05 22:26:16: vcpu-0| Backtrace[0] 0xb29bce08 eip 0x805b560
Apr 05 22:26:16: vcpu-0| Backtrace[1] 0xb29bd228 eip 0x80c0dbb
Apr 05 22:26:16: vcpu-0| Backtrace[2] 0xb29bd2d8 eip 0x825ba71
Apr 05 22:26:16: vcpu-0| Backtrace[3] 0xb29bd308 eip 0x82b87ac
Apr 05 22:26:16: vcpu-0| Backtrace[4] 0xb29bd328 eip 0x82bcf29
Apr 05 22:26:16: vcpu-0| Backtrace[5] 0xb29bd358 eip 0x82c58fb
Apr 05 22:26:16: vcpu-0| Backtrace[6] 0xb29bd368 eip 0x82bd011
Apr 05 22:26:16: vcpu-0| Backtrace[7] 0xb29bd3d8 eip 0x8068a19
Apr 05 22:26:16: vcpu-0| Backtrace[8] 0xb29bd4c8 eip 0xb7ea34fb
Apr 05 22:26:16: vcpu-0| Backtrace[9] 00000000 eip 0xb7c9ce5e
Además de aparecer un core como un piano.
Si le damos un poco a la manivela de Google con lo obtenido en el log, podemos encontrar la solución al problema en cualquiera de las primeras coincidencias (por ejemplo en este hilo). Se trata de añadir
mainmem.UseNamedFile = "false"
en el fichero .vmx de la VM en cuestión, que desde ese momento debería arrancar bién.
Veo que VMware ha liberado la versión 1.0.9 de VMware server. Todavía no sé si esto sigue pasando.
Publicado por
Pere Moltó Agut
a las
21:59
Deja tu comentario
lunes 30 de marzo de 2009
Soporte informático y pantallazos
Sr. abogado:Doy soporte informático y acostumbro a pedir pantallazos a los usuarios. ¿Debo exigir plus de peligrosidad en mi nómina? :-P
Publicado por
Pere Moltó Agut
a las
18:57
Deja tu comentario
Labels: cachondeo, extrem friki, it, it security
sábado 28 de marzo de 2009
Nef 2 Jpg
Nef es el formato raw que trae la Nikon de María José cuando no quieres comprimir la imagen en el momento de almacenar la fotografía en memoria.
Siguiendo los consejos de este thread de ubuntuforums.org instalé ufraw, y con la siguiente secuencia de comandos en rojo...
nouser@nohost:~/pics$ for FILE in *.NEF
> do
> BASENAME=`basename $FILE .NEF`
> ufraw-batch --out-type=jpeg $FILE --output=$BASENAME.JPG
> done
ufraw-batch: loaded DSC_0281.NEF
ufraw-batch: saved /home/nouser/pics/DSC_0281.JPG
ufraw-batch: loaded DSC_0282.NEF
ufraw-batch: saved /home/nouser/pics/DSC_0282.JPG
ufraw-batch: loaded DSC_0283.NEF
ufraw-batch: saved /home/nouser/pics/DSC_0283.JPG
ufraw-batch: loaded DSC_0284.NEF
ufraw-batch: saved /home/nouser/pics/DSC_0284.JPG
ufraw-batch: loaded DSC_0285.NEF
ufraw-batch: saved /home/nouser/pics/DSC_0285.JPG
ufraw-batch: loaded DSC_0286.NEF
ufraw-batch: saved /home/nouser/pics/DSC_0286.JPG
ufraw-batch: loaded DSC_0287.NEF
ufraw-batch: saved /home/nouser/pics/DSC_0287.JPG
ufraw-batch: loaded DSC_0288.NEF
ufraw-batch: saved /home/nouser/pics/DSC_0288.JPG
nouser@nohost:~/pics$
... pude convertir de una tacada todos los archivos a su correspondiente JPG.
Publicado por
Pere Moltó Agut
a las
22:39
Deja tu comentario
viernes 27 de marzo de 2009
Pear for begginners like me
Esto a continuación es un casi copy/paste de un documento acerca de algo que intenté hacer hace unas semanas con pear. Casi ni recuerdo lo que era, pero antes de perder el hilo definitivamente, lo cuelgo.
nouser@nohost:/var/www$ man pear
No manual entry for pear
See 'man 7 undocumented' for help when manual pages are not available.
nouser@nohost:/var/www$ pear
Commands:
build Build an Extension From C Source
bundle Unpacks a Pecl Package
channel-add Add a Channel
channel-alias Specify an alias to a channel name
channel-delete Remove a Channel From the List
channel-discover Initialize a Channel from its server
channel-info Retrieve Information on a Channel
channel-update Update an Existing Channel
clear-cache Clear Web Services Cache
config-create Create a Default configuration file
config-get Show One Setting
config-help Show Information About Setting
config-set Change Setting
config-show Show All Settings
convert Convert a package.xml 1.0 to package.xml 2.0 format
cvsdiff Run a "cvs diff" for all files in a package
cvstag Set CVS Release Tag
download Download Package
download-all Downloads each available package from the default channel
info Display information about a package
install Install Package
list List Installed Packages In The Default Channel
list-all List All Packages
list-channels List Available Channels
list-files List Files In Installed Package
list-upgrades List Available Upgrades
login Connects and authenticates to remote server
logout Logs out from the remote server
makerpm Builds an RPM spec file from a PEAR package
package Build Package
package-dependencies Show package dependencies
package-validate Validate Package Consistency
pickle Build PECL Package
remote-info Information About Remote Packages
remote-list List Remote Packages
run-scripts Run Post-Install Scripts bundled with a package
run-tests Run Regression Tests
search Search remote package database
shell-test Shell Script Test
sign Sign a package distribution file
uninstall Un-install Package
update-channels Update the Channel List
upgrade Upgrade Package
upgrade-all Upgrade All Packages
Usage: pear [options] command [command-options]
Type "pear help options" to list all options.
Type "pear help shortcuts" to list all command shortcuts.
Type "pear help
nouser@nohost:/var/www$ pear config-show
Configuration (channel pear.php.net):
=====================================
Auto-discover new Channels auto_discover
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config
PEAR executables directory bin_dir /usr/bin
PEAR documentation directory doc_dir /usr/share/php/docs
PHP extension directory ext_dir /usr/lib/php5/20060613+lfs
PEAR directory php_dir /usr/share/php
PEAR Installer cache directory cache_dir /tmp/pear/cache
PEAR data directory data_dir /usr/share/php/data
PEAR Installer download download_dir /tmp/pear/cache
directory
PHP CLI/CGI binary php_bin /usr/bin/php
php.ini location php_ini
PEAR Installer temp directory temp_dir /tmp/pear/temp
PEAR test directory test_dir /usr/share/php/tests
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
PEAR password (for password
maintainers)
Signature Handling Program sig_bin /usr/bin/gpg
Signature Key Directory sig_keydir /usr/etc/pearkeys
Signature Key Id sig_keyid
Package Signature Type sig_type gpg
PEAR username (for username
maintainers)
User Configuration File Filename /home/nouser/.pearrc
System Configuration File Filename /usr/etc/pear.conf
...
nouser@nohost:/var/www$ pear install LiveUser
Failed to download pear/LiveUser within preferred state "stable", latest release is version 0.16.13, stability "beta", use "channel://pear.php.net/LiveUser-0.16.13" to install
Cannot initialize 'channel://pear.php.net/LiveUser', invalid or missing package file
Package "channel://pear.php.net/LiveUser" is not valid
install failed
nouser@nohost:/var/www$ pear list-all
All packages [Channel pear.php.net]:
====================================
Package Latest Local
pear/Benchmark 1.2.7 Framework to benchmark PHP scripts or function calls.
pear/Cache 1.5.5 Framework for caching of arbitrary data.
pear/Cache_Lite 1.7.4 Fast and Safe little cache system
pear/Config 1.10.11 Your configuration's swiss-army knife.
pear/Date_Holidays_Italy 0.1.0 Driver based class to calculate holidays in Italy.
pear/Date_Holidays_Japan 0.1.0 Driver based class to calculate holidays in Japan.
pear/Date 1.5.0a1 Generic date/time handling class for PEAR
pear/Calendar 0.5.4 A package for building Calendar data structures (irrespective of output)
pear/Date_Holidays 0.20.1 Driver based class to calculate holidays.
pear/Date_Holidays_Ireland 0.1.1 Driver based class to calculate holidays in Ireland.
pear/Date_Holidays_Iceland 0.1.1 Driver based class to calculate holidays in Iceland.
pear/Date_Holidays_Germany 0.1.1 Driver based class to calculate holidays in Germany.
pear/Date_Holidays_EnglandWales 0.1.1 Driver based class to calculate holidays in England and Wales.
pear/Date_Holidays_Discordian 0.1.1 Driver based class to calculate Discordian holidays.
pear/Date_Holidays_Denmark 0.1.1 Driver based class to calculate holidays in Denmark.
pear/Date_Holidays_Brazil 0.1.2 Driver based class to calculate holidays in Brazil.
pear/Date_Holidays_Austria 0.1.2 Driver based class to calculate holidays in Austria.
pear/Date_Holidays_Netherlands 0.1.1 Driver based class to calculate holidays in the Netherlands.
pear/Date_Holidays_Norway 0.1.1 Driver based class to calculate holidays in Norway.
pear/Date_Holidays_PHPdotNet 0.1.2 Driver based class to calculate birthdays of some members of the PHP.net community.
pear/Date_Holidays_Romania 0.1.1 Driver based class to calculate holidays in Romania.
pear/Date_Holidays_Slovenia 0.1.2 Driver based class to calculate holidays in Slovenia.
pear/Date_Holidays_Sweden 0.1.1 Driver based class to calculate holidays in Sweden.
pear/Date_Holidays_Ukraine 0.1.1 Driver based class to calculate holidays in the Ukraine.
pear/Date_Holidays_UNO 0.1.2 Driver based class to calculate holidays in UNO.
pear/Date_Holidays_USA 0.1.1 Driver based class to calculate holidays in USA.
pear/Event_Dispatcher 1.0.0 1.0.0 Dispatch notifications using PHP callbacks
pear/Event_SignalEmitter 0.3.1 Generic signal emitting class with the same API as GObject.
pear/Gtk_VarDump 1.0.0 A simple GUI to example php data trees
pear/Gtk_ScrollingLabel 1.0.0 A scrolling label for PHP-Gtk
pear/Gtk_FileDrop 1.0.2 Make Gtk widgets accept file drops
pear/Gtk_Styled 1.0.0 PHP-GTK pseudo-widgets that mimic GtkData based objects and allow the look and feel to be controlled by the programmer.
pear/Log 1.11.3 Logging Framework
pear/Payment_PayPal_SOAP 0.1.0 This package provides an easy-to-use wrapper of PHP 5's SOAP client for use with the PayPal SOAP API.
pear/Payment_Clieop 0.1.2 These classes can create a clieop03 file for you which you can send to a Dutch Bank. Ofcourse you need also a Dutch bank account.
pear/Payment_Process 0.6.6 Unified payment processor
pear/Payment_DTA 1.3.0a1 Creates DTA files containing money transaction data (Germany).
pear/FSM 1.3.0 Finite State Machine
pear/QA_Peardoc_Coverage 1.1.1 PEAR documentation coverage analysis.
pear/Science_Chemistry 1.1.0 Classes to manipulate chemical objects: atoms, molecules, etc.
pear/Services_Akismet Services_Akismet is a package to use Akismet spam-filtering from PHP
pear/Stream_SHM 1.0.0 Shared Memory Stream
pear/Stream_Var 1.0.0 Allows stream based access to any variable.
pear/VersionControl_SVN 0.3.1 Simple OO wrapper interface for the Subversion command-line client.
pear/Console_Getopt 1.2.3 Command-line option parser
pear/PEAR 1.6.1 PEAR Base System
pear/Archive_Tar 1.3.2 Tar file management class
pear/Structures_Graph 1.0.2 Graph datastructure manipulation library
nouser@nohost:/var/www$ pear search liveuser
Retrieving data...0%.Matched packages, channel pear.php.net:
=======================================
Package Stable/(Latest) Local
LiveUser 0.16.13 (beta) User authentication and permission management framework
LiveUser_Admin 0.3.9 (beta) User authentication and permission management framework
nouser@nohost:/var/www$ pear install LiveUser
Failed to download pear/LiveUser within preferred state "stable", latest release is version 0.16.13, stability "beta", use "channel://pear.php.net/LiveUser-0.16.13" to install
Cannot initialize 'channel://pear.php.net/LiveUser', invalid or missing package file
Package "channel://pear.php.net/LiveUser" is not valid
install failed
nouser@nohost:/var/www$ pear install LiveUser-0.16.13
Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user
nouser@nohost:/var/www$ sudo pear install LiveUser-0.16.13
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
WARNING: "pear/MDB" is deprecated in favor of "pear/MDB2"
WARNING: "pear/XML_Tree" is deprecated in favor of "pear/XML_Serializer"
Did not download optional dependencies: pear/Log, pear/DB, pear/MDB, pear/MDB2, pear/MDB2_Schema, pear/XML_Tree, pear/Crypt_RC4, use --alldeps to download automatically
pear/LiveUser can optionally use package "pear/Log" (version >= 1.7.0)
pear/LiveUser can optionally use package "pear/DB" (version >= 1.6.0)
pear/LiveUser can optionally use package "pear/MDB" (version >= 1.1.4)
pear/LiveUser can optionally use package "pear/MDB2" (version >= 2.0.0)
pear/LiveUser can optionally use package "pear/MDB2_Schema"
pear/LiveUser can optionally use package "pear/XML_Tree"
pear/LiveUser can optionally use package "pear/Crypt_RC4"
pear/LiveUser can optionally use PHP extension "mcrypt"
downloading LiveUser-0.16.13.tgz ...
Starting to download LiveUser-0.16.13.tgz (76,849 bytes)
.................done: 76,849 bytes
install ok: channel://pear.php.net/LiveUser-0.16.13
Publicado por
Pere Moltó Agut
a las
23:51
Deja tu comentario
domingo 15 de marzo de 2009
CIFS y netbios en AIX
No sé porqué fuí a mirar si el equipo que compartía tenía netbios activado. Y no lo tenía. Resultó ser eso. Creo que con un par de tcpdumps habría llegado a la misma conclusión, pero como no estaba pasando por cortafuegos alguno, no se me ocurrió mirar la pestaña WINS de las propiedades TCP/IP hasta media hora después.
domingo 1 de febrero de 2009
Cómo repetir una cadena en bash
nouser@nohost:~$ CADENA="loquesea_"
nouser@nohost:~$ for i in {1..3};do printf "%s" $CADENA;done;echo
loquesea_loquesea_loquesea_
nouser@nohost:~$ printf "$CADENA%.0s" {1..3};echo
loquesea_loquesea_loquesea_
martes 27 de enero de 2009
sed, borrando bloques de texto delimitado por cadenas
Tenía unos cuantos ficheros htm dentro de un directorio (pongamos como ruta /ruta/del/directorio), y quería borrar de ellos -si lo contenían- las siguientes líneas:<div class="links">
<a href="http://peremolto.net">peremolto.net</a>
</div>
En la página de sed, el ejemplo 4.21 se ajusta casi en su totalidad a esto. Tras adaptarlo a lo mío quedó así:
# sed script to delete a block if /regex/ matches inside it
:t
/<div class="links">/,/div>/ { # For each line inside these block markers
/div>/!{ # If we are not at the /end/ marker
$!{ # nor the last line of the file,
N; # add the Next line to the pattern space
bt
} # and branch (loop back) to the :t label.
} # This line matches the /end/ marker.
/>peremolto.net</d; # If /regex/ matches, delete the block.
} # Otherwise, the block will be printed.
#---end of script---
Tal como se presenta este script sed, lo incluimos en un "for i in" que recorre los ficheros devueltos por un find
nouser@nohost:~$ for i in `find /ruta/del/directorio -name "*.htm"`; do sed -f borra_delimitado.sed -i $i; done
Intro y fin.
Linux, sed, bash... cuanta potencia.
Publicado por
Pere Moltó Agut
a las
21:36
Deja tu comentario
miércoles 21 de enero de 2009
Knoppix, problema de visionado de imagen en algunos monitores
En alguna ocasión que he necesitado arrancar un equipo con una live distro, teniendo sólo a mano un Knoppix, me he encontrado que el monitor que estaba utilizando en aquel momento no era capaz de renderizar la imagen que enviaba el ordenador tras el botado inicial.Los modificadores de arranque de Knoppix son muchos, pero el que en concreto permite corregir esta situación es 'vga=normal'. Si no recuerdo mal, las ayudas que presenta el menú de inicio de Knoppix no traen documentada esta opción.
En mi caso necesité arrancar con un teclado en castellano, así que el comando de arranque completo fue:
knoppix lang=es vga=normal
Aunque reconozco que cada vez utilizo menos Knoppix. Efecto colateral Ubuntu.
Publicado por
Pere Moltó Agut
a las
20:16
1 Comentario:



Inglés a castellano
Anglès a català