domingo, 16 de agosto de 2009

Linux - Add a existing user to existing group

Add existing user tony to ftp supplementary/secondary group with usermod command using -a option ~ i.e. add the user to the supplemental group(s). Use only with -G option:
# usermod -a -G ftp tony

Change existing user tony primary group to www:
# usermod -g www tony

sábado, 8 de agosto de 2009

Instalar D-Link DWA-110 en debian lenny

Instalar drivers:
http://wiki.debian.org/WiFi/rt73#Lenny

Instalar wpa_supplicant:
http://wiki.debian.org/WiFi/HowToUse#wpasupplicant

viernes, 7 de agosto de 2009

Instalación de debian 5.02 desde el disco duro teniendo otro debian ya instalado

Obtener desde:
ftp://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/hd-media/
Los sgtes archivos:
  • boot.img.gz
  • initrd.gz
  • vmlinuz

Obtener desde www.debian.org el "Network install from a minimal CD":
  • debian-502-i386-netinst.iso

En el debian ya instalado:

mkdir /boot/newinstall

copiar en ese directorio los sgtes archivos:
  • boot.img.gz
  • initrd.gz
  • vmlinuz
  • debian-502-i386-netinst.iso

Agregar al final del archivo /boot/grub/menu.lst

title New Debian Install
root (hd0,0)
kernel /boot/newinstall/vmlinuz
initrd /boot/newinstall/initrd.gz

reiniciar y bootear el "New Debian Install"

jueves, 6 de agosto de 2009

Obtención del nombre de la máquina en PHP

Si no resulta $_SERVER['SERVER_NAME'], usar:

php_uname('n');