Archives for CentOS category
http://www.gra2.com/article.php?query=generador&story=20050208110955884
http://www.alcancelibre.org/staticpages/index.php/SAMBALDAP-CENTOS5
Hi Folks,
I’ve searched throught this board and noticed a few folks have had this problem…Mine
started after installing an ethernet card….Screen came up blue…..”Registry file
failure. The registry cannot load the hive file System Root\System32\Config\Software
I found this apparent fix when booting from the Windows XP cd….
Quote:
Do you have a XP CD? If so, boot into the recovery console from it and type the following:
cd system32
cd config
ren software software.bak
ren system system.bak
cd ..
cd ..
cd repair
copy software c:\windows\system32\config
copy system c:\windows\system32\config
This restores XP to brand new. You have all data, but a fresh registry. Whatever
you do, DON’T REBOOT UNTIL YOU’RE DONE WHATEVER YOU’RE DOING!!! It will probably
die again.
End of Quote
The problem is that I’m not that great with computers and I followed the wording
EXACTLY…After the first entries I come to
“ren software software.bak” which after I have changed to the Config directory says
“the system cannot find the file or directory specified…I think I’m missing something
here…I just typed “cd..” like it said etc..and it said the same thing..Can someone
clarify EXACTly how this should be typed in in the recovery part of the cd? I also
note it says copy software c:\windows\system32\config
….I have Xp on a d drive (the recovery mode notes the file as D:WinXP
So I assume I should type “d:\winxp\system32 etc….instead?
I have 2 hard drives..the first being a tiny 540k which runs Win95 in emergencies
like this but is pretty useless otherwise…Can someone sort this out for me or suggest
other fixes for this dreaded registry problem…Very depressing..
Thank you for your time.
Kevin
Configuring bridges for multiple VLANs
This section will be beefed up a bit later. I’m rushing it out due to popular demand!
Read more… »
How do I configure my Red Hat Enterprise Linux 3 system to use 802.1q Virtual Local Area Network (VLAN) tagging for all network communication?
CentOS 5 (Red Hat-based). I’m connecting to a Cisco Router via serial cable.
1) run ‘minicom -s’ first, to enter configuration mode, you’ll open a text-based menu. Note: Use “ENTER” to exit any menus except the main menu.
2) Under “Serial Port Setup” mine was set to default /dev/modem and 38400. I had to manually change it to 9600 and set the device to /dev/ttyS0. Remember to hit ENTER to exit, do NOT try to use “Q” to “Quit”, if you’re under the speed/parity selection window that’ll change your parity to 2 (this is where I learned that, heh).
3) Go under “Modem and Dialing” and remove the “Init String”. Anything in this field will be sent to the device when you connect. The default AT string won’t bother a Cisco device as far as I know, especially if it’s not in enabled or in config mode when you connect, but it’s kinda annoying to have it pop up on connect.
4) From the main menu use “Save setup to DFL” to create a new config file for minicom.
Damos permisos de ejecución
Buscamos donde esta minicom con:
# which minicom
/usr/bin/minicom
Miramos sus permisos de minicom con:
# ls -la /usr/bin/minicom
Salen q permiten al grupo uucp
Editamos /etc/group y ponemos al usuario juanito en el grupo uucp
Miramos sus permisos de /dev/ttyS0:
# ls -la /dev/ttyS0
Salen q permiten al grupo tty
Editamos /etc/group y ponemos al usuario juanito en el grupo tty
Damos permisos de lectura y escritura a /dev/ttys0 con:
# chmod 666 /dev/ttys0
Screen
Para 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 pc se cerraría el lftp del servidor (jodiendome vivo ¬ ¬)
Por supuesto no me voy a andar con zarandajas (¿para que?) y voy a usar el screen a lo natural.
Simplemente meto screen -U, y punto.
¿Que me quiero salir?: ctrl+a, d
¿Que quiero volver?: Como solo tengo un screen me basta con screen -R
Luego ya toca abrir, manejar, y encolar, el lftp ^ ^
lftp
(Todo esto lo hago en la screen, claro ^ ^)
Antes de nada me voy a meter ya en la carpeta donde quiero que guarde. Así me quito lios.
En mi caso guardo en ~/shared, así que cd ~/shared
Y cargo el lftp: lftp -du usuario,contraseña -e open ftp://dirección.del.servidor:puerto
Ahí ya estamos dentro del servidor…todo bonito ^ ^
ls nos mostrará las carpetas, y cd nos meterá en ellas. Igual que en la navegación por consola, así que no le doy mas vueltas.
Cuando quiero bajar algo pongo mget loquesea
Cuando quiero bajar una carpeta completa pongo mirror -v loquesea
¿Y las colas?….¡Amigo, esa es la gracia de todo este lío! ^ ^
Hay que cargar a este cabroncete de cosas para bajar, y que se tire toda la noche/día/semana dándole ^ ^
Pues para eso se usa el comando queue, cola, delante de los comandos generales.
por ejemplo queue mirror -v loquesea me encolará ese archivo.
Se repite la operación como y cuanto necesites.
Para iniciar la cola es tan fácil como queue start….y para ver que tal va el tema vale con poner tan solo queue
Ahora imaginemos que nos hemos puesto a bajar cosas sin ton ni son, y queremos cambiar el orden en la cola…pues fácil: queue -m X Y, donde X es el numero de orden que tiene la bajada que queremos mover, e Y es a donde queremos mandarlo.
(Esto se mira en el status, queue vaya ^ ^)
Y ya está.
Le dejamos funcionar solito, sin mas.
Sin preocupaciones.
Echadle un ojo de vez en cuando al screen a ver que tal, pero es difícil que falle ^ ^
6 Apr
Xen Keeping the Windows CD(s) mounted after reboot:
Posted in CentOS by carlosap | No CommentsFirst 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 = 1
apic = 1
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib64/xen/bin/qemu-dm"
sdl = 0
vnc = 1
vncunused = 1
disk = [ "file:/vmhd/vm_windows2003/vm_windows2003.img,hda,w","file:/vmhd/cd1.iso,ioemu:hdc:cdrom,r" ]
vif = [ "mac=00:16:3e:06:e5:6a,bridge=virbr0,type=ioemu" ]
serial = “pty”
Recent Posts
Meta
About Me
ZiVo Nix Blog


