Project:HUGnet Software Installation

From HUG Wiki

Jump to: navigation, search

Contents

General Notes

Database

We need a good way to make the database portable so that we can install it other places. Right now it is a manual operation that requires access to the HUG internal network.

Firmware

The firmware database should be updated with all of the latest firmware if a new database is created. This can be done by dumping all of the data from the firmware table in the HUG database and putting it into the new database. This should be done when the database is created.

Note: I am not sure how to push out all the latest firmware to a non HUG database. This will have to be considered if we ever do this again.


Starting the Polling Scripts

The polling and updatedb scripts need to be started in a manner that will restart them if they should die. For posix operating systems (Linux, FreeBSD) this can be accomplished by putting things into the /etc/initteab file.

I am not sure how to do this best in Windows or MacOS. MacOS might be like Linux and FreeBSD.

Starting the Analysis Script

The analysis script should be run periodically. It needs to be run daily at least.

MacOS X

Installing Software Requirements

To install the required software the easiest way is to use Fink, Open Darwin or some other collection like that. It should allow for all the software to be installed easily.

This requires Xcode to be install. It is a about a 1G download. It can be downloaded from http://www.apple.com/ .

Fink

Fink
Go to http://fink.sourceforge.net and download the binary release of Fink.
FinkCommander
Go to http://finkcommander.sourceforge.net and download the binary release of FinkCommander. This is a Graphical user interface for Fink.
Install Fink
Install FinkCommander

FinkCommander can be used to install all software listed here.

Open Darwin

This article or section is just a stub. If you want to help with this documentation please complete this article or section.



Gentoo on MacOS

This is not mature enough yet to install all of the required programs. It is getting there.

This article or section is just a stub. If you want to help with this documentation please complete this article or section.


Installing the HUGnet Software

See the generic install section

Windows

Linux

Using /etc/inittab

Use 'openvt -e -c <tty #> -- <command>' to open a command in a virtual terminal. This doesn't seem to be necessary when busybox is doing the init stuff. It seems to automatically open things in a virtual terminal if they are in init.

Gentoo

The following will duplicate a world (/var/lib/portage/world) file:

# emerge -va --noreplace $(cat old_world_file)

FreeBSD

Common Stuff

The User Interface

The user interface gets installed through the Joomla component. Please see the Joomla help for more information on the installer.

The Scripts

The scripts should be installed in /home/hugnet on FreeBSD or Linux. It should be installed in /Users/hugnet on MacOS X.

Where in Windows?

The whole script tarball should be extracted into this directory. The scripts should be run from their respective directory.

See Also