Windows mac linux share

Sharing Files & Folders Between Linux, Mac and Windows

In today’s world of business computing, systems must be able to communicate and interact with one another. During its years of immaturity, Linux had a very difficult time with this. And it seemed every time Linux developers made strides in getting Linux to communicate with another system, the developers of said system would change something to break that connectivity.

Today is different. Today Linux offers plenty of means for connecting with other systems and the users of those other systems. From the plain obvious to the not-so-obvious, Linux can interact with both Mac and Windows so that business can move forward seamlessly.

In this article I am going to discuss ways in which you can have your Linux machine interacting with your co-workers’ Mac and PC machines to keep you and your company working without a hitch.

Office Documents

Believe it or not, one of the primary means of interaction between machines is through the office document. By office document, I refer to the documents created using word processing, spreadsheet, presentation, formula and database applications. In the land of Microsoft, there are Microsoft Office and OpenOffice. In the land of Mac there are both Microsoft Office, iWork, and OpenOffice. In the land of Linux there are OpenOffice, KOffice and GNOME Office. It is OpenOffice that I will focus on in this portion of the article.

Believe it or not, the interaction between OpenOffice and Microsoft Office has become nearly seamless. The primary tools of OpenOffice offer nearly 100 percent functionality between Microsoft Office. But out of the box, there is one step that you should take before creating, saving and sending that document to a Microsoft Office user. Change the default document type.

Although I would much rather work in the native file format of OpenOffice, the truth is the majority of business users are still using Microsoft Office. And that most likely will not change any time soon. And since MS Office doesn’t like to play well with others, it’s always best to help your tool play along with theirs. To do this you are going to change the default “Save” format for the word processor, spreadsheet, and presentation document type.

Change default file type

To do this open up any of the OpenOffice tools and click on Tools > Options and then click on Load/Save > General in the left pane navigation tree (see Figure 1). Select from the “Document Type” dropdown “Text document” and then from the “Always save as” dropdown “Microsoft Word 97/2000/XP.” Next select “Spreadsheet” from the “Document type” dropdown and then select “Microsoft Excel 97/2000/XP” from the “Always save as” dropdown. Finally, select “Presentation” from the “Document type” dropdown and “Microsoft PowerPoint 97/2000/XP” from the “Always save as” dropdown.

Now OpenOffice will, by default, save in the native Microsoft Office format. Your office documents will have no problem interacting with your co-workers’ Microsoft Office suite.

Читайте также:  Создаем свой дистрибутив linux

Sharing Folders on a Network

This is often thought of as one of the more difficult aspects of trying to use Linux on a mostly-Windows network. Just a few short years ago this was truth. But now things are very different and sharing files and folders with Linux is as simple (if not simpler) than it is on a Windows machine. I will demonstrate how to share out folders using the GNOME desktop.

Of course sharing folders between Linux, Windows and Mac requires the help of a very powerful tool called Samba. Since I want to illustrate just how easy the process of sharing folders I won’t go into the details of Samba – it can quickly become overwhelming. Instead I will show you how this is done from the perspective of an end- ser.

Naturally this can only work with the correct software installed. Samba is, obviously, a must. So let’s get all of the software installation out of the way. Click on System > Administration > Synaptic Package Manager and then do the following:

  1. Search for “samba” (no quotes).
  2. Mark the following packages for installation: samba, libpam-smbpass, nautilus-share (these should pick up all the dependencies you need for installation).
  3. Click Apply to install.

That’s it. You are now ready to set up file sharing.

Let’s take a look at the steps for file sharing with the GNOME desktop.

Nautilus in the home directory

Step 1: Open up Nautilus.

Nautilus is the file manager for GNOME. Say you want to share out the folder ~/Documents. Click on Places > Home Folder and Nautilus will open in your ~/ directory (see Figure 2).

Step 2: Open up folder sharing settings.

Right click on the Documents folder. This will bring up a menu where you will find listed Sharing Options. Select that option from the menu.

Step 3: Configure sharing.

From the Folder Sharing window you will want to configure the following:

Share this folder: Enable this by clicking the checkbox.

Share name: Give the share a name.

Comment: Give the share a comment (this is optional, but useful in case there are similar share names on your network).

Allow others to create and delete files in this folder: Check this if you want to allow others to add and remove files in this share.

Guest access: If you want to allow everyone access to this share (even people without an account on your machine), check this box.

Once you have filled out all of the information click “Create Share.” When you click this button a warning window will appear informing you that Nautilus needs to add some permissions to the target folder. Allow this (or the share won’t work) by clicking “Add the permissions automatically.”

