Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-22-2003, 07:01 PM
|
#1
|
Member
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73
Rep:
|
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
|
|
|
06-24-2003, 08:45 AM
|
#2
|
Member
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89
Rep:
|
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
|
|
|
06-25-2003, 05:10 AM
|
#3
|
Member
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73
Original Poster
Rep:
|
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
|
|
|
06-25-2003, 05:41 AM
|
#4
|
Member
Registered: Jun 2003
Location: New Zealand
Posts: 74
Rep:
|
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
|
|
|
06-25-2003, 05:42 AM
|
#5
|
Member
Registered: Jun 2003
Location: New Zealand
Posts: 74
Rep:
|
ps i have no idea what that other post means so you're not alone on this quest...
|
|
|
06-25-2003, 05:47 AM
|
#6
|
Member
Registered: Jun 2003
Location: New Zealand
Posts: 74
Rep:
|
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...
|
|
|
06-26-2003, 03:36 AM
|
#7
|
Member
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73
Original Poster
Rep:
|
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...
|
|
|
06-26-2003, 05:23 PM
|
#8
|
Member
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89
Rep:
|
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
|
|
|
06-26-2003, 05:25 PM
|
#9
|
Member
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89
Rep:
|
|
|
|
06-26-2003, 05:28 PM
|
#10
|
Member
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89
Rep:
|
I also fogot the mention of REINSTALL, a definite no-no on Linux.
|
|
|
06-27-2003, 03:22 AM
|
#11
|
Member
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73
Original Poster
Rep:
|
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
|
|
|
06-27-2003, 06:08 AM
|
#12
|
Member
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89
Rep:
|
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
|
|
|
06-27-2003, 06:09 AM
|
#13
|
Member
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89
Rep:
|
|
|
|
06-30-2003, 04:22 AM
|
#14
|
Member
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73
Original Poster
Rep:
|
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
|
|
|
06-30-2003, 02:54 PM
|
#15
|
LQ Newbie
Registered: Jun 2003
Distribution: Mandrake 10.1
Posts: 24
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 09:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|