Mas Configuration On Linux
Install tftp (credit for documentation credit to David Sudjiman @ http://www.davidsudjiman.info/2006/03/27/installing-and-setting-tftpd-in-ubuntu/)
1. Install tftpd and related packages.
$ sudo apt-get install xinetd tftpd tftp
2. Create /etc/xinetd.d/tftp and put this entry:
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
3. Make /tftpboot directory
$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot
4. Start tftpd through xinetd
$ sudo /etc/init.d/xinetd start
5. Testing. Tranfering file hda.txt from 192.168.1.100 (Client using tftp) to 192.168.1.100 (Server 192.168.1.100). Get an example file to transfer (eg. hda.txt)
$ touch /tftpboot/hda.txt
$ chmod 777 /tftpboot/hda.txt
$ ls -l /tftpboot/
total 0
-rwxrwxrwx 1 davids davids 0 2006-03-27 23:04 hda.txt
$ tftp 192.168.1.100
tftp> put hda.txt
Sent 722 bytes in 0.0 seconds
tftp> quit
$ ls -l /tftpboot/
total 4
-rwxrwxrwx 1 davids davids 707 2006-03-27 23:07 hda.txt
Then place the tftp files in /tftpboot/
tftpboot.tgz
Download EDT drivers from parallel port
http://www.edt.com/www.edt.com/index.html
EDTp11w_lnx_4.1.9.3.run
Setup routing for gateway on DAS
The script should be…
#!/sbin/sh
#
# $Id: DASroute,v 1.1 1998/04/16 19:01:19 mfm Exp $
#
# Purpose: Solaris init daemon startup/shutdown script
# for creating routes for the DAS Ethernet
# interface.
#
# A copy of this script must be installed in the
# /etc/init.d directory when the system is
# configured. A link to the script should exist
# in the /etc/rc2.d by the name "S91DASroute", and
# another in /etc/rc1.d by the name "K91DASroute".
#
# The S91DASroute script will be called when the
# system enters init level 2, with the parameter
# "start". The script must call the "route" command
# to add a route for the specified DAS systems.
#
# When named "K91DASroute" and placed in /etc/rc1.d, the
# script will be executed when the system goes into
# single user mode with a "stop" parameter.
#
# Usage: "start": Start the daemon, "stop": stop it
#
# Author: Merle F. McClelland
#
# Creation Date: 13 April 1998
#
# Edited By Dan Collins for linux version of route
#
# Copyright 1998, Biomagnetic Technologies, inc., All Rights Reserved
#
# $Log: DASroute,v $
# Revision 1.1 1998/04/16 19:01:19 mfm
# Initial revision
#
PATH=/usr/bin:/bin
case $1 in
'start')
# ROUTECMDS - DO NOT REMOVE THIS LINE
#/sbin/route add -net 192.168.20.0 1
sudo /sbin/route -v add -net 192.168.20.0 netmask 255.255.255.0 gw 192.168.10.2
;;
'stop')
sudo /sbin/route -v del -net 192.168.20.0 netmask 255.255.255.0 gw 192.168.10.2
;;
*)
echo "usage: K|S91DASroute {start|stop}"
;;
esac
…….
page_revision: 7, last_edited: 1233267304|%e %b %Y, %H:%M %Z (%O ago)





