Jan 142014
 

Sometimes you need to clone partitions on your hard drive for various reasons, hd damaged, creating a RAID 1 or something similar, then it is often tedious and impractical to perform the operation using the normal tools like fdisk, in this case you can use sfdisk.

As reported in the manual:

sfdisk is a non-interactive program to edit the partition table, which is useful for creating scripts. The normal use of this service program involves the preparation of a file containing the instructions on the partitions to be created within a disk specified explicitly. Even if there is a special syntax for these instructions, it may be convenient to use since it is obtained from a query with the same sfdisk, as will be shown.

Continue reading »

flattr this!

Jan 132014
 

I use ssh everyday and it’s my main tool to connect and manage servers, so I’m always interested in articles about ssh.
Today I present an interesting article on this subject, written by Corey Quinn and posted on the sysadvent blog

Every year or two, I like to look back over my client’s SSH configuration file and assess what I’ve changed.

This year’s emphasis has been on a few options that center around session persistence. I’ve been spending a lot of time on the road this year, using SSH to log into remote servers over terrible hotel wireless networks. As a result, I’ve found myself plagued by SSH session resets. This can be somewhat distracting when I’m in the midst of a task that requires deep concentration— or in the middle of editing a configuration file without the use of screen or tmux.

ServerAliveInterval 60

This triggers a message from the client to the server every sixty seconds requesting a response, in the event that data haven’t been received from the server in that time. This message is sent via SSH’s encrypted channel.

Continue reading »

flattr this!

Jan 062014
 

An interesting and detailed howto on apt, first posted on linux mint community tutorials

Intro by Wikipedia:

The Advanced Packaging Tool, or APT, is a free user interface that works with core libraries to handle the installation and removal of software on the Debian GNU/Linux distribution and its variants. APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages.

When you launch Software Manager or Update Manager or Synaptic Package Manager, you’re using APT via different GUIs. But you can control APT even via command lines in an easy and quick way.

Continue reading »

flattr this!

Dec 312013
 

Today I present an interesting aritcle on Bad Blocks, first published on http://virtualprivateserver.castlegem.co.uk/

Hardware fails, that is a fact. Nowadays, hard drives are rather reliable, but nevertheless every now and then we will see drives failing or at least having hiccups. Using smartcl/smartd to monitor disks is a good thing, below we will discuss how some lesser issues can be handled without actually having to reboot the system – it is still up to a sys admin’s own discretion to judge circumstances correctly and evaluate whether disk errors encountered are a one time incident or indicative of an entirely failing disk.

Continue reading »

flattr this!

Dec 282013
 

Article by Alessio bash, first published on his blog

Many security policies require you to change the port number of the SSH service to ensure greater security in a Linux system. Situation now used throughout the IT world and used mostly by users who have their own private server. Today I want to show you how to add another security layer without having to change the SSH port. To do this we’ll incorporate the famous Google Authenticator to our ssh service, in this way we’ll have a safe, two steps security, by entering our password and the combination given from the GA application. Let’s see how to do this… Continue reading »

flattr this!