View previous topic :: View next topic |
Author |
Message |
kcy29581 Apprentice
Joined: 04 Nov 2004 Posts: 284 Location: England
|
Posted: Wed Jun 15, 2005 11:41 pm Post subject: simple networking help |
|
|
hi all,
I haven't ever networked 2 Linux boxes... I've used Samba succesfully though between Linux and Windows.
I have 2 pc's, I have added them to /etc/hosts, they are both members of the same domainname. How do I browse them, either by console or Gnome? I can ping the box, I'm just after a guide explaining how to share files between the 2.
Thanks. _________________ There is no spoon...
Oh, and it's WINDOWS not Winblowz for those who can't spell |
|
Back to top |
|
|
Kaboosh Apprentice
Joined: 10 Jun 2004 Posts: 162 Location: Edmonton, AB - Canada
|
Posted: Thu Jun 16, 2005 12:46 am Post subject: SAMBA or NFS are most popular |
|
|
The most popular ways are SAMBA (which you already stated are familiar with) and NFS.
TLDP.org has an outdated NFS guide (March 2000 - all that means is you may have to ad-lib in some areas). I've got it running and it's fairly straightforward
Last edited by Kaboosh on Thu Jun 16, 2005 12:53 am; edited 1 time in total |
|
Back to top |
|
|
kcy29581 Apprentice
Joined: 04 Nov 2004 Posts: 284 Location: England
|
Posted: Thu Jun 16, 2005 12:48 am Post subject: Re: SAMBA or NFS are most popular |
|
|
Kaboosh wrote: | The most popular ways are SAMBA (which you already stated are familiar with) and NFS.
TLDP.org has an outdated NFS guide (March 2000 - all that means is you may have to ad-lib in some areas). I've got it running and it's fairly straightforward | thanks I'll look into that in a bit. Trying to use distcc right now and just trying to see if it all works _________________ There is no spoon...
Oh, and it's WINDOWS not Winblowz for those who can't spell |
|
Back to top |
|
|
Kaboosh Apprentice
Joined: 10 Jun 2004 Posts: 162 Location: Edmonton, AB - Canada
|
Posted: Thu Jun 16, 2005 12:52 am Post subject: One More Idea |
|
|
I just remembered one more thing...if you are running sshd you can use scp from the command-line or a sftp:// URL in Konqueror. I use this ad-hoc normally with other hosts I have accounts on over the internet.
Since this behaves like ftp it's not really a "remote file system" though... |
|
Back to top |
|
|
kcy29581 Apprentice
Joined: 04 Nov 2004 Posts: 284 Location: England
|
Posted: Thu Jun 16, 2005 1:01 am Post subject: |
|
|
is nfs a filesystem type, cause if it is then I think for me its useless, as all I want is to look at my existing filesystems
or have i got that wrong? _________________ There is no spoon...
Oh, and it's WINDOWS not Winblowz for those who can't spell |
|
Back to top |
|
|
Kaboosh Apprentice
Joined: 10 Jun 2004 Posts: 162 Location: Edmonton, AB - Canada
|
Posted: Thu Jun 16, 2005 1:17 am Post subject: Network File System |
|
|
kcy29581 wrote: | is nfs a filesystem type, cause if it is then I think for me its useless, as all I want is to look at my existing filesystems
or have i got that wrong? |
NFS is a network file system protocol...like SMB or CODA (one that I've been meaning to try) |
|
Back to top |
|
|
kcy29581 Apprentice
Joined: 04 Nov 2004 Posts: 284 Location: England
|
Posted: Thu Jun 16, 2005 1:20 am Post subject: Re: Network File System |
|
|
Kaboosh wrote: | kcy29581 wrote: | is nfs a filesystem type, cause if it is then I think for me its useless, as all I want is to look at my existing filesystems
or have i got that wrong? |
NFS is a network file system protocol...like SMB or CODA (one that I've been meaning to try) | protocol, right. cheers! _________________ There is no spoon...
Oh, and it's WINDOWS not Winblowz for those who can't spell |
|
Back to top |
|
|
d_adams Apprentice
Joined: 20 Oct 2003 Posts: 223
|
Posted: Thu Jun 16, 2005 5:14 am Post subject: |
|
|
In a nutshell, it's something like this:
Make sure nfs is compiled into your kernel (under file systems/network file systems) and be sure to include both client and server to be able to browse either one. After you compile the kernel, reboot. Emerge nfs-utils. Edit /etc/exports to include the ip for the opposite computer. I did mine by range, ie; 192.186.1.* so any box on my internal network can access the shares. My line in /etc/exports is like this: Code: | /mnt/hda5 192.168.1.*/255.255.255.0(no_root_squash,rw) | This allows for root access to shares, so don't do this if you don't have a router between you and the internet.
If you want it to start on boot, do this. Code: | /etc/init.d/nfs start; rc-update add nfs default; rc-update add nfsmount default; rc-update add portmap default |
From the server side, share the directory you want (as root) and on the client side, make a new mount directory and do the following: Code: | mount 192.168.1.100:/mnt/hda5 /mnt/whatever_your_local_mount_point_is |
Mind you, the ip address for mounting is whatever the server ip is and I just used my mount points as examples. This is not a comprehensive walkthrough, just some basic stuff. I'm sure I've forgotten something, but it will get you going in the right direction. I'm not at my box right now, so there might be a typo here or there.
Edit: checked my box just now and there was one thing missing in /etc/exports (marked in bold)
Quote: | /mnt/hda5 192.168.1.*/255.255.255.0(sync,no_root_squash,rw) |
Also, you might need to create/edit your /etc/hosts.allow to reflect your specific network needs, like this Code: |
# Portmapper is used for all RPC services; protect your NFS!
# (IP addresses rather than hostnames *MUST* be used here)
portmap: 192.168.1.1/255.255.255.0
lockd: 192.168.1.1/255.255.255.0
rquotad: 192.168.1.1/255.255.255.0
mountd: 192.168.1.1/255.255.255.0
statd: 192.168.1.1/255.255.255.0 |
I'm thinking I needed to create the hosts.allow file, but I'm not 100% sure. Just for reference, my transfers average about 12MB/ps on a 100 mb linksys router. It occasionally shows that it is stalled, but it's still transferring files anyways. It's gone as high as 60 MB/ps and as low as 256 KB/ps but never seems to stay there very long. I've transferred about 45 GB of data across it in the last 2 days and it hasn't really had any problems. The server box gets a little laggy doing stuff on it during transfers, but nothing bad. _________________ http://www.1and1.com/?k_id=16196755 click me for cheap linux based web hosting.
Last edited by d_adams on Thu Jun 16, 2005 11:59 am; edited 1 time in total |
|
Back to top |
|
|
kcy29581 Apprentice
Joined: 04 Nov 2004 Posts: 284 Location: England
|
Posted: Thu Jun 16, 2005 9:15 am Post subject: |
|
|
thanks for that! _________________ There is no spoon...
Oh, and it's WINDOWS not Winblowz for those who can't spell |
|
Back to top |
|
|
|