miércoles, 18 de mayo de 2011

Micronet SP3367D Port Forwarding - DMZ

Si tienes un Modem Micronet SP3367D ADSL2+ Router, que tiene un software como el de la figura esto podria serte util si necesitas servicios detras de tu IP. Despues de varios intentos de configurar el port forwarding, intente con la opcion DMZ, y con eso pude conseguir casi el mismo resultado. Conceptualmente es distinto, pero en la practica da lo mismo. La unica diferencia es que asi todos los servicios/puertos se redireccionan al IP al que apunta la DMZ, que tampoco es tan grave, basta con configurar un buen firewall en el IP destino y listo.

sábado, 12 de marzo de 2011

Ubuntu Kernel updates and Nvidia drivers problems

I have a PC with this on board nvidia chip:

00:0d.0 VGA compatible controller: nVidia Corporation C61 [GeForce 6150SE nForce 430] (rev a2)

Many times, after system updates which includes kernel updates, X Window configuration for nvidia fails to start X Server.
From that scenario, I've found two possible solutions:
1) Use the command line installer, like these:

sudo nvidia-installer --update


These approach, of course assumes that you are connected to the Internet, which is not always true if you are using wireless, for instance, by default Ubuntu uses gnome's network-manager to start your wireless networking.

2) Use an alternative xorg.conf to start with a minimal configuration and use the System/Administration/Additional Drivers
Remembering 1998, my first year with Red Hat Linux 5.2, back then, I came up with this minimal X Window configuration, with vesa driver, which should work in most chipset.
By replacing
/etc/X11/xorg.conf
whith this one, you can start X Window from command line:


--- start xorg.conf-vesa ----

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Module"
Load "glx"
EndSection

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
EndSection

Section "Device"
Identifier "Device0"
VendorName "NVIDIA Corporation"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

--- end xorg.conf-vesa ----


startx


And use the System menu to fix you NVidia Driver configuration. After downloading and installing the package, you will need a reboot, and voila, you're again with your NVidia Driver up and running.

miércoles, 6 de octubre de 2010

Java Timezone Updates - Daylight Savings problem

Java keeps it's time zone data independently from the operating system (at least on linux), if you want to keep it updated you should download Time Zone Updater from oracle(sun)

http://www.oracle.com/technetwork/java/javase/tzupdater-readme-136440.html

and then run the command

java -jar tzupdater.jar -u

The user should have permission over the JDK/JRE directories.

More details on http://www.oracle.com/technetwork/java/javase/timezones-137583.html#tzu

martes, 9 de junio de 2009

Simplest log4j configuration

The simplest way to configure log4j without a file, and with java code (specially handy when you want to use log4j for a small java app, and want to get rid of the warnings showed by the logger).

Properties conf = new Properties();

conf.put("log4j.rootLogger", "debug, myAppender");
conf.put("log4j.appender.myAppender", "org.apache.log4j.ConsoleAppender");
conf.put("log4j.appender.myAppender.layout", "org.apache.log4j.SimpleLayout");
PropertyConfigurator.configure(conf);

sábado, 6 de septiembre de 2008

Update NVidia Driver on Ubuntu after kernel Ugrade

After upgrading kernel package, on Ubuntu 8.04 I always had to reinstall NVidia's Driver.
Fortunately nvidia provides you with an easy way to do it, and this way you make sure you always have the latest one, without having to hunt for the driver at Nvidia's site (which means a LOT! Nvidia's site browsability really sucks).
Just type the command

$ sudo nvidia-installer --update

and it will do all the work.

Ubuntu Timer Applet

Some time ago, I needed some "reminder" (computer science does cooks brains :-S ) I made a simple script to :



Code:

#!/bin/bash
if [ $# -eq 2 ]; then
sleep $1m
while [ 1 ]; do
sleep 3m
wall "$2"
xmessage -nearmouse "$2"
done
else
echo "uso: $0 #minutos MENSAJE"
fi



I did for simple tasks like "remember to call your ISP who told you Call me back in x minutes... ", which I almost always ended up forgetting.
Today I found this fantastic gnome applet (BTW it's on Ubuntu's repository):

http://timerapplet.sourceforge.net/

With Screenshots:

http://www.flickr.com/photos/7982697@N0 … 37/detail/

Now I just have to remember why I was looking for an applet like this :)

Enjoy!

lunes, 25 de agosto de 2008

IBExpert Personal on Wine - Ubuntu Linux


I was able to run IBExpert within Wine merging this two guides

IBexpert WINE Howto and the using_ibexpert_with_linux_and_wine.pdf provided by my colleague (thanks to Carlao).

0- Install wine from ubuntu repositories (I'm using Ubuntu 8.04)

$ sudo apt-get install wine

1- don't run ibexpert before doing next steps, if you did it, probably you need to delete .wine directory,

2- If you not already done, Install dcom98 as http://wiki.winehq.org/NativeDcom
(may be native dcom should be fixed to work with ibexpert).

3- replace riched20.dll and msls31.dll (copy from a win98 or winxp distribution)

4- in winecfg add native dll overrides for ibexpert: ole32, oleaut32, riched20

5- Downloaded gds32.dll and copy to wine's system32 directory.

6- Run

$ wine regedit

This opens the “Windows Register Editor”. Search for the contents in the
HKEY_CURRENT_USER\Control Panel\International key, and change the value
of “sShortDate” from “d/M/yyyy” to “dd/MM/yyyy” (without the quotation marks).
7- Finally run IBexpert installation
$ wine setup_personal.exe

8- Run IBexpert through desktop link or
$ env WINEPREFIX="/home/USER/.wine" wine "C:\Program Files\HK-Software\IBExpert\ibexpert.exe"

replacing USER with your unix username.