My Free Script Collection

/ Saturday, September 17, 2011 /

Services:

Dustin Minnich, Minnich Dustin, North Carolina, NC, Sysadmin, Network Admin, Computer Technician, Geek, Linux, Apache, vsftpd, postfix, PHP, NFS, LDAP, Samba, Squid, Bind, HTML, Bash, Nagios, Varnish, Haproxy, SSH, Vmware, OpenVZ, nginx, NTPD, DHCPD, kickstarts, GlusterFS, iSCSI multipathing, RHEL, CentOS, rdiff-backup, Tivoli, dovecot

A simple personal site. Feel free to learn more about me and download samples of my work.



No Frills Host - Free old school ISP like ~username static web hosting for the masses.

Tor Relay @184.154.13.11 - Tor is a project devoted to giving users a secure and untraceable way to use the internet. This is useful for people who live in countries that censor the internet (ie: China). It is also useful for whistle-blowers that want to report news to various sites.

OpenNIC T2 Server @184.154.13.11 - OpenNIC is a project that aims to create a decentralized and free DNS system using non-regulated TLDs. This means you can have a yourname.free address for free instead of paying around $10 a year for the yourname.com equivalent. More important than that, it is also a form of protection from the US governments Internet Kill Switch.

Free Support - When I have free time at work I'm usually helping people in ##linux, #rhel, and #centos on the IRC network Freenode. Just look for the username dminnich.

Write Ups:

Cloning Complex Linux Disk Setups - Want to "ghost" one server to another? DD isn't all that useful when the server has 8 drives in a mdadm software raid array with LVM volumes on top. This guide covers how to backup and restore partition images in complex linux environments like the one just described.

Using Linux to Clone Windows Machines - If you manage lots of Windows machines or if you own a shop that builds white box Windows machines this guide and its related scripts are for you! It will create a recovery partition on your machines (similar to what HP and other vendors do) and will allow you and your users to backup and restore completely in tact copies of their Windows partition. Images can be stored on the local machines and/or on a remote server that is accessible via samba.

Linux AD Interoperability Guide - This guide will show you how to use a Windows AD as a source for user, group and password authentication information on a Linux machine. Meaning, the Linux machine can see all the AD users and the AD users can login to the linux machine. It will also show you how to join the linux machine running samba to the domain so that it will become an official domain member file server. In my environment, this means we can have a couple AD PDC servers which our Windows team can use for GPO and other things while the Unix team still handles file services using linux and samba--it is a good mix.

Automating Debian Installs - This guide will show you how to automate debian installs using preseed files and a custom post-install setup script that installs various packages. This can be used in a modular way to deploy both servers and desktops that meet your exact requirements. Right now, I'm using it to deploy desktops that I used to put Ubuntu on, because I wanted more flexibility with what my initial out of the box experience was and I didn't want to go to the trouble of creating my own distro.

Creating Kickstart USB Flash Drives - This guide will show you how to take an already working RHEL kickstart ISO and convert it to a bootable USB stick.

Linux Home Server - Want to turn an extra machine you have laying around into something useful, while at the same time learning some stuff about linux? This guide is for you. It covers how to setup public and private NFS, Samba, FTP and Web based shares. It also covers setting up an ad blocking web caching server, a DNS caching server and how to share a printer.

Public Writable Samba Server - Got a small network of trusted users (like a family) that wants to share files? Don't feel like digging deep into samba? This guide is for you. All users will have read and write access to a share on your linux server. While this certainly isn't a good thing to do in an enterprise environment, sometimes it is exactly what a family or small organization needs.

Static ~username Webhosting - This guide explains how to setup basic static web hosting for an organizations user base. Organizations that implement this are usually interested in letting their tech savvy users express themselves in a way that still ties back to the parent organization. For instance, www.mychurch.com/~pastorBob and www.mychurch.com/~deaconTom would allow these members to share their thoughts with the world.

Linux DVD9 to DVD5 - This guide covers how to backup dual layer commercial DVDs to standard single layer 4.5GB DVDRs using nothing but Linux and various open source tools.

General Geek Notes - A collection of one-liners and small blocks of text tips that I've collected over the years.

Transfer Quotas - How to copy user quotas from one linux server to another.

Bash Scripts:

Router Script - This script will help you turn a linux machine with two network cards into a powerful home or SOHO router. It uses iptables, is well commented, features the ability to host public and private services on the router itself and the ability to do port forwarding to other boxes on your LAN.

Backup Script - This script backs up directories you choose into a tar.gz archive file. It also allows you to choose how many copies of previous backups you want to keep.

MySQL Backup Script - Does the same things as the above backup script but does it for MySQL databases. You will need to have mysqldump installed for it to work.

LDAP Backup Script - Does the same things as the above backup script but does it for LDAP directories.

Rsync Script - Two simple scripts that can be used to keep two directories in sync with one another. The first script syncs any additive changes from the source to the destination and should be ran frequently. The second script is ran less frequently and deletes any files on the destination that have been deleted on the source between the current and last run of itself.

