Subject: Re: Webmin on Qube2/NetBSD 1.6
To: None <port-cobalt@NetBSD.org>
From: Matt Dainty <matt@bodgit-n-scarper.com>
List: port-cobalt
Date: 11/16/2004 09:53:41
On Tue, 2004-11-16 at 09:14, Colin Raven wrote:
> 
> > 2 Other quick questions which are off topic;
> >
> > 1) I want to give my qube a fixed ip address, reading through the 
> > documentation it isn’t clear (to me) which files I need to edit to do 
> > so, has anybody got an example of what it should look like, and the 
> > file I should be editing?
> >
> I wouldn't say this is O/T - it's somewhat NetBSD specific in fact 
> (IMHO) but anyway off we go:

(Apart from the lcd/panel, this should really all be on the generic
NetBSD lists, there's nothing Cobalt-specific here.)

> a) edit etc/rc.conf
> delete the line referencing dhclient (if it still exists)
> delete the line referencing nfs_ client (if it still exists)
> Add: (exactly as shown)
> inetd=YES
> Small but important sidestep - if you haven't already done this, (while 
> you're in this file already)
> Get rid of any ability to login via telnet of rlogin...first step:
> make sure the following exists, and if it doesn't then add it:
> sshd=YES
> 
> edit /etc/inetd.conf and comment out lines beginning with
> login
> telnet
> 
> restart inetd
> /etc/rc.d/inetd reload
> Fire up putty and login via ssh using your NON ROOT username and password)
> 
> 
> NOW let's setup domain and IP stuff (assuming you haven't done any/all 
> of this yet)
> Make sure you *have* a domain registered and setup on a DNS server 
> somewhere first!!!!!
> 
> Add your default domain (we'll call it whatever.com):
> echo whatever.com > /etc/defaultdomain
> that's echo [space] > [space] /etc/defaultdomain

This is wrong. As /etc/default/rc.conf shows, /etc/defaultdomain is for
the *NIS* domain name, not in any way related to Internet domain names.
It's not causing any harm unless you're running NIS services, but it's
not doing what you think it's doing...

---8<---
> 
> reload inetd as shown above.

Unless you're adding or removing services in /etc/inetd.conf, why do you
need to reload inetd?

Matt