The archives for May 10th, 2008


Mag 10

To share rows with NFS is better

In post the precedence I have tried to explain like sharing rows between two PC linuc with samba. However this protocol is born originally like interface that allows the sharing of resources between systems windows and linux; he is therefore obvious that when blots some to them in net they are PC linux the just choice is not more samba, “among other things rather heavy”, but the protocol purposely developed for the systems *nix, that is NFS.

Here as I have made:

Serveur:

  • Installation of NFS (I sudo apt-get install portmap NFS-kernel-serveur);
  • sharing of the cartelle (I sudo gedit /etc/exports); for every folder to share to insert in the rows exports the following line: /Condivisa/192.168.0.2 (rw, sync)
  • to specify the client to which allowing the access (in my case is a solo):
    gedit /etc/hosts.allow;
    to insert the line portmap mountd nfsd statd lockd rquotad: 192.168.0.2 (IP of the client);
  • to render effective the modifications riavviando the demons;
    I sudo /etc/init.d/portmap restart
    I sudo /etc/init.d/nfs-kernel-server restart;
  • to create the folder with l point of mount (mkdir /media/ArchivioDesktop)

(more…)

Mag 10

Samba with airone

The title it, obviously, is the natural “pinguinesca” version of my an ancient one post: “Gibbone to lesson of samba with sight “. For the rest little to that to see. This “how to” has the objective to supply aid to how many is gotten ready to share cartelle between two PC, one of which with ubuntu 8.04. In my case there is, exactly, ubuntu hardy on the PC desktop and gutsy on the laptop:

  1. To install samba (I sudo apt-get install samba smbfs system-config-samba);
  2. I sudo touch /etc/libuser.conf (this commando is necessary in order to resolve a bug of system-config-samba that it does not create the rows libuser.conf);
  3. to open Sistema->Amministrazione->Samba;
  4. on Preferenze->Impostazioni serveur to set up the parameters like from successive images: sambaconfig.png samba-config1.png
  5. now on Preferenze->Utenti Samba to select the customer who wants itself to be made to approach samba;
  6. to create the sharing cliccando on You add Sharing.

At last three things to emphasize:

  • generally it is not opportune to allow to all the access to the sharing, is advised to make it single with the created customer;
  • ubuntu it allows to share two cartelle also cliccando with the skillful key of the mouse on the cartelle same and being chosen “Options of sharing;
  • in order to see the rows of configuration of samba enough $gksudo gedit a /etc/samba/smb.conf, while for riavviare Samba it is necessary to type $sudo /etc/init.d/samba restart.