Follow these steps:
1 Login as root
2 Create a /etc/resolv.conf file which looks like this
$ cat /etc/resolv.conf
domain sun.com
If your not internet connected then you can make this domain anything you fancy, or just stick with this default. If your machine is internet connected there you should already have a DNS server and do not need this information.
3 Create a host file. The host file contains a mapping of all the names of the hosts on your network and their IP addresses. Ensure you know the IP addresses and names of the machines in the classroom before attempting this step. A sample host file looks like this and should be located at /etc/hosts.
$ cat /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.9.200.1 zaphod.sun.com zaphod
192.9.200.2 arthur.sun.com arthur
192.9.200.3 ford.sun.com ford
192.9.200.4 trillian.sun.com trillian
192.9.200.6 marvin.sun.com marvin
192.9.200.7 slarty.sun.com slarty
192.9.200.9 pangalatic.sun.com pangalatic
192.9.200.10 babelfish.sun.com babelfish
192.9.200.11 douglas.sun.com douglas
192.9.200.12 adams.sun.com adams loghost
Obviously your names and IP addresses will be different.
CONSOLE=/dev/console
to
#CONSOLE=/dev/console
Also adding a /.rhosts file allow you to rlogin into remote hosts without using a password. In the classroom environment this does not present a security risk. Create a file called .rhosts in the / directory. If we use the /etc/hosts file above as an example then a corresponding .rhosts file would look like this;
$ cat /.rhosts
zaphod
arthur
ford
trillian
marvin
slarty
pangalatic
babelfish
douglas
adams
To test these changes have been successful try to remotely login to another machine on your network. In the following example I am on machine douglas and I am trying to remotely login as root on the machine zaphod.
# rlogin zaphod
Last login: Thu Oct 28 11:57:54 from douglas.sun.com
# uname -a
SunOS zaphod 5.7 Generic sun4u sparc SUNW,Ultra-5_10
#