G'day Karel,
I've never bothered replying to a post before, but I just happened to do
a successful PLIP/NFS install on a Toshiba laptop last night so i
thought what the hell, I'll have a guess at where you screwed up.
> I want to install linux (SuSE 5.3) on a laptop that doesn't have a CDROM.
> I do have SuSE 5.3 running on a desktop with a CDROM, so I thought I could
> do a NFS install via PLIP.
> Apparently I thought wrong.
> Here's what I did:
> desktop (pentium 60, 24 MB RAM, 4x CDROM)
> - installed PLIP: insmod plip
> - start PLIP: /sbin/ifconfig plip1 192.168.0.1 pointopoint 192.168.0.2 up
> (I used plip1 because neither plip0 or plip2 will work on the server. The
> ip addresses were chosen rather arbitrarily because neither machine is
> intended to be hooked up on the Internet soon)
> - mount CDROM drive: mount /cdrom (/cdrom is the directory where I mount my
> CDROM, obviously)
> - added "portmap: 192.168.0.2" to /etc/hosts.allow and "/cdrom 192.168.0.2"
> to /etc/exports (to export my /cdrom directory to the client). (Obviously I
> did this first)
> All this worked, that is to say, I didn't get any funky error messages.
My experience was that it doesn't give any error messages along the way
(since you're not really doing anything yet!) but only when you attempt
the NFS mount.
If you read the PLIP howto they mention a few other steps which you
don't appear to have performed. On the desktop do the following:
insmod plip
route add -net 192.168.0.0 netmask 255.255.255.0 dev plip1
ifconfig plip1 192.168.0.1 pointopoint 192.168.0.2 up arp
route add 192.168.0.2 plip1
Basically you haven't added the routing info so the packets don't know
where to go!
I had to do some searching on Deja-News to find that I needed the "arp"
on the end of ifconfig. The post where this is mentioned (some UK linux
newsgroup from a couple of weeks back) says that this is a necessity on
the server side for the NFS install. Don't know why, read the man page
and tell me!
Also, add ALL:ALL to /etc/hosts.allow. (Play it safe and turn off your
modem first!)
What you have in /etc/exports looks OK.
You don't mention sending SIGHUP's to the relevant daemons to reread the
config files. I presume the daemons are actually running?
The following will get the daemons configured in either case. (I have
RH, so not sure if the scripts are the same name or in exactly the same
place for Suse.)
/etc/rc.d/init.d/inet stop
/etc/rc.d/init.d/inet start
/etc/rc.d/init.d/portmap stop
/etc/rc.d/init.d/portmap start
/etc/rc.d/init.d/nfs stop
/etc/rc.d/init.d/nfs start
Quote:> Laptop (pentium 75, 16 MB RAM)
> - boot with SuSE boot disk (the same one I used for the install on my desktop)
> - go to "install modules" and 'install network card", where I chose "PLIP
> -parallel line" - the default address and IRQ settings seem to work, since
> the install program told me that the PLIP module was successfully installed.
> - I then filled in the ip-addresses for client (192.168.0.2) and server
> (192.168.0.1). I did escape out of the name server dialog, because I hadn't
> bothered setting up a name server.
I did exactly the same on the equivalent part of the RH install. As long
as you use IP numbers, you shouldn't need a nameserver.
Quote:> - The install program tries to mount 192.168.0.1:/cdrom and nothing happens
> for some time. It all ends with the error message that the network doesn't
> seem to be running (duh!). A ping from the server seems to confirm that.
This was the symptom I had prior to adding the "arp" to ifconfig as
above. However, in your case, I believe its the lack of routing info
which is the main problem.
Quote:> Question: Did I do something wrong software-wise? I checked various
> postings concerning PLIP installs and they all seem to include what I did
> here, with the exception that many include settings for the client part,
> which I assumed the SuSE install script took care off.
I think you basically missed the routing info on the server side. I
don't know if SuSE does all the relevant stuff for the laptop, I presume
so. If not, and you have a free shell console during the install try and
do it by hand yourself. Can't hurt!
Quote:> The only flaky part in my attempt that I can see is the cable: I salvaged a
> parallel port cable from an old LANTastic Z package (a cardless network
> between 2 computers - for DOS), assuming it would be a Laplink lookalike.
> Anybody know if this was a valid assumption or did I cheapskate myself in
> trouble?
Don't know about the cable. To test it you can boot the laptop with a
rescue disk with a custom kernel which has PLIP compiled directly in. (I
say this because i could not insmod PLIP on the laptop after booting the
rescue disk. Don't remember the error message. Anyway, my solution was
to make the custom kernel with PLIP hard-wired in and use that to boot
the laptop.) Then do the appropriate *on the desktop and also
route add -net 192.168.0.0 netmask 255.255.255.0 dev plip1
ifconfig plip1 192.168.0.2 pointopoint 192.168.0.1 up arp
route add 192.168.0.1 plip1
on the laptop and ping in both directions. I did this to try and
understand PLIP before I did the install. It might seem like a lot of
effort for little gain, but hey, we use linux to learn right! If you're
really a * you can copy binaries for telnet and ftp onto another
floppy together with the relevant libraries. Then on the laptop:
mknod /dev/fd0 b 2 28
mkdir /mnt/floppy
mount /dev/fd0 /mnt/floppy
Then create the soft links in the /lib directory to the libraries on the
floppy, and try and telnet back to your main box using the telnet binary
on the floppy. If you're lucky your rescue disk will already have route,
ifconfig and telnet and you can skip making the extra floppy. I found
this a useful exercise to try and understand things.
Quote:> As allways: answers will be greatly appreciated and will earn you
> everlasting gratitude (a bit less if your suggestion doesn't work).
Post back if any of this helps (or doesn't). I'd be interested to hear
if my first post was a total waste of time! Don't bother with my email,
its totally bogus.
Good luck,
Greg