HOW TO NFS????? PLEASE HELP


Forum: Networking
Topic: HOW TO NFS????? PLEASE HELP
started by: dan28

Posted by dan28 on July 15 2006,19:43
Hi all,

I’m new to Damn Small Linux, and am having some good fun with it.

I have a problem though.

I have a Neoware E90 thin Client (I’m using DSL on a USB pen drive), I want it to show files, and programs from my server.

The server is running DSL on the hard disk, im using a lan cross-over cable to the thin client.
How can I get the thin client to see (show programs)
I’ve been told I need to use NFS? But how do I go about doing this?

Please can somebody help.
I need some very easy to follow instructions, everything I have seen on the net seems to complex or im doing something wrong.

Many thanks

Dan

Posted by roberts on July 15 2006,20:35
DSL does not come with an nfs server.
It does have an nfs client, where DSL is the thin client connecting to a NFS server.

However, DSL, does offer something, much easier and will do the same thing as your needs seem to describe. That being sshfs.

From what I gather from your post, both machines are running DSL.
The machine with the hard drive is to be the file server. Let just say that is ip 192.168.0.10  Lets say the thin client is 192.168.0.20
These ips are just an example, use whatever your network provides.
Let say we have a directory that we want to use remotely. For example, I have my MyDSL collection on the file server at /mnt/hda3/mydsl

Assuming your network between these two machines is functional then:

First you must have both sshd and passwords setup on the file server.

1. One the file server DSL machine boot with
boot:  dsl secure ssh
This will prompt for passwords and start sshd

Or the file server machine, you can use the control panel to start ssh and from root shell set passwords.

Now on the client side...

2. On the thin client, usb pendrive, from a root shell
# modprobe fuse

3. Use sshfs to mount the remote drive directory. In this example I want to mount my collection of mydsl apps.

# sshfs root@192.168.0.10/mnt/hda2/mydsl /mnt/test -o allow_other

4. Now we have the collection of mydsl apps remotely mounted at /mnt/test

5. As normal user, dsl, we can use the mydsl desktop icon and load mydsl apps as if they were local. Just click the load local button and naviagte to the /mnt/test directory, then click and load your apps!

I use this setup for my small 64MB pendrives where I don't have much room. While at home I keep all my extensions on a large hard drive dsl system. Then any computer that I have, dsl of course, I can share and load my extension collection as if it was local.

Have Fun!

Robert



Posted by dan28 on July 17 2006,19:23
We are following instructions as per Robert’s response however we are encountering a few problems.

We are using DSL 3.0.

2. #modprobe fuse
Not sure if this is working, have typed in an Xshell as root it accepts the command and jumps to a new prompt, there is no message from the shell but I don’t know if there should be.

3. #sshfs root@192.168.0.100/mnt/hdc1 mnt/test –o allow_other
The shell responds with: Missing host
I have checked the /mnt directory and we are using the correct locations (/mnt/hdc1 in this case)

Any suggestions please?
Is there any way to test or show stats for the network in case the NIC or cable are at fault, although they are new so I hope its not a faulty NIC or cable.


Thanks

Posted by ^thehatsrule^ on July 17 2006,19:27
2. No news is good news :)
3. Missing host, I'd assume that sshfs can't find 192.168.0.100 - make sure that ip is correct?
   To make sure the machines are reachable, use `sudo ping <ip_address_here>`

Posted by dan28 on July 17 2006,19:47
Quote (^thehatsrule^ @ July 17 2006,15:27)
2. No news is good news :)
3. Missing host, I'd assume that sshfs can't find 192.168.0.100 - make sure that ip is correct?
   To make sure the machines are reachable, use `sudo ping <ip_address_here>`

Hi,
thanks for the ping information.

we have tried to ping, and it seems to be working.
we have pinged in both directions.

any other suggestions?

Posted by roberts on July 17 2006,19:55
Hopefully you did not use the example IP used.

What are your IP numbers for both machines?

Server is ?
Client is ?



Posted by dan28 on July 17 2006,20:30
Server ip : 192.168.0.100
Client ip 192.168.0.1


Thanks

Posted by roberts on July 17 2006,20:48
OK. Now we know which machines are which.
You have started machine 100 with ssh and secure?
On machine 100, is the control panel ssh server button depressed?
You can ping from machine 1 to machine 100?
Then try from machine 1

$ ssh root@192.168.0.100

At this point do you get a login prompt or failure?

Posted by ^thehatsrule^ on July 17 2006,21:10
It still shouldn't have that error of "Missing host" though...

Looking at the syntax.. from my understanding of ssh (I have not used sshfs yet), the parameter might have to be:

Code Sample
# sshfs root @192.168.0.100:/mnt/hda2/mydsl /mnt/test -o allow_other
Of course take out the space btwn root and the @


I believe it was because of the forum's iB EMAIL code that hid the missing colon...

Posted by dan28 on July 17 2006,21:27
Guys (thehatsrule) and (roberts)

Thank you both so much, we have lift-off!!!! &#61514;
We noticed that we left out the “:” after the IP of the server.

Thanks again, will speak soon!

Dan


P.S Anyone else that that reads these messages…..These two guys are Great!

Posted by brianw on July 18 2006,01:04
On the file server type the command mount (or use the mount tool) to make sure you have /dev/hdc1 mounted at /mnt/hdc1

In Roberts case if he type the mount command he would see
/dev/hda3 on /mnt/hda3 type ext2 (and some mount flags)

If you are just trying to mount the complete file system of the server then you would probably use
#sshfs root@192.168.0.100/  /mnt/test –o allow_other
This assumes you have dsl installed on hdc1 and you want to mount the entire drive.

Also I see you missed the / in front of mnt/test (this might not work depending on the relative location to where this is type in) should use /mnt/test unless you are absolutely sure you are in the root (/) directory.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.