In a recent post some advantages were discussed in using Partimage over g4u and Symantec Ghost. Following on from that, example scripts and a simple methodology are provided below to backup and restore Linux partitions using partimage run from a client system, to a remote server running partimaged.
(more…)
This post details a way to script partition creation under Linux using fdisk. I was originally trying to use sfdisk to perform this task as it is designed to be scriptable, reading lines of the form
where each line fills one partition descripton. The problem for me was that sfdisk only appears to accept partition sizes defined in cylinders; for partitioning similar sized disks with different geometries this is inconvenient.
(more…)
This post describes how to perform in-place editing of a file using Perl.
(more…)
If you use procmail to filter messages, setup vacation email response via your /home/USER/.procmailrc rather than the vacation program.
(more…)
An interactive script is provided to generate a vacation message under Unix.
(more…)
A script is provided to fix lines not wrapping properly when printing text files from the Common Unix Print System (CUPS).
(more…)
A bash script is provided to verify all the RPM packages installed on a system.
(more…)
Here is a simple bash script for opening a shell session in an xterm window on a remote host.
(more…)
A bash script is provided for copying a file to multiple machines via Secure Copy (SCP).
(more…)
A bash script is provided for executing a shell command on multiple hosts via Secure Shell (SSH):
(more…)
Two example iptables firewall rulesets are provided. Both are designed for a single-homed host and utilize the stateful inspection feature of iptables for all connections.
(more…)