4. The one true way

We use the debian 'potato' (2.2) release as an example. The procedure should be similar no matter which distribution you choose, providing it will run on a 2.0.35 kernel.

Create the directories for the kernel and file system on your server, mount and copy the files from the Compaq CD. Unpack the file system (Here I use some pre-made tar balls of the debian release, here is not the place to discuss further):

mkdir /exports/T1500 
mkdir /exports/T1500/root 
mkdir /exports/T1500/tftpboot
mount /cdrom
cp /cdrom/product/vmlinux /exports/T1500/tftpboot
CD /exports/T1500/root
tar zxvf /tmp/base2_2.tgz 
tar zxvf /tmp/telnetd*.tgz

Configure DHCP by adding a section like this to your /etc/dhcpd.conf Change the ethernet address to that of your T1500.

Group {
   #little black box
   host box {
   	 hardware ethernet 00:80:64:10:1d:1c;
     fixed-address box.house;
     option host-name "box";
     server-name "192.168.1.1";
     filename "/exports/T1500/tftpboot/vmlinux";
     option root-path "192.168.1.1:/exports/T1500/root";
     }
   }

Configure a new host in DNS

db.192.168.1.1:
   52 in ptr box.
db.house:
   box in a 192.168.1.52

Export the root file system by adding

/exports/T1500/root box(rw,no_root_squash)

to /etc/exports

Configuring tftp by adding/altering a line to /etc/inetd.conf

tftp dgram udp wait root /usr/sbin/tcpd in.tftpd /exports/T1500/tftpboot

Now restart inetd,dhcpd,nfs and named

Configure the file system by setting the root password to 'pass', exposing telnetd

/exports/T1500/root/etc/passwd, alter 1st line: root:Z/U2u32VhNJoA:0:0:,,,:/root:/bin/bash

/exports/T1500/root/etc/inetd.conf, add: telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd

Append remote terminals to /etc/securetty to allow remote root access.

tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
tty12
ttyp0
ttyp1
ttyp2
ttyp3

Select network booting on the T1500 and reboot it.

Once it has booted, you should be able to telnet into the T1500. At ths point, you shoudl configure SSH, and close the telnet hole in inetd.

Copyright © 2010-2024 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout