*BSD News Article 50529


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!hookup!ames!cnn.nas.nasa.gov!lestat.nas.nasa.gov!thorpej
From: thorpej@lestat.nas.nasa.gov (Jason R. Thorpe)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: netbooting NetBSD/sun3
Date: 6 Sep 1995 05:12:49 GMT
Organization: Numerical Aerodynamic Simulation Project - NASA Ames
Lines: 38
Message-ID: <42jakh$i5f@cnn.nas.nasa.gov>
References: <42a4be$bg4@isnews.csc.calpoly.edu> <DEF5s7.8KF@midway.uchicago.edu> <42i501$9qg@cnn.nas.nasa.gov> <42inpo$e4b@isnews.csc.calpoly.edu>
NNTP-Posting-Host: lestat.nas.nasa.gov

In article <42inpo$e4b@isnews.csc.calpoly.edu>,
Chris Callanan <ccallana@gauss.elee.calpoly.edu> wrote:

>: >/sbin/rarp -s xhost 8:0:20:0:10:67
>
>: Seems crufty, but, whatever works, I guess.
>
>
>why crufty???   i have done exactly this, without the -s, rarp works
>just fine.

Seems unnecessary given that there are daemons (liek rarpd) that handle
this for you ... just add the entry to /etc/ethers (like one would under
SunOS) and *poof*.

>i just cant get tftpd to respond correctly.

Hmmm ... Linux tftpd, eh?  Well, which Linux tftpd?

In any case, note that the Sun 3 proms are looking for a file named
like "CCBC9805".  That's the IP address in hex.  Obtain it by, for example:

	$ printf "%X%X%X%X\n" 204 188 152 5

There is no prepending `/' ... no pathname ... just the filename.  Therefore,
your tftpd has to so a chroot() to the tftpboot area, and chroot() needs
super-user priveledges.  My /etc/inetd.conf entry looks like:

tftp     dgram   udp     wait    root    /usr/libexec/tftpd tftpd -s /tftpboot

Of course, this is on a NetBSD system.  On a Linux system,, your mileage
may vary.

-- 
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939