Presentación de SysRescCD
Feb 04, 08 by Juan Lebrijo about backup, LAN, blog
Como alternativa en software libre al Ghost de Norton, ó al DriveImage/PartitionMagic (también de Norton, antes PowerQuest), tenemos SysRescCD. Un CD con diversas herramientas para rescatar sistemas de algún contratiempo gordo. Lo que a nosotros nos interesa son las siguientes características:
  • Sistema de salvaguarda en red (LAN) para crear imágenes de todo el sistema periodicamente. Partimaged.
  • Posibilidad de manipular particiones: crear, borrar, redimensionar,... Gparted
Vamos a ir desarrollando en varios artículos como implementar un sistema de salvaguarda LAN sencillito, para un pequeño servidor ó PC casero. No solo vale para particiones linux (ext3), también para otros sistemas como NTFS ó FAT de windows. Tenemos que descargar una imagen ISO que grabaremos en un CD. Para que consulteis mis fuentes os dejo mi habitual tabla de referencia: Origen http://www.sysresccd.org/Main_Page Repositorio http://www.sysresccd.org/Download Paquete 0.3.2 Documentación (castellano) http://www.sysresccd.org/Online-Manual-ESGENTOO:http://www.gentoo.org/doc/es/handbook/handbook-x86.xml Documentación (inglés) http://www.sysresccd.org/Online-Manual-EN
SysRescCD presentation
Feb 04, 08 by Juan Lebrijo about backup, LAN, blog
As an alternative in free software for Norton Ghost, or DriveImage/PartitionMagic (PowerQuest before, Norton nowadays), we have SysRescCD. It is a CD to rescue the systemsfrom a big disease. We are interested in the following features:
  • Backup network system (LAN) to create images from all the system periodically. Partimaged.
  • Partition managed partitions: create, delete, resize,... Gparted
We are going to develop the use of this tool in various articles. How to create a simple LAN backup for a little server or home PC. Not only used for linux partitions (ext3), for other systems as NTFS or FAT too. We download an ISO image which will be burn in a CD. To read my sources, here I keep my usual reference table: Origin http://www.sysresccd.org/Main_Page Repository http://www.sysresccd.org/Download Package 0.3.2 Documentation (spanish) http://www.sysresccd.org/Online-Manual-ESGENTOO:http://www.gentoo.org/doc/es/handbook/handbook-x86.xml Documentation (english) http://www.sysresccd.org/Online-Manual-EN
Shuting down a Windows system from a Linux one
Jan 28, 08 by Juan Lebrijo about SAI, LAN, blog
We want that our NUT sends a shutdown order when there is not suply and the battery goes down. But it could be useful too to shut down a Cybertheque computers, computer classroom, …. For this we must install a SSH server in Negro (WinXP). And generate a simetric RSA key for connecting automatically and secure. We will install freeSSHd (http://freesshd.com), it is a free ssh server for windows, based on OpenSSH.
  • We will install as a service in order to start when the system boots.
  • Create an ups user who login with Public Key:
In the server upsd machine create the keys and their permissions (read and write only the root) for better security:
elite:~# ssh-keygen -t rsa -q -f /etc/nut/rsa_ups
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
elite:~# chmod 600 /etc/nut/rsa_up*
Copy the public file (rsa_ups.pub) to C:\Archivos de programa\freeSSHd\: Renaming rsa_ups.pub with the user name: C:\Archivos de programa\freeSSHd\ups Now Windows PC must accept tothe command (using the private key):
ssh -i /etc/nut/rsa_ups ups@negro.lebrijo.com “shutdown -s -f -t 60″
In our NUT we will do:
  • Create the script with shutdown orders apagado_sistema.sh:
#!/bin/sh
# Shutting down the desctop computer (if it will be up)

ssh -i /etc/nut/rsa_ups ups@negro.lebrijo.com “shutdown -s –f”

# Shutting down the server

/sbin/shutdown -h +0
  • Change the permissions, to execute the script:
chmod 744 /etc/nut/*.sh