Prairienet Banner

Technical Documentation

CTC home directory cleanup script

Script developed by Dale Josephs for the CTC group’s use:

#! /bin/bash

  1. cleanup routine for CTC machines

$User = <genuser>

  1. I left this variable in generic form, allowing Adam to help fine-tune the
  2. settings when the CTC group set up the lab.

rm -rf /home/$user
cp /etc/skel/* /home/$user

exit 0


This script would likely need be created as root (or via sudo), and then use chmod to allow all users and groups executable access to the file.

eGranary Installation Guide

eGranary is a 750 GB Seagate hard drive preloaded (by Widernet and the University of Iowa School of Library and Information Science) with webpages and multimedia content specifically selected for usefulness in African contexts. With minimal installation, eGranary can serve any computer with a web browser connected to the local area network.

Installing on a Linux machine (Ubuntu 8.04):

The instructions in the ubuntu_install.pdf file are good*, and will work with a couple caveats:

  • First, to read the eGranary drive, make sure the computer has ntfs-3g and ntfs-config downloaded.
  • As per the instructions (under the section “Configure Software”), the IP address of your server needs to be manually entered into several files; thus the IP address of the server needs to be static.
  • For one of the files that needs to be rewritten (redirect.js), I had to move the file to the desktop before I could alter it (something about not being able to alter compressed files on an ntfs drive); I then was able to copy the file back to its original place without any problem.

Other than these extra steps, the install process should be pretty smooth according to the guidelines of the manual.

When rebooting/restarting after the initial installation:

On the Morningstar Baptist/Ubuntu computer, eGranary took a while to be recognized upon reboot, but it eventually did show up about a minute or two after turning on the eGranary drive. To get eGranary to work after a reboot, run the three commands for starting the scripts (under the “Starting Services” section of the install file).

Using eGranary:

The install file gives instructions on how to set up a browser on another node on the LAN to read eGranary. Thus far, eGranary is not a proxy server that transparently connects the client to the internet. In order to use both eGranary and the internet, you either have to change the browser’s proxy configurations whenever you switch between them, or do what Brent at Widernet recommends: set up Internet Explorer to use eGranary and Firefox to connect to the internet.

eGranary is browsable, but the search function is not operable (attempting to search will reveal an Apache Tomcat error). Thankfully, it is well-indexed, so most information on it should be easy to find. Some of the multimedia elements on eGranary will not be usable on many standard Linux distributions because they rely on codecs for playing mp3 and other files that aren’t included on most distros. The working assumption was that the clients will likely be Windows machines, on which these types of files should work.

*to the best of my knowledge, the ubuntu_install.pdf file is located on the drive at /egranary/software/linux/ , or somewhere around there. It is also available at (no longer active)


Other Information