Archivo de la categoría: CentOS

LFTP y Screen

ScreenPara usar el lftp en consola lo 1º de todo es screen. Mítico.Me va a permitir crear un terminal virtual en la consola, al que podré entrar y salir a placer.De esta manera dejaré el lftp corriendo en mi servidor, pero lo manejaré desde mi pc.Si no usase screen, al cerrar la sesión en el… Leer más »

Xen Keeping the Windows CD(s) mounted after reboot:

First make disk images from your CD(s): dd if=/dev/cdrom of=/iso/win2k3_1.iso bs=2048 dd if=/dev/cdrom of=/iso/win2k3_1.iso bs=2048 Then edit your config file: disk = [ ‘file:/vm/win2k3.img,hda,w’, ‘file:/iso/win2k3_1.iso,ioemu:hdb:cdrom,r’, ‘file:/iso/win2k3_2.iso,ioemu:hdc:cdrom,r’, ] name = «vm_windows2003» uuid = «0bd2c8f1-4555-c192-c481-400fa7f6a18b» maxmem = 1024 memory = 1024 vcpus = 1 builder = «hvm» kernel = «/usr/lib/xen/boot/hvmloader» boot = «d» pae = 1 acpi… Leer más »

Joomla autopublish

Autopublicación Cambiar $row->state = 0; a $row->state =1; en todo el código My apologies, I missed out part of the hack to get news auto-published. If you can, please take Dave’s advice and use mycontent or ja_submit. Once you hack core code you have to repeat your work every time there is a new release.… Leer más »

Sun Java JRE

Homepage: http://java.sun.com/ Sun’s JAVA JRE adds full Java support to your system. If you want to use Sun’s JAVA, open http://java.sun.com/javase/downloads/index.jsp within firefox and download the Linux self-extracting file – NOT the Linux RPM in self-extracting file. The following steps require root privileges. Please note that you have to edit the following commands if your… Leer más »

grub centos

http://forums.theplanet.com/index.php?showtopic=57473

resize the virtual disk image?

Solution:  This solution is to increase your virtual disk size:  cd /var/lib/xen/images/vlinux1 #use dd to create a 1 GB file dd if=/dev/zero of=Tempfile bs=1024 count=1000000 #append this file to virtual image file (in this case is hda) cat Tmpfile >> hda  resize2fs -f hda  ——————  este es como vmware que te da espacio pero no… Leer más »

script generates a MAC address for Xen guests

#!/usr/bin/python # macgen.py script generates a MAC address for Xen guests # import random mac = [ 0x00, 0x16, 0x3e, random.randint(0x00, 0x7f), random.randint(0x00, 0xff), random.randint(0x00, 0xff) ] print ‘:’.join(map(lambda x: «%02x» % x, mac))

Using multiple network cards in XEN 3.0

you need 2 bridge interfaces: xenbr0 = eth0 xenbr1 = eth1 create a new script with the following lines: (ex: multiplebridge.sh) in /etc/xen/scripts/ #!/bin/sh dir=$(dirname «$0») «$dir/network-bridge» «$@» vifnum=0 netdev=eth0 bridge=xenbr0 «$dir/network-bridge» «$@» vifnum=1 netdev=eth1 bridge=xenbr1 make the script executable (chmod +x /etc/xen/scripts/multiplebridge.sh) modify /etc/xen/xend-config.sxp change the line: (network-script network-bridge) to (network-script multiplebridge.sh) modify your… Leer más »