guy labs guy labs

Create and restore drive image with Clonezilla

Infrastructure
/by
    Today we want to create a drive image with the help of Clonezilla, an open source clone and restore tool. To clone a hard drive is useful if you want to create a backup or some kind of snapshot of the current state of a hard drive. To start we download the live CD from the Clonezilla website at http://clonezilla.org/downloads.php. Next we have several options to create a start up disk or flash drive. These options are described here (in Section 2): http://clonezilla.org/clonezilla-live.php I went with the Tuxboot option and a USB drive. Next I followed the very detailed howto on the Clonezilla website to save a hard drive as an image. I didn't want to copy all the steps in this howto, because there aren't any points which I would change. Here is the link: http://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/01_Save_disk_image If you want to restore a hard drive image you can follow this guide here: http://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/02_Restore_disk_image With this post I just wanted to share a good disk drive cloning tool, which served my needs perfectly. Thanks for...

Install SSH in Ubuntu 13.04

Infrastructure
/by
  This is the first post in the infrastructure category. I have a Ubuntu 13.04 server at home on which several applications, for development etc., are installed. I want to share my learned experience and write blog posts about the main things I've installed and configured on my server. Today I want to show you how to install and configure the SSH daemon in Ubuntu.   Install and configure the basic SSH daemon 1. First install the SSH daemon and edit the sshd_config file on the server with the following commands: And change the following properties: The properties which you need to change are the following: Port: The port where the SSH daemon is listening. For security reasons it's always good to change the default port to something else than 22. Protocol: Always check if you are running the daemon on the newer SSH protocol. PermitRootLogin: It's safe to disable the login as root user. AllowUsers: This property sets the usernames which are able to connect to to SSH daemon. You don't need to set this property but it's once again a measure to increase security. 2. Restart the SSH daemon on the server with the following commands: 3. Check if you are able to login to your server over SSH on your client machine: (you need to install the openssh-clients package on your machine) You need to replace the {IP-OF-SERVER} with the server's IP, the {USERNAME} with the username you want to connect with, and the {PORT} with the above defined port. If everything works you should be able to connect to your server over SSH. The...