tips and trix for trixbox

  • Trying to install Ubuntu on the super-cheap HTPC with a bad secondary IDE port = no CDROM!
    • Trixbox has dhcpd and atftpd
      • somehow easier to get going than on FreeBSD
      • Running commands from command line and not start as a standalone server
      • 80% of the way there
  • Installed postfix
    • set up masquarading
    • set up relay host
    • Another thing I wanted to do was have any mail that is generated on the Trixbox be forwarded to an email address I read.

    make sure in /etc/postfix/ you have the following:

    alias_maps = hash:/etc/aliases

    And in /etc/aliases have something that looks like this at the end:

    [root@voip2 postfix]# tail -5 /etc/aliases
    decode: root

    # Person who should get root’s mail
    #root: marc
    [root@voip2 postfix]#

    And then run ‘newaliases’. Otherwise, you’ll have to read up on Posfix and the virtual file.

    • Receiving mail: This threw me for a loop. I was sure it was some firewall rule. But in order to open port 25 for incoming mail, you have to change the following in


      # The inet_interfaces parameter specifies the network interface
      # addresses that this mail system receives mail on. By default,
      # the software claims all active interfaces on the machine. The
      # parameter also controls delivery of mail to user@[ip.address].
      # See also the proxy_interfaces parameter, for network addresses that
      # are forwarded to us via a proxy or network address translator.
      # Note: you need to stop/start Postfix when this parameter changes.
      inet_interfaces = all
      #inet_interfaces = $myhostname
      #inet_interfaces = $myhostname, localhost
      #inet_interfaces = localhost

      By default, localhost is the selected open. By selecting “all” or the third one, you should be all set.

    • root’s crontab:
      • 0 1 * * * /usr/bin/updatedb
    • /var/log/asterisk/full not rotating.
      1. vi /etc/logrotate.d/asterisk
        1. Put the following at the end of the file:
          /var/log/asterisk/full {
               create 0640 asterisk asterisk
               mail root@localhost
               rotate 12
                     /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true
    • Installed Bind
      • named not starting at boot. Will need to investigate further.
    • Installed samba
      • would like to see/hear VM left over/via the Tivo
      • To do!
    • DST 2007 check
      • zdump -v /etc/localtime | grep 2007
      • If you get the Mar 11 date, you’re OK.

    None of this is guaranteed to work for you.