Using builder to create a node

builder is used to create Personal Telco-branded routers with a captive portal and various other core services on computers with two (or more) Ethernet interfaces. It is intended primarily for use by the NetworkOperationsTeam in constructing new nodes, but may occasionally be useful to others.

This page is intended to document the usage of the current 'builder' scripts in the PTP Subversion repository, located at http://svn.personaltelco.net/svn/ptp/code/trunk/builder

builder is a working proof of concept. In the future, the fuctionality of these scripts will be part of ["Adhocracy"].

builder is not intended for use on privately-managed systems, embedded hardware or systems with wireless interfaces. If you have any doubt as to whether or not builder is suitable for your installation, chances are high that it is not. Check out NewCloneArmyInstallMethodology for a more complicated installation which is much easier to customize, or get in touch with us (the NetworkOperationsTeam) to work something out.

Before You Begin

Please read this entire document before starting your work on a system. This description is not entirely complete, and any comments or suggestions are greatly appreciated.

You'll need the following components:

Also, you'll need to prepare the following information:

Finally, you'll need the specifics of the target connection:

If you don't already have all of these things, don't begin this process! You won't be able to finish, and it's usually easiest, best and cleanest to go through the entire process at once.

If you're having trouble with the specifics of the target connection, please contact the provider of the connection for more information. They should be able to provide exact values for these fields.

If you're still reading at this point and are not a member of the NetworkOperationsTeam, please consider getting in touch with someone who is and providing to them the information listed above. They will be able to provide you with a working system in a reasonable period of time.

Step One (Base Software)

To begin, you'll need to install the DebianLinux base system on your target box. See DebianLinuxInstallation for detailed information.

Step Two (Registration)

See NodeDb for information on registering with the node database.

See NetworkAddressAllocations to register your network and receive network numbers.

Step Three (Create Configuration Files)

Create files with node-preconfig.sh

1. Create a working directory to run the builder script node-preconfig.sh

2. Get the script from subversion that will do the configuration

3. Prepare the script for execution

4. Run node-preconfig.sh with the -s option

5. Complete the following questions in a way that is applicable to your node location

6. Install Subversion, if you don't have it. (If "which svn" returns nothing, you don't have it...)

NOTE: svn is required for this step.

Step Four (Make it all come together)

Obtain and run node.sh builder script

These scripts expect to find a computer that has a minimal debian install, two ethernet cards, and a connection to the Internet.

From the command line on the machine that is going to be the captive portal router

1. Install wget

2. Use wget to retreive node.sh

3. Make the script executabe

4. Run the script

And now watch it go. When this finishes, reboot the machine. Now you should have a working Personal Telco Captive Portal Machine. This includes all services to provide the network infrastructure at the location. All configuration files are stored and managed in subversion.

Q&A / Commentary

/etc/modules Does not contain the identification of the network drivers which were installed during bf24 installation. You must edit this file to include the driver identification. NOTE It appears that one might look at "svn.personaltelco.net/svn/ptp/system/trunk/node/net/modules-595" as a source of this opportunity as the modules here match what is loaded.

/etc/resolv.conf The nameserver listed/identified does not work and the file must be edited to a working nameserver; HOWEVER even after editing resolv.conf when the system is rebooted, the file reverts to the inoperative nameserver. NOTE It appears that one might look at "svn.personaltelco.net/svn/ptp/system/trunk/node/net/resolv.conf" as the source of the inoperable nameserver. BR NOTE This is infact supposed to be using 127.0.0.1 as the nameserver. As bind9 is running locally. If on reboot dns is not working we need to discover why bind isn't producing correct lookups locally. We should not be using external dns nameservers in resolv.conf. AaronBaer BR NOTE Check to make sure that the date of the machine in question is synced to an ntp server. I have had sitations where bind9 has stopped working because the host in question has become so far out of sync with the time that bone.personaltelco.net has that it will not resolve hosts. Making sure that ntp is running correctly or using ntpdate to sync time to cornerstone.personaltelco.net and restarting bind has worked on many hosts.

A file download/installation is missing. svn co http://svn.personaltelco.net/svn/ptp/web/trunk home/web CAUTION: Watch when you try this download--as I had to repartition the disk to get the complete file.

EVEN AT THIS POINT Apache fails to start.

- Did your apache failure come from a host name resolution failure? This happened to me. Check out /etc/hosts and make sure it has a correct entry for 127.0.0.1.

More problems from a PTP-supplied Dell Optiplex w/2x NICs: The modules "3c59x" and "eepro100" for the two NICs aren't loaded -- I added

to /etc/init.d/networking. If you are getting "ERROR while getting interface flags: no such device," this may be what you need. Highly recommend that the building scripts go ahead and try to load all reasonably relevant NIC modules, since this is the kind of thing that drives newbies screaming from Debian.

to setup new accounts from SETUP.sh BR # cd /tmp BR # wget http://svn.personaltelco.net/svn/ptp/system/trunk/node/auth/SETUP.sh BR # VERBOSE=1 sh ./SETUP.sh BR

Authors

AaronBaer, KeeganQuinn


[CategorySoftware] [CategoryPersonalTelco] [CategoryNuCab] [CategoryDocumentation] [CategoryNetwork]