Additional software and system configuration



SET UP ACCOUNTS

passwd root

adduser


### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### 

Set up networking

/etc/resolv.conf
 search ADD_YOUR_DOMAIN
 nameserver ADD_YOUR_NAMESERVERS_IP_ADDRESS
 nameserver ADD_YOUR_NAMESERVERS_IP_ADDRESS

/etc/hostname
 ADD_YOUR_FULLY_QUALIFIED_HOSTNAME

/etc/network/interfaces
 iface eth0 inet dhcp
 #iface eth0 inet static
 #       address 192.168.1.138
 #       network 192.168.1.0
 #       netmask 255.255.255.0
 #       broadcast 192.168.1.255


/etc/hosts
 127.0.0.1 localhost


### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### 

To make sshd work generate host keys

sshd

	/etc/ssh

	ssh-keygen -t rsa -f ssh_host_rsa_key
		
	ssh-keygen -t dsa -f ssh_host_dsa_key


### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### 

Manually configure ethernet interface so you can ftp over software packages.

ifconfig eth0 YOUR_IP_ADDRESS broadcast YOUR_BROADCAST_ADDRESS netmask 255.255.255.0

route add default gw YOUR_GATEWAY_ADDRESS metric 1


### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### 


/etc/inetd.conf

	rem out any unwanted services

	
/etc/profile

  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:."


cd /etc

	ln -s /usr/share/zoneinfo/US/Mountain localtime
	

Turn off the gettys spawning on the serial ports used for GPS and power supply monitor.
	
vi /etc/inittab  

	Rem out ##T1:23:respawn:/sbin/getty -L ttyAM1 115200 vt100
	do not spawn a login on ttyAM1

	Rem out ##1:2345:respawn:/sbin/getty 38400 tty1


### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### 
REBOOT
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###

If interface didn't come up with dhcp you can manually configure it, shown above.

To grab the source files use wget from another server, then ftp over to TS-7400

I do all this in /usr/src
 
Put the kerlen source on your development TS-7400.  Needed for includes.

tar -zxvf ts7400_tskernel-2.4.26-ts11-may152007.tar.gz
 		  
 
http://ftp.gnu.org/gnu/diffutils/diffutils-2.8.1.tar.gz

tar -zxvf diffutils-2.8.1.tar.gz
cd diffutils-2.8.1
./configure
make
make install


http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.6.tar.gz


tar -zxvf ntp-4.2.6.tar.gz
cd ntp-4.2.6
./configure --enable-ATOM --enable-LOCAL-CLOCK --enable-NMEA

Manually fix these

vi config.h
 #define HAVE_PPSAPI 1
 #define HAVE_TIMEPPS_H 1

 timepps.h included with mod_pps
 
cp timepps.h /usr/src/ntp-4.2.6/include

make
make install

cp ntp.conf /etc
cp ntpd /etc/init.d
cd /etc/rc2.d
ln -s ../init.d/ntpd S25ntpd

  					 
Needed to support less and elvis.  I have really long lines in my c code 
that work better when you can sideways scroll.  

http://ftp.gnu.org/gnu/ncurses/ncurses-4.2.tar.gz

tar -zxvf ncurses-4.2.tar.gz
cd ncurses-4.2
./configure
make
make install

http://www.greenwoodsoftware.com/less/less-394.tar.gz

tar -zxvf less-394.tar.gz
cd less-394
./configure
make
make install

 
http://elvis.vi-editor.org/
ftp://ftp.cs.pdx.edu/pub/elvis/elvis-2.2_0.tar.gz

tar -zxvf elvis-2.2_0.tar.gz
cd elvis-2.2_0
./configure
make
make install

Minicom used to talk with GPS and power supply monitor
 
https://alioth.debian.org/frs/download.php/3195/minicom-2.4.tar.gz

tar -zxvf minicom-2.4.tar.gz
cd minicom-2.4
./configure
make
make install

mkdir /usr/local/etc


### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### 

To make boot from SD if not running fast boot

ln -sf /linuxrc-sdroot /linuxrc; save


### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### 

TO put boot rom in fast boot mode to run kernel from SD card

wget ftp://
ftp.embeddedarm.com/ts-arm-sbc/ts-7200-linux/binaries/ts-utils/tsbootrom-update

$ mac=`ifconfig eth0 | grep HWaddr | cut -d' ' -f11`
$ tsbootrom-update -s -m $mac

root@hclock:~# echo $mac
00:D0:69:40:6C:D1
root@hclock:~# tsbootrom-update -s -m $mac
maverickkey=0x9210f35f
verifydat=0xcd9a964a
lockdat=ffffffffffffffffffffffffffffffffffffffff
verifylen=0
mac="00:d0:69:40:6c:d1"
root@hclock:~#


Copyright 2010 by TMD Innovations and Len Bayles


Updated July 28, 2010