Blacklist - A simple script that uses iptables to block a list of IP addresses in a text file from accessing anything on your machine.

Server Status Script - If you manage a handful of non-critical linux machines and don't want to be bothered with setting up something like Nagios, this script is for you. It will email you important statistics like: disk usage, uptime, free memory, load average, etc. If what you want monitored isn't already included in the script, it should be easy for you to add.

User Disk Usage - Your boss hands you a list of usernames and wants a graph of how much disk space their home directories are using. Problem is you work in a big environment where accounts are spread across several file servers and your home directory structure is staggered for performance reasons (ie: /home/a/alice /home/b/bill instead /home/ having thousands of directories underneath it). This is how I approached this exact problem.

LVM Disk Usage - Similar to the above problem, but this time the boss wants full df information for a set of LVM volumes that are named similarly and spread across several servers.

Nagios rdiff-backup Freshness Checker - At work our backup solution is rdiff-backup. We also use nagios to monitor the health of all kinds of things. This is a script that can be ran via SSH or nrpe on your rdiff-backup server to make sure that all of your other boxes have backed up to it recently.

Nagios Read Only Mount Checker - This is a script that nagios runs on linux workstations or servers via nrpe or SSH to check for read-only mounts. This helps catch filesystem corruption.

Inactive User Checker - This script makes a list of users who haven't updated any files in their home directories in the last two years. I use this, some other checks and some personnel record digging at work to archive old inactive accounts off of our servers.

Log Parsing Script - This script looks in several log files for messages that occurred in the last 3 days. Once these are found it filters out things you specify and spits out one big sanitized log file that you can look over quickly on a daily basis.

Active Directory LDAP Scripts - These are some proof of concept scripts that allow you to add, delete and find computer and user objects in a Microsoft Active Directory LDAP environment. I wrote them because I hate remoting into a windows machine to open up the Active Directory Users and Computers tool and because I needed a framework to do mass changes on this info.

Mass Emailer Script - This script allows you to do "mail-merge" type stuff from the command line. Each recipient will get an email addressed and customized just to them.

Password Generator Script - This script will help you create secure and random passwords for every website you visit. It does multiple hashes on your input and on a hash of a salt file. It then combines these hashes in an interesting way. The end result is unique passwords for each site that *should* be rainbow tables proof, but at the same time are re-creatable by you so long as you have: the salt files, the knowledge of how the script works and follow a pattern with your input.

BIND Dynamic DNS Updater Script - This script gets the public IP address of the machine it is running on and if it is different from what it already has stored, it alerts a BIND name server to update its corresponding "A" record. Basically, this is the client part of a homegrown alternative to dyndns.com or afraid.org.

Debian Setup Script - This simple script installs package groups and and a list of packages in a text file to a new debian machine. I usually extend it to do some additional configuration tasks and use it as a late command when I preseed/automate my debian installs.

Powershell Scripts:

Home Folder Creator - This script will create a set of home folders based on a text file list of usernames. It will then give that user, the local administrators of the machine the folder sits on and optionally other groups in domain full access to folder--while at the same time removing access rights from everybody else. If desired, it can also set a quota on the folders.

Remote Copy Script - This script will copy a folder of files from one machine to a list of other machines on the domain. Optionally, it can also run a command, such as a silent application install, on all the machines it copies the files to as well.

Python Scripts:

AD Migration Scripts - This script will help you take user and group information out of NIS or /etc/passwd and then insert that into a Windows based Active Directory. I used this plus the steps in my Linux AD Interoperability Guide to asseminate some linux samba servers into a windows environment.

PHP Scripts:

Simple PHP News - A very simple PHP news script that uses a text file as its back end. It uses CSS, so it is easy to customize, and can be added to your existing page with a simple include statement. SCREENSHOTS

Simple PHP Quote - This script displays a random quote out of a text file that you maintain. You can customize it with CSS, and add it to your page with a simple include statement. DEMO

Simple PHP Image - This script displays a random image from links in a text file that you maintain or a random image out of a folder of images. You can customize it with CSS, and add it to your page with a simple include statement. DEMO

Simple PHP File Editor - This script will allow you to edit text based files (html, css, js, php, etc) while they are on your webhost. You choose the file you want to edit and it is then opened into a textarea where you can make your changes. Why bother with FTP if all you want to do is make a small change? SCREENSHOTS

Simple PHP Dir Lister - This script is meant to be an alternative to Apaches directory indexing feature. Simply drop the file in the directory you want indexed. You can also choose to hide certain files and load descriptions of each file from an external text file. DEMO

Simple PHP Gallery - This script will dynamically create thumbnails from large jpegs in folders and then display them as links to the originals on a CSS customizable page. Just drop a file into a directory of images and you are done! DEMO

Sumber : http://www.dminnich.com/

If you are can not download the above files, please download at http://scriptcollection.4shared.com/

0 comments:

Post a Comment

 
Copyright © 2010-2011 Ayahama's Update on Trading Commodities Gold and Silver, All rights reserved
Design by DZignine. Powered by Blogger