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 : 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 :

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.

  1. Install AstLinux on your hard drive
    1. boot from the ISO CD.

    2. type 'install' at boot: prompt (must be real quick or you'll miss it and have to do it over).

    3. 'hda'

    4. reset when prompted to restart (machine hangs and you can't eject the CD until the machine is on it's way back up).

  2. Create partition for the AstLinux "Keydisk" on your hard drive
    1. from the boot manager, select the last one,
      AstLinux (Boot from IDE CF, Use third partition for KeyDisk)
      .
    2. login as 'root'.

    3. 'astlinux' is the password.

    4. 'asterisk -r'

    5. 'stop gracefully'

    6. 'fdisk /dev/hda'.

    7. 'n' for new.

    8. 'p' for primary.

    9. '3' (this will match the AstLinux boot option you just booted up with).

    10. press enter to take the default.

    11. press enter to take the default.

    12. 'w' to write it out. There will be errors, keep going.

    13. 'reboot'.

    14. Relax, hda3 takes a while to be checked on reboot.

  3. Generate the "Keydisk"
    1. login as 'root'.

    2. 'astlinux' is the password.

    3. 'asterisk -r'

    4. 'stop gracefully'

    5. 'genkd /dev/hda3'.

    6. 'yes'.

    7. be patient, 'reboot' when prompted.

  4. Configure system parameters
    1. login as 'root'.

    2. 'astlinux' is the password.

    3. 'asterisk -r' (If -r fails to connect to application something is wrong; stop and figure it out).

    4. 'stop gracefully'.

    5. '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.

    6. '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).

  5. Configure basic Asterisk files

    1. 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'.

    2. 'vi /mnt/kd/asterisk/extensions.conf' Add extensions as appropriate:

    3. 'wq'.

  6. Apply PHP fixes and Place into service

    1. 'ftp 192.168.xxx.xxx'
      • 'put general.php'
      • 'quit'

    2. 'mount -o rw,remount /'
    3. 'cp ??? /var/www/admin directory, overwriting the files of the same name
    4. 'reboot'

Handy commands:

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.