Author Topic: Sharing  (Read 681 times)

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3202
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Sharing
« on: January 31, 2010, 09:42:15 AM »
Just want to set up sharing of files from my New Desktop system to my laptop.

I thought all I need do is on my desktop system, just share the file.  I did this and it's not showing on my PLinuxOS laptop.  Do I need to configure Samba in PCC? I see there's a Wizard at  Network Sharing>Configure Windows Shares>Share drives and directories with Windows 9SMB) systems. or do I need ot configure NFS? Or perhaps none of this needs to be done?

Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline CJ

  • Sr. Member
  • ****
  • Posts: 454
Re: Sharing
« Reply #1 on: January 31, 2010, 05:30:18 PM »
I am in no way and old hand at this, so you might want to sit this one out in the hope that someone more knowledgable than me answer you with a simpler solution, but..

Here is how I managed to set up my home network (the steps taking from my own notes)... it is not nearly as involved as the number of steps makes it out to be:

Code: [Select]
[url]How-to: http://www.linuxjunkies.org/html/NFS-HOWTO.html.[/url]

On both server and client:
1.Make sure all NFS related packages are installed (e.g. nfs-utils).

On the server, as root:
1.Edit /etc/exports. Insert the shared volumes/directories, e.g.:
/home/my-username 192.168.1.101(rw,sync,no_subtree_check)
Note: If root access is required, e.g. on /etc, add parameter 'no_root_squash'.
2.Edit /etc/host.deny. Insert line denials for all, e.g.:
portmal:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
startd:ALL
3.Edit /etc/host.allow. Insert line allowals for the client(s), e.g.:
portmal: 192.168.1.101
lockd: 192.168.1.101
mountd: 192.168.1.101
rquotad: 192.168.1.101
startd: 192.168.1.101
4.Make sure that service 'portmap' is running.
5.After setup, reboot. Command 'exportfs -ra' can also be used to read changes to /etc/exports.
6.Test that NFS is running and sharing, using 'rpcinfo -p'. This should give a list of deamons, at minimum portmapper.

On the client:
1.Test that NFS is running and sharing, using 'rpcinfo -p <IP_Address_of_Server>'. This should give a list of deamons, at minimum portmapper.
2.Insert a line in /etc/fstab for each share. I suggest only placeholders, i.e. 'noauto', e.g.:
192.168.1.102:/home/my-username /mnt/shared-partition nfs rw,soft,intr,noauto,noexec,nosuid 0 0
Note on write access: If UID and GUI is different from client to server, in '/etc/export', use '(rw,all_squash,anonuid=501,anongid=501)', changing the UID and GID as needed.
Info: portmapper uses port 111 default.

Feel free to ask... not sure I'll know the answer, and as said, maybe someone will be along with another approach.

Cheers!
CJ