AstLinux "fat thin-client" hard drive install
This document is not a tutorial, just a step by step procedure to acheive a specific outcome, namely to build an AstLinux
0.4.8 machine with everything on the hard drive (no compact flash, no USB, no other parts or pieces other than an optional
Zaptel board). This procedure assumes that :
- you have a IDE based PC with a CD-ROM that you will be dedicating solely to this function (AstLinux does not appear to support SCSI),
- you have a AstLinux 0.4.8 ISO CD,
- you have downloaded the php patches from http://stromberg-carlson.net/astlinux/
to another computer,
- you know enough vi to make simple changes to text files,
- you won't be using the AstLinux machine as your Internet firewall/router,
(although it is capable of being your firewall, router, DNS proxy, DHCP server, etc. for your LAN if you wish),
- you will be configuring a static IP address and not using DHCP on the AstLinux machine (if you want to use DHCP you will
need to make the appropriate entries on the DHCP server so that the AstLinux machines gets the same address all the time),
- you have a 192.168.xxx.xxx addressed network (if not, there are a couple places where you will need to "translate"),
- you have identified the IP address you are going to use for the AstLinux machine (if not, do it now),
- you will be configuring Asterisk as a C*NET "tandem" (If not you may be able to skip most of the (D)DNS and C*NET items
that follow),
Many of these assumptions can be tweeked when you edit rc.conf, i.e.
AstLinux can be configured so that will function as your firewall, router, DHCP server, etc. I encourage you
to print out rc.conf and become familar with it.
There are also some C*NET specific requirements. You will need to have :
- a (D)DNS solution and/or a fixed IP address from your ISP
(C*NET tandems need a fixed IP and/or a (D)DNS address assigned to them.
I recommend going to www.dyndns.com now and signing up for a free
account and their Dynamic DNS Service. In this install we are going to use Hostname: [prcrmagl016].[homeip.net] ),
- signed up for a C*NET account at http://www.ckts.info/register-as-member.php
(and hopefully joined the mailing list),
- selected an office and available thousand block(s) from the wiki,
- requested activation of your office code using your (D)DNS
address above or fixed ISP address.
- you have established port forwarding on your firewall router for UDP port 4569 to the "fixed" IP address identified above
(required for C*NET tandems as you will be receiving unsolicited connections (calls); if not, do it now),
- you have run the Configuration File Generator.
At this point you'll need to make sure the machine that you intend to use has nothing on it you care about on it,
as everything will be destroyed once you start the install.
These directions only give you the answers to the prompts in the order you get them and assume you follow the on screen
instructions unless noted otherwise. Everything after step 4.5 can be done via the browser if you prefer that interface
over using vi and the CLI.
- Install AstLinux on your hard drive
- boot from the ISO CD.
- type 'install' at boot: prompt (must be real quick or you'll miss it and have to do it over).
- 'hda'
- reset when prompted to restart (machine hangs and you can't eject the CD until the machine is on it's way back up).
- Create partition for the AstLinux "Keydisk" on your hard drive
- from the boot manager, select the last one,
AstLinux (Boot from IDE CF, Use third partition for KeyDisk)
.
- login as 'root'.
- 'astlinux' is the password.
- 'asterisk -r'
- 'stop gracefully'
- 'fdisk /dev/hda'.
- 'n' for new.
- 'p' for primary.
- '3' (this will match the AstLinux boot option you just booted up with).
- press enter to take the default.
- press enter to take the default.
- 'w' to write it out. There will be errors, keep going.
- 'reboot'.
- Relax, hda3 takes a while to be checked on reboot.
- Generate the "Keydisk"
- login as 'root'.
- 'astlinux' is the password.
- 'asterisk -r'
- 'stop gracefully'
- 'genkd /dev/hda3'.
- 'yes'.
- be patient, 'reboot' when prompted.
- Configure system parameters
- login as 'root'.
- 'astlinux' is the password.
- 'asterisk -r' (If -r fails to connect to application something is wrong; stop and figure it out).
- 'stop gracefully'.
- 'cp /stat/etc/zaptel.conf.sample /mnt/kd/zaptel.conf' (If you plan on using Zap boards).
Everything after this point can be done from the browser interface.
- 'vi /mnt/kd/rc.conf' Find and change the following as appropriate (Note use the x key not the 'Delete' key when using vi):
- /HOSTNAME (Recommend using a "real" CLLI, i.e. PRCRMAGLPS0).
- /#TZ_TIMEZONE (uncomment and change CST+6CDT to EST+5EDT).
- /#EXTIP (uncomment and set to a fixed address outside your router's DHCP range).
- /#EXTNM (uncomment).
- /#EXTGW (uncomment and set to your routers internal LAN/IP address).
- /#DNS (uncomment and set to addresses provided by your ISP).
- /#STATHOSTS (uncomment and change to "prcrmagl016.homeip.net:192.168.xxx.xxx").
This is so that C*NET calls to your own system don't get routed to your firewalls external address without special programming.
- If you have some other (D)DNS solution already in place you will want to skip the next four items.
If have you have a fixed IP address from your ISP may skip the next four items.
- /#DDSERVICE (uncomment and set to sevice, i.e. dyndns@dyndns.org).
- /#DDUSER (uncomment and set to your dyndns user id).
- /#DDPASS (uncomment and set to your dyndns password).
- /#DDHOST (uncomment and set to your domain, i.e. prcrmagl016.homeip.net).
- /#SMTP_SERVER (uncomment and set to your ISPs SMTP server, i.e. "outgoing.isp.net").
- 'wq' (write and quit when done).
- Configure basic Asterisk files
- If you have Digium or compatible Zaptel board(s) installed:
- 'vi /mnt/kd/rc.conf' Find and change the following as appropriate:
- /#ZAPMODS (uncomment if using TDM400P and change if using other Zap hardware).
- 'wq'.
- 'vi /mnt/kd/zaptel.conf' Add channels as appropriate:
- 'wq'.
- 'vi /mnt/kd/asterisk/zapata.conf'. Add devices as appropriate:
- 'wq'.
- 'vi /mnt/kd/asterisk/extensions.conf' Add extensions as appropriate:
- 'wq'.
- Apply PHP fixes and Place into service
- 'ftp 192.168.xxx.xxx'
- 'mount -o rw,remount /'
- 'cp ??? /var/www/admin directory, overwriting the files of the same name
- 'reboot'
Handy commands:
- 'cat /proc/interrupts'
- 'lspci -v | more' or 'lspci -v | grep IRQ'
Questions? Call the C*NET operator at +1 955-0000 and ask for the switchman on duty.
astlinux.html v1.11 12/1/2008



This page created and maintained by
Chad Perkins.