LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2003, 07:01 PM   #1
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Rep: Reputation: 15
Question 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
 
Old 06-24-2003, 08:45 AM   #2
sidboyce
Member
 
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89

Rep: Reputation: 15
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
 
Old 06-25-2003, 05:10 AM   #3
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Original Poster
Rep: Reputation: 15
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
 
Old 06-25-2003, 05:41 AM   #4
aesahaettr
Member
 
Registered: Jun 2003
Location: New Zealand
Posts: 74

Rep: Reputation: 15
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
 
Old 06-25-2003, 05:42 AM   #5
aesahaettr
Member
 
Registered: Jun 2003
Location: New Zealand
Posts: 74

Rep: Reputation: 15
ps i have no idea what that other post means so you're not alone on this quest...
 
Old 06-25-2003, 05:47 AM   #6
aesahaettr
Member
 
Registered: Jun 2003
Location: New Zealand
Posts: 74

Rep: Reputation: 15
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...
 
Old 06-26-2003, 03:36 AM   #7
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Original Poster
Rep: Reputation: 15
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...
 
Old 06-26-2003, 05:23 PM   #8
sidboyce
Member
 
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89

Rep: Reputation: 15
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
 
Old 06-26-2003, 05:25 PM   #9
sidboyce
Member
 
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89

Rep: Reputation: 15
That was supposed to be https://192.168.1.1:10000/
 
Old 06-26-2003, 05:28 PM   #10
sidboyce
Member
 
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89

Rep: Reputation: 15
I also fogot the mention of REINSTALL, a definite no-no on Linux.
 
Old 06-27-2003, 03:22 AM   #11
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Original Poster
Rep: Reputation: 15
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
 
Old 06-27-2003, 06:08 AM   #12
sidboyce
Member
 
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89

Rep: Reputation: 15
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
 
Old 06-27-2003, 06:09 AM   #13
sidboyce
Member
 
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89

Rep: Reputation: 15
Oops -- for webmin it's http://192.168.1.1:10000/
 
Old 06-30-2003, 04:22 AM   #14
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Original Poster
Rep: Reputation: 15
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
 
Old 06-30-2003, 02:54 PM   #15
bichenoubi
LQ Newbie
 
Registered: Jun 2003
Distribution: Mandrake 10.1
Posts: 24

Rep: Reputation: 15
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

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with how to setup a 4-5 computer wireless network... SonoranFun Linux - Wireless Networking 4 01-18-2005 09:58 PM
ICS setup help! (WinXP to Mandrake 10 computer) mike8994 Linux - Networking 6 08-16-2004 11:59 AM
How to setup network printer in mandrake ? futurist Linux - Hardware 4 03-25-2004 03:00 AM
Mandrake 8.2: Network computer requesting a dialup connection on server Newb_Linux_Geek Linux - Networking 0 03-08-2004 12:35 AM
Mandrake 8.0 network setup chemaholic Linux - Networking 20 07-02-2001 09:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration