LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mandrake 9.1 2 computer network setup (https://www.linuxquestions.org/questions/linux-networking-3/mandrake-9-1-2-computer-network-setup-67330/)

steve1401 06-22-2003 06:01 PM

Mandrake 9.1 2 computer network setup
 
Hi

OK, so I've been using Mandrake 9.1 for a while now (my first excursion into Linux) and so far so good :-)

The only thing that has aluded me, is how do I set up my simple, two computer home network. With Windows it was easy, but Linux !!

I have a Desktop PC upstares which connects to the internet via a USB modem. My laptop downstairs is connected to the PC via some CAT5 cross-over Ethernet cable. I know the two computers see each other ok because I share the internet connection with no problem.

What I can't do is share files between the two computers! I am sure that I am missing out on something simple here, but if any one can help point me in the right direction...

I have tried the Mandrake Configuration's NFS and Samba wizards, but if I type nfs://192.168.1.1/ShareName it says that 192.168.1.1 cannot be reached?

Setup:
Desktop Mandrake9.1, Laptop Mandrake 9.1...

Thanks in advance

Steve

sidboyce 06-24-2003 07:45 AM

You didn't say if both are running Linux, assuming that's the case, I have in /etc/exports
/ *(rw,no_root_squash,sync)
/data1 *(rw,no_root_squash,sync)
/media/cdrom *(rw,no_root_squash,sync)
/media/dvd *(rw,no_root_squash,sync)
/dev/sda1 *(rw,no_root_squash,sync)
-------------------------------------------------------------------------
barrabas:/usr1/ftp/jun03 # exportfs
/media/cdrom <world>
/media/dvd <world>
/dev/sda1 <world>
/data1 <world>
/ <world>
Now I can "mount barrabas:/data1 /mnt" from any other machine on the network, ls, cp, rm any files on /mnt from the other boxes. I can similarly mount any exported filesystems on the other machines on host barrabas.
barrabas:/usr1/SZB50_SuSE81 # rpcinfo -p 192.168.10.92
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 1024 status
100024 1 tcp 1024 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 1026 nlockmgr
100021 3 udp 1026 nlockmgr
100021 4 udp 1026 nlockmgr
100005 1 udp 1027 mountd
100005 1 tcp 1025 mountd
100005 2 udp 1027 mountd
100005 2 tcp 1025 mountd
100005 3 udp 1027 mountd
100005 3 tcp 1025 mountd
rpcinfo -p on all machines should give a similar output, the ones above are all required for nfs - your nfs server needs to be running.
barrabas:/usr1/SZB50_SuSE81 # ps fax|grep nfs
1488 ? SW 0:00 [nfsd]
1489 ? SW 0:00 [nfsd]
1490 ? SW 0:00 [nfsd]
1491 ? SW 0:00 [nfsd]
barrabas:/usr1/SZB50_SuSE81 # ps fax|grep port
931 ? S 0:00 /sbin/portmap
barrabas:/usr1/SZB50_SuSE81 # ps fax|grep lockd
1493 ? SW 0:00 [lockd]
barrabas:/usr1/SZB50_SuSE81 # ps fax|grep mountd
1500 ? S 0:00 /usr/sbin/rpc.mountd

steve1401 06-25-2003 04:10 AM

Cheers for the reply.

Yes I am running Linux on both machines (both Mandrake 9.1). Forgive my noobie-ness and everything, but I didn't quite understand your reply.

I have used the wizards to set up the internet connection and network. I wouldn't know where to look for other setting or what changes would be required.

Maybe I am asking an awful lot for a forum question? Do you know of any good internet resources that may be able to assist me?

Now I am struggeling to connect to the internet full stop after 'tinckering' so it may be a good idea to get a better knowledge of what I am doing.

Cheers
Steve

aesahaettr 06-25-2003 04:41 AM

yip, its even eaiser to do in linux than windows. just go to the folder that you want to share (you must have access to this, ie its in your home directory), right-click on it, click 'properties' click 'local net sharing' tab, click on 'configure file sharing', enter root p/w when asked, choose either smb (windows-compatible) or nfs (unix compatible), or both. stick in mandrake 9.1 cd2 when it asks, wait a tick, choose 'allow all users'. close the properties for the folder and then re-open them and get back to 'local net filesharing'. now you should just be able to choose 'shared' and press ok. and bill's your uncle :D

aesahaettr 06-25-2003 04:42 AM

ps i have no idea what that other post means so you're not alone on this quest...

aesahaettr 06-25-2003 04:47 AM

forgive me for not reading your post through enough times... well if you had already tried what i have just suggested then my only other advice i can give you would be to try pinging 192.168.1.1 (are you sure thats your host? ) try pinging hostnames and ip addresses, try nfs://hostname/ instead of nfs://192.168.1.1/ or try smb://
other than that i dunno...

steve1401 06-26-2003 02:36 AM

I seem to be unable to ping 192.168.1.1 - this is what Mandrake set as my IP when I ran Internet Connection Sharing wizard. I don't know how to set up a 'name' for my machine.

After a bit of tinckering, I have now managed to loose my internet connection sharing completely??? Where do I look for files with the details in, and what settings should they have?

I think that the internet connection sharing has done/set something that stops me viewing files accross the network, could it be a firewall issue?

If all else fails, I may re-install Mandrake...

sidboyce 06-26-2003 04:23 PM

To set your hostname to george, # "hostname george". It should have been set up during install, so when you use a terminal, there should be like .....
[user@hostname user]#
As far as I can see here, The Mandrake Control Center --> Nework & internet -->DrakConnect has all you need to get the network going if you did anything to change it accidentally.
Mandrake 9.1 also has "Webmin" installed. In a browser, http://192.168.1.1:10000/ then login as root with root password and you should get a nice graphical display that allows you to do many things... under the Networking Tab, you see "Network Utilities" that allows you to install NFS
Under System Tab --> Bootup and Shutdown, you can start click on nfs, set it to start at boot and also start it now.
On The previous menu Networking --> NFS Exports, you can set what directories you want exported (e.g add lines for /, /mnt/cdrom etc.). You should see all the options laid out for you, SAVE saves it to /etc/exports.
/etc/hosts should also have a list of hostnames --- Mine below -----
192.168.10.3 g3vbv2.local bumble.local bumble
192.168.10.25 Stacker
192.168.10.101 BBIagent.local BBIagent

192.168.10.92 szb50.local szb50
192.168.10.1 barrabas.local barrabas

sidboyce 06-26-2003 04:25 PM

That was supposed to be https://192.168.1.1:10000/

sidboyce 06-26-2003 04:28 PM

I also fogot the mention of REINSTALL, a definite no-no on Linux.

steve1401 06-27-2003 02:22 AM

Cheers for the replies...

The situation now is the Internet Connection Sharing seems to be working ok once more, and in Lin_Nieghbourhood I can see the shares that I have set up on each LOCAL machine, but not the remote machine.

I will try out what you've said in your last post when I get home tonight....

Steve

sidboyce 06-27-2003 05:08 AM

There is a lot of good stuff at the following URL in addition to the fine manual - describes the samba setup well and shows setup using webmin, you may need to start webmin "# /etc/init.d/webmin start" then you can access it - httpd://192.168.1.1:10000/

http://www.mandrakelinux.com/en/fdoc.php3

sidboyce 06-27-2003 05:09 AM

Oops -- for webmin it's http://192.168.1.1:10000/

steve1401 06-30-2003 03:22 AM

OK - After much messing about, I seem to be no fiurther on? I can see and access shares on my laptop FROM my desktop (main & internet connected) PC, but not the othre way round?

Laptop - 192.168.1.20
Desktop - 192.168.1.1 with connection/print sharing

Internet connection sharing & print sharing all work. But I can't ping 192.168.1.1 from my laptop?

I think it may be a firewall issue, but I don't know how to resolve this if it is. Basically I need to make 192.168.1.20 a trusted connection on my Firewall?

Any ideas
Steve

bichenoubi 06-30-2003 01:54 PM

Quote:

Originally posted by aesahaettr
yip, its even eaiser to do in linux than windows. just go to the folder that you want to share (you must have access to this, ie its in your home directory), right-click on it, click 'properties' click 'local net sharing' tab, click on 'configure file sharing', enter root p/w when asked, choose either smb (windows-compatible) or nfs (unix compatible), or both. stick in mandrake 9.1 cd2 when it asks, wait a tick, choose 'allow all users'. close the properties for the folder and then re-open them and get back to 'local net filesharing'. now you should just be able to choose 'shared' and press ok. and bill's your uncle :D

I do what you said, but :

1. no choice between smb or nfs appears
2. It doesn't ask for Mandrake cd2
3. After checking "Shared", when I come back to this tab, "not shared" is checked again....

thanks


All times are GMT -5. The time now is 03:18 AM.