- … @ suivre
To enjoy your files on your home network (local) or from a remote location, we offer several ways to share your data.
HandyLinux enjoys a magical script delivered by manon, member of the crunchbanglinux-fr community.
mPartage, allows you to easily share a folder/file for a given time, on your local network or on the web … Yes, it can do it all.
m_partage can not work if the shared folder name contains spaces: take care of renaming your files accordingly if you want to share on the local or remote network.
mPartage is a french applications: it will be translated very soon.
Once launched, mPartage displays a window in which you “drag and drop” the folder to share from a Thunar window (your file manager):
mPartage displays two internet addresses: the first is to use on your local network, the second on the internet. It is then set to enable sharing:
Your file will be available in sharing and displayed in a browser. The available files are listed, simply click on a link to download the linked file:
Sharing remains active until the mPartage window is open. If you want to keep active sharing when closing mpartage client, check “laisser le partage ouvert” : your file will be available until the end of your session and an icon in the notification area will indicate active sharing. Clicking the icon will re-open the window and allow you to cut the sharing whenever you want.
manon thank you for your contribution to HandyLinux.
To share local with your GNU/Linux or Windows desktops, Dukto software is simple and effective.
sources : tuto de fibi (fr)
sources : fibi post on HandyLinux forum (fr).
Samba is a file server for GNU/Linux (GNU GPL license, so free) compatible with Microsoft Windows networks. That is to say, it allows you to share files and printers between GNU/Linux and Windows computers in a seamlessly network: GNU/Linux looks like a Windows NT server to the Windows “eyes” clients. Microsoft Windows clients then become somehow Linux clients …
Samba is in the Debian repositories to install from a terminal:
sudo apt-get install samba samba-common samba-common-bin smbclient
to verify that the server is working, you can test with:
should return this code:
[ ok ] nmbd is running. [ ok ] smbd is running.
To configure Sambe, you have to edit its smb.conf :
sudo leafpad /etc/samba/smb.conf
This command display the default configuration file with many possibilities and examples.
Here is a simple smb.conf to copy/paste in your configuration file:
#======================= Global Settings ======================= [global] workgroup = GLMF netbios name = serveur server string = server GLMF log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 log level = 0 security = user encrypt passwords = true unix password sync = no #======================= Share Definitions ======================= [homes] comment = Home Directories browseable = yes writable = yes create mask = 0755 directory mask = 0755 [Documents] comment = Documents browsable = yes path = /samba/video public = no writable = no write list = @admin force group = users [Music] comment = Musique browsable = yes path = /samba/music public = no writable = no write list = admin force group = users [Partage] comment = Input browsable = yes path = /samba/share public = yes writable = yes force group = users
then activate configuration with the “testparm” command. It will display your config load confirmation message. Press [Enter] to display config file again:
$ testparm Load smb config files from /etc/samba/smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) Processing section "[homes]" Processing section "[Documents]" Processing section "[Music]" Processing section "[Share]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions
The advantage of samba is to be secure because sharing occurs only on the specified folders. To do this, we will create shared folders:
sudo mkdir -p /samba/share sudo mkdir /samba/music sudo mkdir /samba/documents
Then give write permission for everyone to “Sharing”
sudo chmod 777 /samba/share
Samba user must already exist on the system before being added.
To add a user to Samba, the command “smbpasswd-a” is used then simply fill 2 times the password for the user (replace “arp” with your user):
sudo smbpasswd -a arp New SMB password: Retype new SMB password: Added user arp.
To change the password of a user already registered, use the “smbpasswd” command (without the “-a”)
To complete the configuration, you must restart the Samba service:
sudo /etc/init.d/samba restart [ ok ] Stopping Samba daemons: nmbd smbd. [ ok ] Starting Samba daemons: nmbd smbd.
To perform a simple test:
smbclient //localhost/Documents Enter arp's password: Domain=[GLMF] OS=[UNIX] Server=[Samba 3.6.3] smb: \>