Debian: Synchronizing server time with NTP
2010-03-14 | Categories: Articles, Technology | Tags: debian, foss, linux
It’s a good practice to have all the servers synchronized with the same date & time, no matter what servers you’re using (windows, linux, mac, aix, etc). It’s a quite simple configuration to avoid any kind of problems related with time, some applications specify this requirement other don’t so please don’t wait until you have problems to apply this simple config.
Configuring Debian GNU/LiNUX to use a public NTP Server is simple, just do this:
$ sudo aptitude install ntpdate
The ntpdate package includes the file /etc/if-up.d/ntpdate that runs /usr/bin/ntpdate-debian after an interface (eth0, eth1, etc.) is up so you won’t have to worry about configuring this synchronizing process to run automatically. Let’s run it manually so we apply the time from the NTP Server right now:
$ sudo ntpdate-debian 14 Mar 21:41:50 ntpdate[10808]: step time server 146.164.48.5 offset -0.589987 sec
That’s it! This is the simple way but if you want to try a more advance config just read /usr/share/doc/ntpdate/README.Debian and /etc/default/ntpdate files in your server.
2009-06-11 | Categories: Articles, Technology | Tags: debian, foss, ldap, linux
En esta oportunidad voy a mostrar lo fácil que es configurar un servidor LDAP en Debian. Para ello, continuaré usando el servidor de pruebas que configuramos en los artículos:
Nota: En este artículo asumo conocimiento previo de LiNUX y LDAP.
Completando la instalación Debian GNU/LiNUX 5.0 (Lenny)
2009-03-14 | Categories: Articles | Tags: debian, foss, linux
En el artículo anterior Instalando Debian GNU/LiNUX 5.0 (Lenny), terminamos la instalación de un servidor de pruebas en una máquina virtual pero como se habrán dado cuenta no están instalados todos los paquetes que necesitamos para jugar con el. Por eso, en este artículo les mostraré como instalar y configurar algunos paquetes que considero indispensables en todo GNU/LiNUX.
Nota: Asumo un conocimiento previo de Linux, VIM y BASH
Instalando Debian GNU/LiNUX 5.0 (Lenny)
2009-03-14 | Categories: Articles, Technology | Tags: debian, foss, linux
Hace unos días decidí probar el instalador gráfico de Debian GNU/LiNUX 5.0 – Lenny y quedé gratamente sorprendido porque ahora todo es más fácil y simple que nunca. Ya parece muy lejano el tiempo cuando instalar Debian era una tarea algo simple para expertos pero muy complicada para novatos.
Con este nuevo instalador ahora tenemos disponible un practico botón para guardar screenshots, así que aprovechando esta característica me decidí a escribir un mini artículo de instalación. No busco detallar los pasos para instalar un servidor de producción, sino mi intensión es brindar una guía para instalar un servidor de pruebas en una máquina virtual. Con servidor de pruebas quiero decir un servidor donde podamos jugar con base de datos, ldap servers, web servers, etc.
Nota: En este artículo asumo un conocimiento previo de linux.
Finding file names without dots in their names
2007-10-08 | Categories: Articles, Technology | Tags: linux, unix
Yesterday, I received an interesting question in a company where I’m a consultant. They wanted to find all file names in the source code of “XYZ” application without dots in their names so they were looking for the easiest way to do this task in GNU/LiNUX.
I’ve never needed to do that kind of search so I’ve recommended to read find command man page and use regular expressions. At home, I’ve found an nice way to do this task:
modlost@optimus:~/tmp$ mkdir -p testdir/1/2/3
modlost@optimus:~/tmp$ touch testdir/1/withoutdots
modlost@optimus:~/tmp$ touch testdir/1/2/with.dot
modlost@optimus:~/tmp$ touch testdir/1/2/3/withoutdots
modlost@optimus:~/tmp$ find testdir -type f -regex '[^.]*'
testdir/1/2/3/withoutdots
testdir/1/withoutdots
2007-08-29 | Categories: Articles, Technology | Tags: foss, java, linux
Geronimo 2.0.1 has been released! There are a lot of new features, all of them made Geronimo a fully compliant and certified Java Enterprise Edition 5.0 container. So, it’s time to play with it!
Getting binaries
First of all, we have to download JDK 1.5 or greater from here. If you prefer, you could use the default package of your favorite distribution but in my case, I usually need different versions of JDK, so, I prefer to manage the JDK by myself.
modlost:~$ ls ~/download
jdk-6-linux-i586.bin
A good question is where we will install that JDK?, well, It’s better to follow FHS and try to keep everything clean in your hard disk. It’s difficult sometimes but It’s better for maintenance. Let’s install JDK in /opt directory.
modlost:~$ mkdir -p /opt/java/sun/
modlost:~$ cp ~/download/jdk-6-linux-i586.bin /opt/java/sun
modlost:~$ cd /opt/java/sun
modlost:/opt/java/sun$ chmod 755 jdk-6-linux-i586.bin
modlost:/opt/java/sun$ ./jdk-6-linux-i586.bin







