Archive for 'Administration' Category

Easy Automated Snapshot-Style Backups with Linux and Rsync

By jbayer - Last updated: Saturday, October 22, 2011

The inspiration for this is the original post at:  mikerubel.org The basic idea is to create a snapshot of a directory structure using rsync.  Multiple snapshots can be created without taking up extra space by using file links for files which haven’t changed. I was dissatisfied with the scripts there.  The ideas were good, but […]

782 views

How to recreate a directory structure

By jbayer - Last updated: Tuesday, September 6, 2011

While cloning a system into a virtual machine, I needed to recreate a fairly large directory structure with identical attributes.  Since there aren’t any specific commands I wrote the following script. What it does is to use find to find all directories and print out a series of commands which are needed to recreate each […]

1,584 views

Setting up a private RPM repo

By jbayer - Last updated: Tuesday, August 9, 2011

I had a local need for a private repo, for some of our locally-built RPMS. Since I’ve previously set up a private mirror, I decided to write a script which would both setup the directory structure I needed, and to do whatever rsyncing would be needed for a mirror. To install, just copy it into […]

1,000 views

Installing Zabbix on a CentOS/Scientific Linux/RedHat 6 system

By jbayer - Last updated: Monday, August 8, 2011

This is a followup to my previous post about installing Zabbix.  The previous script was configured to install Zabbix to a 5.5 or 5.6 system.  Now that 6 has been out for a while, I’ve updated the script to install Zabbix on a 6.0 or 6.1 system. The previous instructions are still valid.  Just download […]

2,468 views

Simple port redirection

By jbayer - Last updated: Wednesday, August 3, 2011

The mail provider where I work is an Exchange-only provider, and refuses to have anything to do with anything else.  What this means from a security perspective is that they have none, at least in regards to IMAP or SMTP.  From a practical point, in addition to the Exchange ports, they only have the standard […]

972 views

How to setup a bridge on Redhat, CentOS, or Scientific Linux

By jbayer - Last updated: Thursday, July 14, 2011

This has been tested on a RHEL 5.6 system.  These instructions should work on any clone.  While not tested, they should work on any 6.0 system as well.   These instructions are taken from the following page, with some additions: http://www.linux-kvm.org/page/Networking     Assuming that the NIC the bridge is to connect to is eth0: […]

5,648 views

Speeding up a Zabbix installation

By jbayer - Last updated: Thursday, July 7, 2011

The Zabbix dashboard uses a lot of javascript.  Javascript isn’t cached, so this is a way to force it to be cached. This script assumes that Zabbix is installed in /usr/local/share/zabbix, if it is elsewhere you will have to modify the first few lines. This script will rename the javascript files to PHP files, and […]

1,027 views

Run virt-manager remotely without logging in as root

By jbayer - Last updated: Thursday, July 7, 2011

The following little script will allow a normal user to run virt-manager (used for KVM, Xen and Qemu) without having to log in as root. This assumes that the user is allowed to sudo;  while the topic of the sudoers file is a whole article by itself, the following is an example which should allow […]

2,579 views

Proxmox VE

By jbayer - Last updated: Tuesday, June 7, 2011

This article will cover the Proxmox VE product in some depth. 1.  Intro 2.  Initial install 3.  Setting up a cluster 4.  Convert server to RAID-1 5. Template Naming Conventions 6. Installing a Lucid container 7. Installing a RedHat, Centos or Scientific Linux container 8. Add additional storage to Proxmox VE 9. Available templates 10. […]

5,292 views

Virtualization

By jbayer - Last updated: Monday, June 6, 2011

Virtulization is all the rage these days.  It makes a lot of sense for many reasons.  Allocation of resources, compartmentalisation of services, security, etc. One of the things that have enabled the explosion in virtualization is the inclusion of hardware virtulization on the modern CPUs.  These days, most (not all) CPUs have either Intel-VT or […]

1,135 views
asd