When you have successfully shared out this folder you will know because 1) The icon on the share will change (the new icon will have a small hand below the icon indicating it is a shared folder) and 2) It will (after a moment) appear in your Windows My Network Places window. If the share doesn’t show up there you can easily find it by entering \IP_ADDRESS_OF_SHARE in the Explorer address bar, at which point the share will certainly show up. If you would like these shares to show up in My Network Places (in Windows) and they don’t automatically, it means you might have to edit your /etc/samba/smb.conf file. But don’t worry; it’s so simple anyone can do it. Open up a terminal window and follow these steps:

  1. Enter the command sudo nano /etc/samba/smb.conf
  2. Search for the line workgroup = WORKGROUP
  3. Change the section of the above line (to the right of the “=” sign) to match the workgroup you are working with.
  4. Save and close the file by hitting x followed by hitting the y key (for “yes”).
  5. Restart Samba with the command sudo /etc/init.d/samba restart

That’s it. Now your Ubuntu machine will be seen in the Windows “My Network Places.”

Читайте также:  Как включить ipv6 в linux

To connect to this share on a Mac you would simply follow these steps:

  1. Open up Finder.
  2. Click k.
  3. Enter the IP address of your share and click Connect.
  4. In the new window select the share you want to connect to.
  5. Enter the authentication information and click OK.

You are now connected to that share. You can save this connection as a bookmark in Finder to make things easier.

But what about connecting to shared folders that reside on a Windows machine? This is equally as easy. In the GNOME desktop click Places > Connect to Server. When the new window opens up (see Figure 3) fill out the following:

  • Service type: Windows Share
  • Server: IP Address of machine with Share
  • Share: Name of folder that is shared

Once you have that all filled out, click Connect and you should be connected to that shared folder. This, of course, will only work if said folder on the Windows machine is shared out onto the network.

Final Thoughts

Linux has come a long way from being an isolated island in a sea of Windows machines. Now the Linux box can interact with both Windows and Mac easily. Either by sharing documents with the right office suite settings, or by sharing out files and folders across a network, Linux plays well with others!

Источник

Easily Share Files Between Linux, Windows, And Mac

Warpinator is a tool, developed by the Linux Mint team, to share files between systems. If you are a Linux Mint or an LMDE user, you can install it using the command:

sudo apt install warpinator 

There is a package available in Arch repositories so that you can install it through:

For Ubuntu, you need to either install it from the source or use the Flatpak version on Flathub. If you are confused about using Flatpak, read our guide on how to set up Flatpak in Ubuntu and other Linux distributions.

Once installed Warpinator on both of your machines, open it and set a Group Code. To achieve this, click on the hamburger menu on the top-left and select preferences.

Select Preferences in Warpinator

Inside the new window, go to the Connection tab and set a group code as shown in the screenshot below.

Читайте также:  Linux bash скрипты цикл

Set a Group code in Warpinator

Please keep in mind that, you need to provide the same group code in all Warpinator instances in the network to discover devices.

Once the codes are set, Warpinator will discover your connected devices.

Warpinator discovers the connected devices

Click on the destination device name and browse for the files to send. As you select files, it will mark them as «Waiting for approval».

Sending files using Warpinator

You need to go to the other device to approve the request by clicking on the tick button to receive the files.

Click the Tick button to receive the file

And, that is how you can share your files and documents using Warpinator.

2. Send files using Snap Drop

Snapdrop is a Progressive Web App for local file sharing. It is a project inspired by Apple AirDrop.

To share some files, first you need to make sure that both systems are connected to the same network. Once it is the case, open Snapdrop through your browser. This will bring you to the home page, where you can see you notice an active animation telling you that it is ready to share files.

Snapdrop home screen

It will automatically assign a name to your device, Apricot Aphid, in my case. Once you open Snapdrop on the other system, you can notice the name pop up on the radar thing and select the one you desire to share files with.

Different devices connected to the same network are detected by snapdrop while using it

You can see that three other systems are connected to the same network and are available to share files. As per the name, it is easy to identify the target system.

Now, click on a particular device to share the file with them. It will prompt you asking if you want to proceed (and if you would like to continue, getting prompts for each file received).

Save the file in the destination system

Similarly, if you right-click on any target, you can send messages to them.

Right-click on a destination to send messages

The message will be delivered to the other device.

Message received via Snapdrop on destination

3. Send files using Magic Wormhole

Magic-Wormhole or the utility called wormhole is a command line tool to send arbitrary-sized files, directories, or text from one computer to another.

This simple utility is available in almost all major Linux distros. To install it on Ubuntu, run the following in a terminal:

sudo apt install magic-wormhole 

The package is available in Homebrew and winget. So getting it installed will not be a hassle.

Once installed, open a terminal in the system, where the file to be sent is present. Now, run the following command:

Wormhole command to send file

This will give you a code, copy it and run it on the system where you want to receive the file.

The file received via the Wormhole utility

You can see that the file has been received and saved. Furthermore, the sender machine will mark the transfer as complete.

Suggested Read 📖

Honorable Mentions

  • SendAnywhere: A file transfer service where you can send and receive files using unique and short-lived keys.
  • Microsoft Edge Drop (feature exclusive to Microsoft Edge browser): A File and Text sharing mechanism under edge browser.

Additionally, you can explore Advanced File sharing methods (like SSH) that could let you transfer files to a remote computer.

Источник

Оцените статью
Adblock
detector