«« Please click on the ad above, it helps me a bit and I do appreciate it! (then come back) »»
Bash Scripts
Link Types: 'view' displays the script in right side window box
'view info' displays an information page (multi-script sets) in right side window box
You can also browse or download (right-click and Save-Link-As) from the Code Directory.•Note: single scripts are '.txt' for online viewing (remove '.txt'' before using). •Other usage notes are at the bottom of this section
M3U Playlist Creatorview(2024)
-An interactive script to create an M3U Playlist from Music/Artists directories, using full albums (all tracks/album).
Find Prime Numbersview(2024)
-A script to find prime numbers (Base 10) within a set of [n] digits long.
-For example, using a 'digits' value of 4 will find all Prime Numbers within the range of 1000 through 9999.
View Wiki Infoview(2016)
-A script to display the initial summary from Wikipedia at the command line.
Spell Checkerview(2016)
-A script to quickly check spelling on a single word or short phrase.
-This script uses the "aspell" package, available with most distributions.
Internet Radio Scriptview(2014)
-A script to start mplayer and stream from a Internet Radio site.
-It works at the command line or via a startup script on a headless box.
-This script is used in my Headless Internet Radio project (see How To's)
GNUCash Data Encryptionview(2013)
-Wrapper script to decrypt/encrypt GnuCash data file.
-This provides a solution to GNUCash storing your data file in plain text.
-It requires Xdialog. (could easily be adapted to other apps)
SSL File Cryptview info(2013)
-File Encryption Tool with a GTK Graphical front-end.
Mail Check LEDview(2012)
-Check multiple remote email accounts via SSL/TLS.
-Turns on keyboard LED's if new messages are waiting.
-I run this as a cron on a headless Artigo (pico) box when my main box is off/asleep.
-handy if you live outside of cell coverage or don't have a smart phone)
Picture Placematv2visit site(2012)
(ppm site opens in new tab/window)
-A dynamic web based picture viewing application that is easy to install, easy to use, easy to maintain.
-It runs on Apache with a MySQL Backend, and includes an extensive adminsitrative tool set.
SiteMapperview info(2011)
-Google Sitemap Tool to create a XML-sitemap.
-This is a single file, just put it into your cgi-bin, make it executable, and hit it from your browser.
CouchManview info(2009)
-Music Management and Playback System.
-It's a handful of shell scripts interacting with MySQL to play music via a web interface.
flac2mp3view info(2007)
-A utility to create and web-publish mp3's by converting flac audio files into mp3's and generating a playlist.
-It's a quick hack using a few Shell Scripts and a bunch of code taken from Flac-Jacket.
-It could easily be adjusted to convert straight from raw to mp3.
MP3 Playerview(2006)
-Script to randomize and play all mp3's in a directory.
-Uses mplayer or realplay.
FM Radio Playerview(2006)
-A simple script to play pre-set FM stations.
-Requires fmtools and an FM tuner card.
Movie Burner view(2006)
-Automates burning movies from avi to dvd.
-See requirements at top of script.
DNS Managerview info(2006)
-An IP Management System which creates a MySQL databas based on data collected from BIND servers.
-It allows you to query and update records.
-Although not a well polished project, this is another utility with some very interesting code.
Change MAC Addressview(2005)
-Quick script to change your network MAC (Hardware) Address, then later reset to original.
Picture PlaceMatview(2005)
-Picture Album written entirely in Bash and has minimul server side requirements.
-This original version is deprecated left for code interest only.
-Please see Version 2 (ppm site opens in new tab:window).
Flac Jacketview info(2004)
-FLAC File Management Program used to create and manage FLAC audio files.
Remote Backupview(2002)
-Backs up file systems or directories to a remote host using SSH (scp).
-Key Authentication must be set up prior to using this script.
cpio Backupview(2002)
-Similar to the above script except it uses cpio.
-Note that restorations must be done directly with cpio..
df Extremeview(2002)
-Monitors disk space via crontab.
-Emails alerts if a filesytem's free space drops below a user defined theshold.
-Allows different threshold sizes, as minimum MB's free, per filesystem.
Check IP Changesview(2001)
-Run from cron to send email alerts if the system IP changes.
-This is useful for use with a DynamicDNS service.
Renew IPview(2001)
-Checks if NIC is up and has an IP address. Then resets network as needed.
-I used this to keep the network up while I tried to locate a sporatic problem.
Some Requisites for scripts, external stuff, etc:
FLAC -A program (codec) to encode music into lossless FLAC format. Required for Flac Jacket.
RawRec -A utility to capture a raw audio stream. Useful for creating source audio files for use in Flac Jacket
ls -This is the Old Style ls command that does a Unix style sort. (., 0-9, A-Z, a-z)
Single scripts have been renamed by adding '.txt' so you can view them online (remove '.txt' before using).
Sets of scripts (like Flac_Jacket) are tar/gzipped.
To extract the tar files after download, use tar xvf filename.tar or tar tf filename.tar to display the contents.
To extract the tgz files after download, use tar xzf filename.tgz or gunzip filename.tgz;tar xf filename.tar
Make sure the script is executable. You may need to chmod 755 (or whatever) so it is executable.
Check for any variables that may need changing, edit to match your needs.
How To's & Info Docs
Link Types: 'view' displays document in left side window box
'pdf' opens in a PDF viewer or new tab/window
'read on-line' uses an online'book format in a new tab/window
How To's:
Headless Internet Radioview(2014)
-Build a headless system to automatically play Internet Radio.
-At power-on it will auto login, then run the Internet Radio script (inet-radio.sh).
-Since it has no keyboard, to quit simply insert a USB thumb drive.
PulseAudio over the Local Networkview(2013)
-A step by step guide to set up PulseAudio on Fedora 19 to play music through the speakers of other computers on your network.
-All work is done at the command prompt with easy examples for each step.
Restricted Environmentview(2003)
-A guide to creating a very restrictive environment for a specific user.
-This may be coupled with the Limiting SSH Access document.
Limiting SSH Accessview(2003)
-A guide to restricting who can ssh into your system.
SSH/SCP via Key Authentication HOWTOview(2002)
-A guide to using Key Authentication, enabling secure remote system access without user intervention.
-This process can be used to allow scripts to interact seamlessly with remote systems.
Remote Backup HOWTOview(2002)
-A guide to setting up the script remote-backup.sh.
X-Terminal HOWTOview(2001)
-A guide to create a Debian thin client.
-The diskless station gets all information from files and services running on a Red Hat system.
Information Documents:
Linux OS In Depthpdf37 pages (2015)
-An in depth look at Linux including a little history, basic concepts and usage. (course handout).
Networking In Depthpdf42 pages (2015)
-An in depth look at Networking and how it all works. (course handout).
Troubleshooting Computers and Netwokspdf19 pages (2015)
-A look at troubleshooting Computers and Networks. Full of tips, tricks and examples. (course handout).
DNS and BIND Primerpdf or read on-line11 pages (13 on-line) (2012)
-An introduction to the workings of DNS and BIND servers.
Access Trap, a Security Model for Web Suitesview(2011)
-Access Trap provides a secure environment using a Referer test for Authorization between scripts and a user/password test for Authentication.
-Although Access Trap was created for Picture Placemat it could be adapted for use in any number of applications. This article discusses the role of Access Trap as it relates to Picture Placemat.
Linux BASH Scriptingpdf10 pages (2006)
-A guide to creating quality scripts using the Linux built-in BASH scripting language.
Linux Shell Scripting Commandspdf3 pages (2006)
-A few examples of Linux commands often seen in scripts.
Fundamental Network Configuration and Troubleshootingpdf11 pages (2006)
-A guide to Red Hat Linux networking.
Customise Red Hat Linux (Changing Key User Files)view(2006)
-Run commands & programs at startup & hot to create command aliases.
Mounting Filesystemsview(2001, updated 2005)
-Includes NFS, ISO images & Windows Shares.
GNU-Privacy Guardview(2001)
-Some notes and information for setting up and using GPG .
General Red Hat Linux Informationview(2000, updated 2002)
-Primarily a non-exaustive list of commands with some ither bits thrown in.
-A good reference for new users.
Network Related Commands, Tools and Filesview(2000, updated 2001)
-A collection of common items for networking Linux.
Compiling the Linux Kernelview(2000, updated 2001)
-A quick step through for re-compiling the Linux kernel.
Firewalls & Cable Modems (non technical)view(2000)
-A light overview of Cable Modems as well information about firewalls.
Dealing with Disksview(unknown date)
-Format floppy disks, creating Emergency & Rescue Disks, and how to burn a DVD data disk.