Subject: HOWTO install NetBSD 1.6.1 on a Cobalt Qube2 PREVIEW
To: None <port-cobalt@NetBSD.ORG>
From: Andreas Fuchs <fox@tcnet.ch>
List: port-cobalt
Date: 01/10/2004 20:05:58
Hi

I'm trying to write an HOWTO install netBSD on a Cobalt Qube2 with the GREAT
recue-cd from


Here a preview, if you have any ideas or stuff to add please reply, i'm also
looking for infos on how to compile the kernel so it will boot thereafter, i
failed already 1 time.


------------------------------------------------------------------
HOWTO install NetBSD 1.6.1 on a Cobalt Qube2

I try to write a guide how to get NetBSD running on a Cobalt Qube2
And how to configure the Qube as a gateway to an ADSL moden
I'm not native english speaker so sorry for the "writing style"

10.1.2004 Andreas Fuchs, fox@tcnet.ch



- Get the rescue-cd image from:
	ftp://ftp.netbsd.org/pub/NetBSD/arch/cobalt/restore-cd/1.6.1

- Burn this iso image to a cd
- Boot a machine which has network connection to your Qube2 with this CD
- follow the instructions and whatch the display

	make shure you have only one dhcp server in you're network,
	otherwise the Qube might pick up a wrong ip-address

- the qube will reboot when finnish and display his ip-address
- telnet to you're Qube

- set a root password
	passwd

- if you disable dhclient do not forget to configure an ip-address!
	edit /etc/ifconfig.tlp0
		192.168.1.3 netmask 255.255.255.0

- add at least one nameserver to /etc/resolv.conf
	search yourdomain.ch
	nameserver 195.141.234.230
	nameserver 195.141.234.170

- configure /etc/rc.conf to something like
	hostname="qube"
	defaultroute=192.168.1.1
	#
	dhclient=NO
	nfs_client=NO
	paneld=YES
	inetd=NO
	sshd=YES


- either give root access to ssh (change /etc/ssh/sshd_config) or better add
a second user
	useradd -m nerd
	passwd nerd

- test ssh access before rebooting to make shure you have access
	/etc/rc.d/sshd start

- start the daemons to make shure they are running (if they fail and you
reboot it might be that
  the system hangs on boot!)

	/etc/rc.d/dhclient stop
	/etc/rc.d/inetd stop


- to get other tools and application install pkgsrc
	ftp://ftp.netbsd.org/pub/NetBSD/packages/bootstrap-pkgsrc.tar.gz
  extract and follow the README
  then follow
	http://www.netbsd.org/Documentation/software/packages.html#using-pkgsrc

	i install:
	/usr/pkgsrc/shells/bash2
	/usr/pkgsrc/net
	/usr/pkgsrc/security/openssl	you have to add a line to /mk.conf whatch the
output
	/usr/pkgsrc/net/wget




- to compile you're own kernel get the src tarball from
	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.1/source/sets/syssrc.tgz
  and follow the instructions here
	http://www.netbsd.org/Documentation/kernel/#how_to_build_a_kernel
  to boot you're new kernel at the cobalt you need to run
	mount /dev/wd0



- if ipfilter is enabled in kernel


	#
	ipfilter=YES
	ipnat=YES
	ipmon=YES

	/etc/rc.d/ipfilter start
	/etc/rc.d/ipnat start
	/etc/rc.d/ipmon start