[Sussex] Re: Setting up a simple home network
Captain Redbeard
hairy.one at virgin.net
Sat Apr 30 22:21:57 UTC 2005
Alright, time for a recap.
On the server, which I have named templeofthebeard and
assigned the address 192.168.0.1, I have the following:
[/etc/hosts]
127.0.0.1 localhost
192.168.0.1 templeofthebeard.homenet templeofthebeard
192.168.0.2 shrineofthebeard.homenet shrineofthebeard
[/etc/hosts.allow]
shrineofthebeard.homenet
[/etc/HOSTNAME]
templeofthebeard.homenet
[/etc/exports]
/home/public
shrineofthebeard.homenet(sync,no_subtree_check,rw,no_root_squash)
[/etc/networks]
loopback 127.0.0.0
localnet 130.100.100.0
(I never looked at this one before. Should I change the
second line to "localnet 192.168.0.0", add "homenet
192.168.0.0" or can I ignore this file?)
[/etc/resolv.conf]
search homenet
domain homenet
[/etc/rc.d/rc.inet1.conf]
IPADDR="192.168.0.1"
NETMASK="255.255.0.0"
GATEWAY="192.168.0.71
DEBUG_ETH_UP="no"
(Whoops! GATEWAY was spelled wrongly, now corrected.)
The command "ls /home -l | grep public" gives:
drwxrwxrwx 1 root root 48 2005-04-28 21:14 public
The command "ps -A | grep portmap" gives:
2540 ? 00:00:00 rpc.portmap
The command "ps -A | grep nfsd" gives:
2564 ? 00:00:00 nfsd
2567 ? 00:00:00 nfsd
2568 ? 00:00:00 nfsd
2569 ? 00:00:00 nfsd
2570 ? 00:00:00 nfsd
2571 ? 00:00:00 nfsd
2572 ? 00:00:00 nfsd
2573 ? 00:00:00 nfsd
The command "ps -A | grep inetd" gives:
2546 ? 00:00:00 inetd
That covers pretty much everything I can think of for the
server. Now I reboot it and see what happens.
OK, this time there were no errors but curiously the line
"/usr/sbin/rpc.inetd 8" did appear under the heading
"Starting NFS services:" in the boot messages and doing "ps
-A | grep nfsd" immediately after logging in still shows
eight instances of nfsd running. Is this some sort of
config error? Other than that, all of the files are
unchanged and the commands still work as expected.
Now for the client, shrineofthebeard, 192.168.0.2:
[/etc/hosts]
127.0.0.1 localhost
192.168.0.1 templeofthebeard.homenet templeofthebeard
192.168.0.2 shrineofthebeard.homenet shrineofthebeard
[/etc/fstab]
.
.
.
templeofthebeard.homenet:/home/public /home/public nfs
defaults 0 0
The command "ls /home -l | grep public" gives:
drwxrwxrwx 2 root root 48 2005-04-30 08:29 public
I'm also rebooting that to clear out any possible junk it
may have picked up.
So now if I ping the server from the client and vise-versa
everything seems to be in order. Now I'll try the mount
command again!
root at shrineofthebeard:~# mount -t nfs
templeofthebeard.homenet:/home/public /home/public
root at shrineofthebeard:~#
OHMYGODITWORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Now all I need to do is configure Samba so that I can get my
XP laptop added, set up my Speedtouch USB modem to connect
my server to the Internet, build and configure a third
machine as an Internet gateway and router, configure an
Apache web server for my sites, plug in two more machines
for a-life experiments........
Captain Redbeard.
======================================================
Registered Linux user: 388693.
Registered Linux machines: 289172, 289173.
v2sw5+8C+JGhw5ln4/5pr6/7Ock1ma6/8l6+8Sw3+2e4t2b9Hen4+6
g5+3RHaIr9 Hackerkey.com
======================================================
More information about the Sussex
mailing list